/* General body styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #1c3d5a;
}

/* The main grid container for all doctor cards */
#board-container {
    display: grid;
    /* This creates a responsive grid. It will try to fit
       cards that are 350px wide. */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px; /* Space between cards */
    max-width: 1920px; /* Max width for large screens */
    margin: 0 auto; /* Center the container */
}

/* Styling for each individual doctor card */
.doctor-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
    transition: transform 0.2s ease;
    border-left: 5px solid #007bff; /* Default accent color */
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: #1c3d5a;
}

.doctor-card .specialty {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

/* The main status message */
.doctor-card .status {
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

/* Individual status colors */
.status.on-time {
    background-color: #e0f8e9;
    color: #006421;
}
.doctor-card.status-on-time { /* Card border color */
    border-left-color: #00b03b;
}

.status.delayed {
    background-color: #fff8e0;
    color: #a06c00;
}
.doctor-card.status-delayed {
    border-left-color: #ffc107;
}

.status.away {
    background-color: #fdebee;
    color: #c91c1c;
}
.doctor-card.status-away {
    border-left-color: #e53935;
}

/* Current and Next appointment info */
.appointment-info {
    font-size: 1.1rem;
    line-height: 1.6;
}

.appointment-info strong {
    color: #444;
}

/* Loading message styling */
.loading-message {
    font-size: 1.5rem;
    color: #777;
    text-align: center;
}