/* Copyright (c) 2026 Filip Marić. See LICENCE. */
/* ==========================================================================
   1. OSNOVNI STILOVI (Base)
   ========================================================================== */
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    margin: 20px; 
    color: #333;
}

.main-page-shell {
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-shell.main-page-shell {
    width: auto;
}

.main-page-header {
    padding: 18px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.main-page-title h1 {
    margin: 0 0 12px;
    font-size: 1.7rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.main-toolbar {
    display: grid;
    gap: 14px;
}

.main-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-panel form,
.auth-panel #logout-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-panel #login-info {
    font-weight: 700;
}

.auth-panel input[type="text"],
.auth-panel input[type="password"] {
    border-radius: 4px;
    border: 1px solid #c9c9c9;
    background: #f4f4f4;
    color: #222;
    font-size: 16px;
    height: 30px;
    padding: 0 10px;
    box-sizing: border-box;
    line-height: 1;
}

.auth-panel button {
    border-radius: 4px;
    border: 1px solid #c9c9c9;
    background: #f1f1f1;
    color: #222;
    height: 30px;
    padding: 0 12px;
    box-sizing: border-box;
    line-height: 1;
    cursor: pointer;
}

.auth-panel button:hover,
.auth-panel button:focus {
    background: #e8e8e8;
    color: #000;
}

.toolbar-link-wrap {
    margin: 0;
}

.toolbar-link-wrap a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #c9c9c9;
    background: #f1f1f1;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    height: 30px;
    box-sizing: border-box;
    line-height: 1;
}

.toolbar-link-wrap a:hover,
.toolbar-link-wrap a:focus {
    background: #e8e8e8;
    color: #000;
    text-decoration: none;
}

.date-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.date-control label {
    font-weight: 600;
    color: #444;
}

.date-control-inputs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.date-control-inputs input[type="date"] {
    min-width: 170px;
    height: 30px;
    box-sizing: border-box;
    line-height: 1;
}

.date-control-inputs button {
    min-width: 44px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #c9c9c9;
    background: #f1f1f1;
    color: #222;
    cursor: pointer;
    height: 30px;
    box-sizing: border-box;
    line-height: 1;
}

#auth-container button,
.toolbar-link-wrap a,
.date-control-inputs button {
    box-shadow: none;
}

#auth-container button:hover,
.date-control-inputs button:hover {
    background: #f5f5f5;
}

.page-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.teacher-page-shell {
    width: min(100%, 880px);
}

.teacher-sessions-shell {
    width: min(100%, 980px);
}

.group-sessions-shell {
    width: min(100%, 980px);
}

.reservations-page-shell {
    width: min(100%, 1040px);
}

.student-attendance-shell {
    width: min(100%, 520px);
}

#auth-container { margin: 0; }
#login-info { margin: 0; padding: 0; font-weight: bold; }

.semester-toolbar {
    margin: 12px 0 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.course-card {
    margin-bottom: 24px;
}

.attendance-panel,
.attendance-roster,
.challenge-panel,
.attendance-qr-box {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.attendance-geofence-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.attendance-geofence-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #222;
}

.attendance-geofence-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.attendance-geofence-status-on {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #166534;
}

.attendance-geofence-status-off {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.attendance-geofence-warning {
    margin: 0;
    font-weight: 600;
    color: #9a4a00;
}

.attendance-success-panel {
    text-align: center;
    background: #eef9ef;
    border-color: #b9e2bf;
}

.attendance-blocked-panel {
    text-align: center;
    background: #fff1f1;
    border-color: #f0b3b3;
}

.attendance-success-panel h2 {
    margin-bottom: 8px;
}

.attendance-success-panel p {
    margin: 0;
    color: #2f6b35;
    font-weight: 600;
}

.attendance-success-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.attendance-success-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #b9e2bf;
    border-radius: 4px;
    background: #f5fbf5;
    color: #235d2d;
    text-decoration: none;
    font-weight: 600;
}

.attendance-success-home-link:hover,
.attendance-success-home-link:focus {
    background: #e9f5ea;
    color: #1d4d25;
    text-decoration: none;
}

.attendance-blocked-panel h2 {
    margin-bottom: 8px;
}

.attendance-blocked-panel p {
    margin: 0;
    color: #8a2c2c;
    font-weight: 600;
}

.attendance-qr-box img {
    display: block;
    margin-bottom: 12px;
    width: 240px;
    height: 240px;
}

.teacher-page-shell .attendance-panel,
.teacher-page-shell .attendance-roster,
.teacher-page-shell .challenge-panel,
.teacher-page-shell .attendance-qr-box {
    width: 100%;
    box-sizing: border-box;
}

.teacher-page-shell #attendance-root {
    display: block;
}

.attendance-teacher-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 12px;
    align-items: start;
}

.attendance-teacher-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.teacher-page-shell .attendance-panel,
.teacher-page-shell .attendance-roster,
.teacher-page-shell .challenge-panel,
.teacher-page-shell .attendance-qr-box {
    margin: 8px 0;
    padding: 12px 14px;
}

.attendance-teacher-column .attendance-panel,
.attendance-teacher-column .attendance-roster,
.attendance-teacher-column .challenge-panel,
.attendance-teacher-column .attendance-qr-box {
    margin: 0;
}

.attendance-teacher-column-right {
    min-height: 0;
}

.attendance-teacher-column-right .attendance-roster {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    min-height: 0;
}

.teacher-page-shell .attendance-qr-box {
    align-items: center;
    text-align: center;
}

.teacher-page-shell .attendance-qr-box a {
    display: inline-block;
}

.teacher-page-shell .attendance-qr-box img {
    cursor: pointer;
}

.teacher-sessions-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.teacher-sessions-toolbar label {
    font-weight: 700;
}

.teacher-sessions-toolbar select {
    min-width: min(100%, 320px);
    height: 34px;
    border-radius: 4px;
    border: 1px solid #c9c9c9;
    background: #fff;
    padding: 0 10px;
}

.teacher-sessions-note {
    margin: 0;
    color: #5b5b5b;
}

.teacher-sessions-summary h2,
.teacher-session-card h3,
.teacher-session-card h4 {
    margin: 0 0 8px;
}

.teacher-sessions-summary p,
.teacher-session-card p {
    margin: 0;
}

.teacher-sessions-list {
    display: grid;
    gap: 12px;
}

.group-session-course {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.group-session-course > h3 {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #cbd5e1;
}

.group-session-activities {
    display: grid;
    gap: 8px;
}

.teacher-session-card {
    display: grid;
    gap: 8px;
}

.teacher-session-groups {
    color: #444;
}

.session-type-lecture {
    color: #1d4ed8;
    font-weight: 700;
}

.session-type-exercise {
    color: #dc2626;
    font-weight: 700;
}

.teacher-session-weekly-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 4px;
}

.teacher-sessions-empty,
.teacher-sessions-loading,
.teacher-sessions-error {
    font-weight: 600;
}

.group-sessions-empty,
.group-sessions-loading,
.group-sessions-error {
    font-weight: 600;
}

.reservations-page-shell #reservations-page {
    width: 100%;
}

.attendance-page-header {
    text-align: center;
    margin-bottom: 8px;
}

.attendance-page-header h1 {
    margin-bottom: 2px;
}

.attendance-page-header p {
    margin: 0;
}

@media (max-width: 860px) {
    .attendance-teacher-layout {
        grid-template-columns: 1fr;
    }

    .attendance-teacher-column-right .attendance-roster {
        max-height: none;
        overflow-y: visible;
    }
}

.my-reservations-page-header {
    text-align: center;
    margin-bottom: 8px;
}

.my-reservations-page-header h1 {
    margin-bottom: 2px;
}

.my-reservations-page-header p {
    margin: 0;
}

.attendance-code {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    margin: 10px 0;
}

.attendance-code-danger {
    color: #c1121f;
    text-shadow: 0 0 0.01px currentColor;
}

.attendance-countdown {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.challenge-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.challenge-option-btn {
    padding: 14px 18px;
    border: 2px solid #888;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    min-width: 88px;
    min-height: 54px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.attendance-freeze-notice {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff7dd;
    border: 1px solid #e7d08a;
    color: #7a5a00;
    font-weight: 600;
}

.attendance-btn {
    font-size: 0.9rem;
    margin-left: 0;
    color: #000;
    background: transparent;
    border: none;
    padding: 0 2px;
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
}

.attendance-toggle-btn {
    font-size: 0.85rem;
}

.attendance-summary {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.attendance-collapsible > summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendance-collapsible > summary::-webkit-details-marker {
    display: none;
}

.attendance-collapsible > summary::after {
    content: '▸';
    margin-left: auto;
    color: #666;
}

.attendance-collapsible[open] > summary::after {
    content: '▾';
}

.attendance-collapsible > *:not(summary) {
    margin-top: 12px;
}

.attendance-collapsible.attendance-summary > summary {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
}

.attendance-summary h4 {
    margin: 0 0 10px;
}

.attendance-session-block + .attendance-session-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e7e7e7;
}

.attendance-session-block h4 {
    margin: 0 0 10px;
}

.attendance-collapsible.attendance-summary > div > div > .attendance-session-block:first-child {
    margin-top: 10px;
}

.attendance-session-actions {
    display: flex;
    justify-content: flex-start;
    margin: 8px 0 12px;
    padding-top: 8px;
    border-top: 1px solid #e7e7e7;
}

.attendance-dialog table {
    width: 100%;
}

.attendance-dialog th,
.attendance-dialog td {
    text-align: left;
}

.attendance-dialog th:nth-child(2),
.attendance-dialog td:nth-child(2),
.attendance-dialog th:nth-child(3),
.attendance-dialog td:nth-child(3) {
    text-align: center;
}

.attendance-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.attendance-summary-list > li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-summary-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.attendance-summary-details {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.attendance-summary-details > summary .attendance-summary-count {
    font-weight: 400;
    white-space: nowrap;
}

.attendance-summary-date {
    font-weight: 700;
}

.reservation-date-link,
.attendance-date-link {
    color: inherit;
    text-decoration: none;
}

.reservation-date-link:hover,
.reservation-date-link:focus,
.attendance-date-link:hover,
.attendance-date-link:focus {
    text-decoration: underline;
}

.attendance-summary-count {
    color: #555;
}

.attendance-summary-room {
    color: #333;
}

.attendance-summary-btn {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-top: 16px;
    margin-bottom: 16px;
}

.attendance-download-btn {
    display: block;
    width: fit-content;
    margin-top: 16px;
}

.attendance-roster li,
.attendance-dialog li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.attendance-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #cfd6dc;
    background: #eef2f5;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.attendance-source-web {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.attendance-source-android {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #166534;
}

.attendance-spot-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.attendance-spot-check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.attendance-roster ol,
.attendance-dialog ol {
    margin: 0;
    padding-inline-start: 24px;
}

.attendance-dialog {
    width: min(680px, calc(100vw - 32px));
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.attendance-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.attendance-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.attendance-dialog-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attendance-dialog-header h3 {
    margin: 0;
}

.attendance-dialog-subtitle {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.attendance-dialog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.student-attendance-shell #attendance-join-root {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attendance-success-root {
    min-height: calc(100vh - 140px);
    justify-content: center;
}

.attendance-success-root .attendance-success-panel {
    max-width: 520px;
    margin: 0 auto;
}

.attendance-success-root .attendance-success-panel h2 {
    font-size: 1.35rem;
}

.attendance-success-root .attendance-success-panel p {
    font-size: 1rem;
}

.student-attendance-shell .attendance-panel,
.student-attendance-shell .challenge-panel {
    width: 100%;
    box-sizing: border-box;
}

.student-attendance-shell .challenge-panel {
    max-width: 100%;
}

.student-attendance-shell .challenge-panel h2 {
    margin: 0 0 10px;
    text-align: center;
}

.student-attendance-shell .challenge-panel input {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 12px 14px;
    font-size: 16px;
}

.student-attendance-shell .challenge-panel input + input {
    margin-top: 2px;
}

.student-attendance-shell .challenge-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 6px 0 8px;
}

.student-attendance-shell .challenge-option-btn {
    width: 100%;
    min-width: 0;
}

@media (max-width: 560px) {
    body {
        margin: 12px;
    }

    .student-attendance-shell .attendance-panel,
    .student-attendance-shell .challenge-panel,
    .student-attendance-shell .attendance-roster {
        margin: 8px 0;
        padding: 12px 12px;
    }

    .student-attendance-shell {
        width: 100%;
    }

    .student-attendance-shell .challenge-options {
        grid-template-columns: 1fr;
    }

    .student-attendance-shell .challenge-option-btn {
        min-height: 58px;
        font-size: 1.05rem;
    }

    .student-attendance-shell .challenge-panel input {
        padding: 11px 13px;
        font-size: 16px;
    }

    .attendance-success-panel {
        padding: 12px 10px;
    }

    .attendance-success-panel h2 {
        font-size: 1.08rem;
        margin-bottom: 6px;
    }

    .attendance-success-panel p {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .attendance-success-root {
        min-height: auto;
        justify-content: flex-start;
    }

    .attendance-success-actions {
        margin-top: 10px;
    }

    .attendance-success-home-link {
        width: 100%;
        box-sizing: border-box;
        min-height: 30px;
    }
}

.attendance-dialog-close {
    align-self: flex-start;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    line-height: 1;
    font-size: 1.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.attendance-dialog-download {
    display: block;
    width: fit-content;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 16px;
}

.attendance-dialog-body {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. TABELA I LAYOUT
   ========================================================================== */
table {
    border-collapse: collapse;
    margin-top: 10px;
}

table.occupancy-table {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
}

.occupancy-location-title {
    text-align: center;
}

.reservations-page-shell table,
.student-attendance-shell table,
.attendance-dialog table {
    width: 100%;
}

th { 
    background-color: #3399FF; 
    color: black;
    font-weight: bold;
    padding: 5px 10px;
    vertical-align: middle;
    width: auto;
}

td {
    padding: 0px;
    height: 1px;
    vertical-align: stretch; 
}


th, td { 
    border: 1px solid #999; 
    text-align: center; 
    vertical-align: top;
}

th.time {
    height: 100px;
}

table.occupancy-table th,
table.occupancy-table td {
    word-break: break-word;
    width: 120px;
    overflow: visible;
}

table.occupancy-table th.time {
    width: 100px;
}

@media (max-width: 1680px) {
    table.occupancy-table {
        width: max-content;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Disable text selection during drag */
table {
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================================
   3. KATEGORIJE TERMINA (Boje pozadina)
   ========================================================================== */
.empty-slot { background-color: #fff; }
.weekly     { background-color: #eee; }
.reservation { background-color: #99ccff; }
table.occupancy-table td.reservation {
    overflow: visible !important;
    position: relative;
    vertical-align: middle;
}

.slot-highlight.my {
    border-left-color: #1f8f4d !important;
    box-shadow: inset 0 0 0 2px rgba(46, 204, 113, 0.22);
}

.selected {
    background-color: #d0ebff !important;
    cursor: pointer;
    position: relative;
}

.drag-tail::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    font-size: 1.2rem;
    line-height: 1;
    color: #1f8f4d;
    pointer-events: none;
    z-index: 2;
}



/* Specijalna .my klasa koja posvetljuje bilo koju pozadinu */
.my {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
    border-left: 5px solid #2ecc71;
}

/* ==========================================================================
   4. KOMPONENTA: KARTICA (Reservation Card)
   ========================================================================== */
.res-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 6px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.res-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    z-index: 20; /* Above everything so the buttons work */
}

.res-top-bar-left,
.res-top-bar-right {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.res-top-bar-right {
    justify-content: flex-end;
    margin-left: auto;
}

.res-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none; /* Text does not block clicks below if needed */
}

.res-user { font-size: 0.75rem; color: #444; }
.res-desc { font-size: 0.9rem; font-weight: 600; color: #1a237e; }

/* Class types (text colors) */
span.p { color: #007bff; font-weight: bold; } /* Lectures */
span.v { color: #dc3545; }                     /* Exercises */
span.k { color: #28a745; }                     /* Quiz */
span.o { color: #000000; }                     /* Other */

span.room { color: #333; font-size: 12px; }

/* ==========================================================================
   5. DRAG & DROP SENSORS for canceled classes
   ========================================================================== */
.weekly-canceled { 
    position: relative;
    opacity: 0.3;
}

.sensor-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.drag-sensor {
    flex: 1;
    width: 100%;
    pointer-events: auto;
    background: transparent;
}

.drag-sensor.selected {
    background-color: rgb(34, 139, 255) !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.15s ease;
}

/* ==========================================================================
   6. UI ELEMENTI (Dugmići, Meniji)
   ========================================================================== */
.res-cancel-btn {
    background: #fff;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 11px;
    z-index: 30;
}
.res-cancel-btn:hover { background: #fee; }

.calendar-dropdown {
    position: relative;
}
.cal-btn {
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease;
}

.cal-menu { 
    display: none; 
    position: absolute; 
    right: 0;
    top: 100%;
    margin-top: 0;
    background: white; 
    border: 1px solid #ccc;
    z-index: 100;
    min-width: 150px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.calendar-dropdown:hover .cal-btn {
    transform: scale(1.2);
}
.calendar-dropdown:hover .cal-menu { display: block; }
.cal-menu a { 
    display: block; 
    padding: 8px; 
    text-decoration: none; 
    color: #333; 
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.cal-menu a:last-child { border-bottom: none; }
.cal-menu a:hover { background: #f8f9fa; color: #007bff; }
