/* Strong calendar header title */
.strong-title {
    font-size: 2.1em;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1565c0;
    text-shadow: 0 2px 8px #e3f2fd;
}
.strong-month {
    font-weight: 700;
    color: #1976d2;
}
/* Highlighted username */
.username-highlight {
    color: #1976d2;
    font-weight: 700;
    font-size: 1.15em;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.08);
}
/* Slider switch for admin */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: #4caf50;
}
.switch input:checked + .slider:before {
        transform: translateX(27px);
}
/* User form styling */
.form-row {
    display: grid;
    grid-template-columns: 140px 220px;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}
.form-row label {
    text-align: right;
    font-weight: 500;
    padding-right: 8px;
}
.form-row input[type="text"],
.form-row input[type="password"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    min-width: 0;
}
.form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}
/* User management pane styling */
.admin-user-container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px;
}
.admin-user-container h2, .admin-user-container h3 {
    text-align: center;
}
.admin-user-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.admin-user-container th, .admin-user-container td {
    border: 1px solid #eee;
    padding: 8px;
    text-align: left;
}
.admin-user-container th {
    background: #f5f5f5;
}
.admin-user-container button {
    margin-right: 6px;
}
.admin-upload-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px;
    text-align: center;
}

/* Login/Logout button styles */
.login-nav {
    text-align: right;
    margin: 10px;
}
.login-nav button.nav-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-left: 10px;
}
.login-nav span {
    margin-right: 10px;
    font-size: 1em;
}
.editable {
    outline: 2px dashed #1976d2;
    background: #e3f2fd;
}
.shift-edit-dropdown {
    font-size: 1.1em;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #1976d2;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}
.individual-calendar-shift .shift-cell {
    font-size: 1.15em;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 80px;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
}
/* Individual calendar mobile-friendly styles */
.individual-calendar {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 0 24px 0;
}
.individual-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.individual-calendar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1em;
}
.individual-calendar-row:last-child {
    border-bottom: none;
}
.individual-calendar-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 70px;
}
.individual-calendar-day {
    font-weight: bold;
    font-size: 1.1em;
}
.individual-calendar-weekday {
    font-size: 0.9em;
    color: #1976d2;
}
.individual-calendar-shift {
    flex: 1;
    text-align: left;
    padding-left: 12px;
}
.no-shift {
    color: #bbb;
    font-style: italic;
}
@media (max-width: 600px) {
    .individual-calendar {
        max-width: 98vw;
        padding: 4px 0 12px 0;
    }
    .individual-calendar-row {
        font-size: 0.98em;
        padding: 6px 6px;
    }
    .individual-calendar-date {
        min-width: 54px;
    }
}
/* Navigation buttons styling */
.calendar-nav {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.calendar-nav-title {
    font-size: 1.3em;
    margin: 0 16px;
}
.nav-btn {
    background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.12);
    transition: background 0.2s, transform 0.2s;
}
.nav-btn:hover {
    background: linear-gradient(90deg, #1565c0 0%, #42a5f5 100%);
    transform: translateY(-2px) scale(1.04);
}
.calendar-header-weekday {
    font-size: 0.8em;
    color: #1976d2;
    font-weight: 500;
    text-transform: lowercase;
}
.calendar-header-day {
    font-size: 1.2em;
    color: #222;
    font-weight: bold;
}
.calendar-header-month {
    font-size: 0.7em;
    color: #888;
    font-weight: 400;
}
.calendar-header {
    vertical-align: bottom;
    padding: 4px 2px;
}

.calendar-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 1em;
}
.calendar-header-title {
    margin: 0 1em 0 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #1976d2;
}
.calendar-header.weekend {
    background: #e3f2fd;
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
}
.weekend-cell {
    position: relative;
    background: #e3f2fd;
    border-top: 2px solid #90caf9;
    border-bottom: 2px solid #90caf9;
}
.shift-cell {
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.shift-cell:hover {
    outline: 2px solid #1976d2;
    z-index: 10;
}
.shift-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    white-space: nowrap;
    pointer-events: none;
}
.shift-cell:hover .shift-tooltip {
    display: block;
}

.legend-grid {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

#legend-container {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 16px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #a7a7a7;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}


.calendar-table {
    border-collapse: collapse;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    width: fit-content;
}
.calendar-table th, .calendar-table td {
    border: 1px solid #e0e0e0;
    text-align: center;
    width: 48px;
    height: 48px;
    padding: 0;
    min-width: 48px;
    box-sizing: border-box;
    vertical-align: middle;
}
.calendar-table th {
    background-color: #e6e6e6;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}
.calendar-table td {
    font-weight: bold;
    font-size: 1em;
    transition: background 0.2s;
}

/* Shift color classes */
.shift-F1 { background: #e3f2fd; color: #1565c0; }
.shift-F4 { background: #ffe0b2; color: #ef6c00; }
.shift-F5 { background: #fff3e0; color: #f57c00; }
.shift-F6 { background: #fce4ec; color: #ad1457; }
.shift-F8 { background: #e8f5e9; color: #388e3c; }
.shift-L, .shift-L1 { background: #ede7f6; color: #5e35b1; }
.shift-N { background: #212121; color: #fff; }
.shift-U { background: #cfd8dc; color: #37474f; }
.shift-FB { background: #fffde7; color: #fbc02d; }
.shift-WB { background: #e0f7fa; color: #00838f; }
.shift-Y { background: #f3e5f5; color: #6a1b9a; }
.shift-- { background: #f5f5f5; color: #bdbdbd; }

/* Legend styles */
#legend-container {
    margin: 20px 0;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    margin-bottom: 4px;
}
.shift-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}
.shift-F1.shift-color { background: #e3f2fd; }
.shift-F4.shift-color { background: #ffe0b2; }
.shift-F5.shift-color { background: #fff3e0; }
.shift-F6.shift-color { background: #fce4ec; }
.shift-F8.shift-color { background: #e8f5e9; }
.shift-L.shift-color, .shift-L1.shift-color { background: #ede7f6; }
.shift-N.shift-color { background: #212121; }
.shift-U.shift-color { background: #cfd8dc; }
.shift-FB.shift-color { background: #fffde7; }
.shift-WB.shift-color { background: #e0f7fa; }
.shift-Y.shift-color { background: #f3e5f5; }
.shift--.shift-color { background: #f5f5f5; }

.button {
    background-color: #35424a;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
}

/* Admin page layout improvements */
.admin-main-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 32px;
}
.admin-user-container, .admin-upload-container {
    flex: 1 1 380px;
    min-width: 320px;
    max-width: 500px;
}
.admin-upload-container {
    margin-bottom: 32px;
}
.admin-user-container h2, .admin-upload-container h2 {
    text-align: center;
    margin-bottom: 18px;
}
.admin-user-container h3 {
    margin-top: 18px;
    margin-bottom: 12px;
}
.admin-user-container table {
    margin-bottom: 18px;
}
.nav-btn, .admin-user-container button, .admin-upload-container button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin: 4px 0;
    transition: background 0.2s;
}
.nav-btn:hover, .admin-user-container button:hover, .admin-upload-container button:hover {
    background: #145ea8;
}
.nav-btn:disabled {
    background: #e0e0e0 !important;
    color: #9e9e9e !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}
.nav-btn:disabled .material-icons {
    color: #bdbdbd !important;
}

.admin-upload-status {
    margin-top: 12px;
    text-align: center;
    color: #1976d2;
    font-weight: bold;
}
@media (max-width: 900px) {
    .admin-main-flex {
        flex-direction: column;
        gap: 0;
    }
    .admin-user-container, .admin-upload-container {
        max-width: 98vw;
        margin: 0 auto 24px auto;
    }
}