/* ===============================
   Radiology Online Network
   Reusable App CSS Framework
   Brand Colors & Font
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #e6830F;
    --secondary-color: #0f2e52;
    --background-color: #f4f6f8;
    --text-color: #333333;
    --card-background: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Oswald', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header, main, footer {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

header {
    background-color: var(--secondary-color); /* Brand blue background */
    color: #ffffff;                           /* White text for contrast */
    padding: 1.5rem 1rem;
    text-align: center;
}

header h1 {
    color: #ffffff; /* White title so it stands out on the blue background */
    text-shadow: 2px 2px 3px #e6830F33; /* Light orange shadow */
    font-size: 2rem;
    margin: 0.5rem 0 0 0;
}

header .logo {
    display: block;
    margin: 0 auto 0.5rem auto;
    max-width: 300px;
    height: auto;
}

main {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

footer {
    padding: 1rem;
    font-size: 0.85rem;
    color: #666666;
}

/* ===============================
   Cards
   =============================== */
.card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    max-width: 340px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h2 {
    margin-top: 0;
    font-weight: 500;
    color: var(--secondary-color);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.card ul, .card li {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
}

/* ===============================
   Buttons
   =============================== */
button,
.close-btn,
.btn-force {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-family: 'Oswald', Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

button:hover,
.close-btn:hover,
.btn-force:hover {
    background-color: #cc740d;
}

button:focus,
.close-btn:focus {
    outline: 2px solid #cc740d;
    outline-offset: 2px;
}

/* ===============================
   Images
   =============================== */
.room-schedule-img {
    max-width: 30%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border: 2px solid #1f3a5f;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .room-schedule-img { max-width: 85%; }
}

/* ===============================
   Iframes
   =============================== */
.card iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 400px;
    border: none;
}

/* ===============================
   Modals
   =============================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--card-background);
    margin: 10% auto;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
}

.modal-content label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.modal-content input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

/* ===============================
   Layout Helpers
   =============================== */
.centered-main { margin: 0 auto; }
.centered-content .card { text-align: center; }
.card-container, .dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.select-card, .card-grid .select-card, .card-grid button {
    max-width: 260px;
    width: 100%;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.resource-link {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--background-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.resource-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateX(4px);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 600px) {
    header h1 { font-size: 1.2rem; }
    .card { max-width: 100%; }
}
