/* CSS Design System - Resident & Attending Schedule Portal */

:root {
    /* Color Palette */
    --bg-main: #0b0c10;
    --bg-card: rgba(22, 25, 38, 0.7);
    --bg-card-hover: rgba(29, 33, 50, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f1f3f9;
    --text-muted: #8e9bb3;
    --text-inverse: #0b0c10;
    
    /* Team Colors (A, B, C) */
    --color-team-a: #9d4edd;
    --color-team-a-light: rgba(157, 78, 221, 0.15);
    --color-team-a-glow: rgba(157, 78, 221, 0.4);
    
    --color-team-b: #00b4d8;
    --color-team-b-light: rgba(0, 180, 216, 0.15);
    --color-team-b-glow: rgba(0, 180, 216, 0.4);
    
    --color-team-c: #06d6a0;
    --color-team-c-light: rgba(6, 214, 160, 0.15);
    --color-team-c-glow: rgba(6, 214, 160, 0.4);
    
    --color-accent: #3a86f0;
    --color-accent-glow: rgba(58, 134, 240, 0.35);
    --color-warning: #ffb703;
    
    /* Layout & Effects */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --glass-blur: blur(12px);
    --shadow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow-a: 0 0 15px rgba(157, 78, 221, 0.25);
    --shadow-glow-b: 0 0 15px rgba(0, 180, 216, 0.25);
    --shadow-glow-c: 0 0 15px rgba(6, 214, 160, 0.25);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    gap: 1.5rem;
}

/* Header Section */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-team-a));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(58, 134, 240, 0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #8e9bb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Toggle Group Button */
.toggle-group {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.toggle-btn svg {
    opacity: 0.7;
    transition: var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.toggle-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toggle-btn.active svg {
    opacity: 1;
}

/* Month Navigation Bar */
.month-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-subtle);
    animation: fadeIn 0.4s ease-out forwards;
}

.nav-arrow-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-arrow-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.nav-arrow-btn svg {
    width: 20px;
    height: 20px;
}

.month-display-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.active-month-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.month-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 1rem;
}

/* Main Layout Grid */
.main-content {
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

/* View Panels Switching */
.view-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calendar Card */
.calendar-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(110px, auto);
    gap: 8px;
}

/* Individual Calendar Day Cell */
.calendar-day-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.calendar-day-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03), transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.calendar-day-cell:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.calendar-day-cell:hover::before {
    opacity: 1;
}

.calendar-day-cell.active-selected {
    border-color: var(--color-accent);
    background: rgba(58, 134, 240, 0.05);
    box-shadow: 0 0 12px rgba(58, 134, 240, 0.15);
}

.calendar-day-cell.disabled-day {
    opacity: 0.25;
    pointer-events: none;
}

.day-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-muted);
    align-self: flex-start;
    transition: var(--transition-fast);
}

.calendar-day-cell:hover .day-number {
    color: var(--text-primary);
}

.calendar-day-cell.today-cell {
    border-color: var(--color-warning);
    background: rgba(255, 183, 3, 0.03);
}

.calendar-day-cell.today-cell .day-number {
    color: var(--color-warning);
    position: relative;
}

.calendar-day-cell.today-cell .day-number::after {
    content: 'Today';
    position: absolute;
    left: 24px;
    top: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-warning);
    color: var(--text-inverse);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Micro bar indicator inside calendar cell */
.cell-team-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    width: 100%;
}

.cell-team-bar {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.cell-team-bar.bar-team-a {
    background: var(--color-team-a-light);
    color: #e0aaff;
    border-left-color: var(--color-team-a);
}

.cell-team-bar.bar-team-b {
    background: var(--color-team-b-light);
    color: #ade8f4;
    border-left-color: var(--color-team-b);
}

.cell-team-bar.bar-team-c {
    background: var(--color-team-c-light);
    color: #b7f4e4;
    border-left-color: var(--color-team-c);
}

/* Block View Layout */
.timeline-grids-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.block-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: relative;
}

.block-card.active-block-card {
    border-color: var(--color-warning);
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.12), var(--shadow-subtle);
}

.block-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.block-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.active-block-badge-card {
    background: var(--color-warning);
    color: var(--text-inverse);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.block-date-range {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Horizontal team items inside block card */
.block-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.block-team-section {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.block-team-section.team-a::before { background-color: var(--color-team-a); }
.block-team-section.team-b::before { background-color: var(--color-team-b); }
.block-team-section.team-c::before { background-color: var(--color-team-c); }

.block-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.block-team-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.block-team-section.team-a .block-team-title { color: #d8b4fe; }
.block-team-section.team-b .block-team-title { color: #90e0ef; }
.block-team-section.team-c .block-team-title { color: #a7f3d0; }

.block-team-roster {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.block-roster-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.block-roster-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.block-roster-value {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 170px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.block-team-section.team-a .block-roster-row.senior-row .block-roster-value { color: #e0aaff; }
.block-team-section.team-b .block-roster-row.senior-row .block-roster-value { color: #ade8f4; }
.block-team-section.team-c .block-roster-row.senior-row .block-roster-value { color: #b7f4e4; }

/* Rotations listing inside team section */
.block-rotations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.block-rotation-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    gap: 4px;
}

.block-rotation-attending {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.block-rotation-dates {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Rotation Quick Info Side Panel */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--color-accent-glow);
    color: #a3c9ff;
    border: 1px solid rgba(58, 134, 240, 0.3);
}

/* Quick Info cards inside right side panel */
.quick-info-team-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 0.85rem;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-fast);
}

.quick-info-team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.quick-info-team-card.team-a::after { background-color: var(--color-team-a); }
.quick-info-team-card.team-b::after { background-color: var(--color-team-b); }
.quick-info-team-card.team-c::after { background-color: var(--color-team-c); }

.quick-info-team-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.quick-info-team-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.quick-info-team-card.team-a .quick-info-team-name { color: #d8b4fe; }
.quick-info-team-card.team-b .quick-info-team-name { color: #90e0ef; }
.quick-info-team-card.team-c .quick-info-team-name { color: #a7f3d0; }

.quick-info-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 2px 0;
}

.quick-info-role {
    color: var(--text-muted);
    font-weight: 500;
}

.quick-info-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Quick Stats Row */
.info-footer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-card {
    background: rgba(18, 20, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-section h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-section-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

.download-btn {
    background: linear-gradient(135deg, var(--color-team-b), var(--color-accent));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

/* Upload Dropzone styling */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--border-radius-md);
    padding: 2.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-dropzone.dragover {
    border-color: var(--color-accent);
    background: rgba(58, 134, 240, 0.06);
    box-shadow: 0 0 15px rgba(58, 134, 240, 0.1);
}

.upload-icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: var(--transition-fast);
}

.upload-dropzone:hover .upload-icon,
.upload-dropzone.dragover .upload-icon {
    color: var(--color-accent);
    opacity: 1;
    transform: translateY(-3px);
}

.dropzone-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.browse-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
}

.dropzone-limit {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Status Notifications */
.upload-status {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.upload-status.success {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.25);
    color: #a7f3d0;
}

.upload-status.error {
    background: rgba(239, 71, 111, 0.1);
    border: 1px solid rgba(239, 71, 111, 0.25);
    color: #fca5a5;
}

.upload-status.loading {
    background: rgba(58, 134, 240, 0.1);
    border: 1px solid rgba(58, 134, 240, 0.25);
    color: #93c5fd;
}

/* Password Input Styling */
.password-input-wrapper {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-password-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.admin-password-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
}


/* Footer Styling */
.app-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.app-footer code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-accent);
}

/* Responsive Layout Styling */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .details-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    .app-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-controls {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .toggle-group {
        width: 100%;
    }
    
    .toggle-btn {
        flex: 1;
        justify-content: center;
    }
    
    #btn-manage-schedule {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
    }
    
    .calendar-card {
        padding: 0.75rem;
    }
    
    .calendar-weekdays {
        font-size: 0.75rem;
    }
    
    .calendar-days {
        grid-auto-rows: minmax(90px, auto);
        gap: 4px;
    }
    
    .calendar-day-cell {
        min-height: 90px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .cell-team-bar {
        font-size: 0.65rem;
        padding: 1px 3px;
    }
    
    .block-card {
        padding: 1rem;
    }
    
    .block-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
