/* Family Schedule Calendar - Three-Column Dashboard with Enhanced Weekly View */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Main Dashboard Container */
.fsc-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    grid-template-areas: "sidebar-left main-content sidebar-right";
    min-height: 80vh;
    gap: 20px;
    max-width: 1400px;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Left Sidebar */
.fsc-left-sidebar {
    grid-area: sidebar-left;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.fsc-left-sidebar.collapsed {
    width: 60px;
    grid-template-columns: 60px 1fr 300px;
}

/* Main Content Area */
.fsc-main-content {
    grid-area: main-content;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* Right Sidebar */
.fsc-right-sidebar {
    grid-area: sidebar-right;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.fsc-right-sidebar.collapsed {
    width: 60px;
}

/* Sidebar Headers */
.fsc-sidebar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fsc-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Sidebar Toggle Buttons */
.fsc-sidebar-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fsc-sidebar-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* Sidebar Content */
.fsc-sidebar-content {
    padding: 20px;
}

/* Control Sections */
.fsc-control-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.fsc-control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fsc-control-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Control Groups */
.fsc-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fsc-control-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #34495e;
}

.fsc-control-group input[type="checkbox"] {
    accent-color: #3498db;
}

.fsc-control-group select {
    width: 100%;
    padding: 8px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 14px;
    color: #2c3e50;
}

/* Compact Legend */
.fsc-legend-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fsc-legend-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fsc-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fsc-person-name-compact {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

/* Quick Actions */
.fsc-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* New Calendar Header */
.fsc-calendar-header-new {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
}

.fsc-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fsc-calendar-title-new {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    flex: 1;
}

.fsc-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.fsc-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* View Switcher - Centered */
.fsc-view-switcher-new {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.fsc-view-btn-new {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsc-view-btn-new.active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.fsc-view-btn-new:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Calendar Display Area */
.fsc-calendar-display {
    flex: 1;
    padding: 30px;
    overflow: auto;
}

/* Monthly Grid - UNIFORM CELLS */
.fsc-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #ecf0f1;
    border: 3px solid #34495e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fsc-day-header {
    color: white;
    padding: 15px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Magnetic Planner Colors */
.fsc-day-header:nth-child(1) { background: #e74c3c; } /* Sunday */
.fsc-day-header:nth-child(2) { background: #ff6b9d; } /* Monday */
.fsc-day-header:nth-child(3) { background: #ffa726; } /* Tuesday */
.fsc-day-header:nth-child(4) { background: #42a5f5; } /* Wednesday */
.fsc-day-header:nth-child(5) { background: #26c6da; } /* Thursday */
.fsc-day-header:nth-child(6) { background: #ab47bc; } /* Friday */
.fsc-day-header:nth-child(7) { background: #66bb6a; } /* Saturday */

/* UNIFORM CALENDAR CELLS - CRITICAL FIX */
.fsc-day-cell {
    background: white;
    height: 120px; /* FIXED HEIGHT - prevents resizing */
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #bdc3c7;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* PREVENTS OVERFLOW */
}

.fsc-day-cell:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 10;
}

.fsc-day-number {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
    flex-shrink: 0; /* PREVENTS SHRINKING */
}

.fsc-day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden; /* PREVENTS OVERFLOW */
}

/* DESKTOP: Text Previews with Fixed Height */
.fsc-event-preview {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 14px;
    height: 16px; /* FIXED HEIGHT - prevents cell resizing */
    flex-shrink: 0; /* PREVENTS SHRINKING */
}

.fsc-event-preview:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Person-specific colors */
.fsc-event-preview.person-beth { background: #e91e63; }
.fsc-event-preview.person-gabbie { background: #9c27b0; }
.fsc-event-preview.person-jake { background: #2196f3; }
.fsc-event-preview.person-jon { background: #ff9800; }
.fsc-event-preview.person-kenna { background: #4caf50; }
.fsc-event-preview.person-riley { background: #f44336; }
.fsc-event-preview.person-driving { background: #795548; }

/* MOBILE: Colored Dots Instead of Text */
@media (max-width: 768px) {
    .fsc-event-preview {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        padding: 0;
        margin: 1px;
        text-indent: -9999px; /* HIDE TEXT */
        flex-shrink: 0;
    }
    
    .fsc-day-events {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
    }
}

/* More Events Indicator */
.fsc-more-events {
    font-size: 9px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 2px;
    font-style: italic;
    flex-shrink: 0;
}

.fsc-other-month {
    background: #ecf0f1 !important;
    color: #95a5a6;
}

.fsc-today {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}

/* Enhanced Weekly View - Hourly Timeline */
.fsc-enhanced-week-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 3px solid #34495e;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.fsc-week-header-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background: #ecf0f1;
    border-bottom: 2px solid #34495e;
}

.fsc-time-header {
    background: #2c3e50;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.fsc-week-day-header {
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fsc-week-day-header:nth-child(2) { background: #e74c3c; } /* Sunday */
.fsc-week-day-header:nth-child(3) { background: #ff6b9d; } /* Monday */
.fsc-week-day-header:nth-child(4) { background: #ffa726; } /* Tuesday */
.fsc-week-day-header:nth-child(5) { background: #42a5f5; } /* Wednesday */
.fsc-week-day-header:nth-child(6) { background: #26c6da; } /* Thursday */
.fsc-week-day-header:nth-child(7) { background: #ab47bc; } /* Friday */
.fsc-week-day-header:nth-child(8) { background: #66bb6a; } /* Saturday */

.fsc-today-header {
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.fsc-day-abbrev {
    font-size: 14px;
    letter-spacing: 1px;
}

.fsc-day-date {
    font-size: 18px;
    margin-top: 5px;
}

.fsc-week-timeline-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.fsc-week-timeline-grid {
    display: flex;
    flex-direction: column;
}

.fsc-timeline-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.fsc-timeline-row:hover {
    background-color: #f8f9fa;
}

.fsc-current-hour {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}

.fsc-timeline-hour {
    background: #f8f9fa;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #7f8c8d;
    border-right: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsc-week-hour-cell {
    border-right: 1px solid #ecf0f1;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
    position: relative;
}

.fsc-week-hour-cell:hover {
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.fsc-hour-events {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fsc-week-event {
    background: #3498db;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 9px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    line-height: 14px;
}

.fsc-week-notes-section {
    border-top: 2px solid #34495e;
    background: #f8f9fa;
    padding: 15px 20px;
    max-height: 150px;
    display: flex;
    flex-direction: column;
}

.fsc-week-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fsc-week-notes-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsc-week-notes-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    padding: 10px;
}

.fsc-no-notes {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}

/* Daily View - ENHANCED WITH SCROLLING */
.fsc-day-view {
    background: white;
    border: 3px solid #34495e;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px; /* FIXED HEIGHT */
}

.fsc-day-view-header {
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 18px;
    flex-shrink: 0;
}

/* Daily header colors match the day of week */
.fsc-day-view-header.sunday { background: #e74c3c; }
.fsc-day-view-header.monday { background: #ff6b9d; }
.fsc-day-view-header.tuesday { background: #ffa726; }
.fsc-day-view-header.wednesday { background: #42a5f5; }
.fsc-day-view-header.thursday { background: #26c6da; }
.fsc-day-view-header.friday { background: #ab47bc; }
.fsc-day-view-header.saturday { background: #66bb6a; }

.fsc-day-view-content {
    padding: 0;
    flex: 1;
    overflow-y: auto; /* SCROLLABLE */
    -webkit-overflow-scrolling: touch; /* iOS SMOOTH SCROLLING */
}

.fsc-time-slot {
    display: flex;
    border-bottom: 1px solid #ecf0f1;
    padding: 15px 20px;
    min-height: 60px;
    align-items: flex-start;
}

.fsc-time-label {
    width: 80px;
    font-weight: bold;
    color: #7f8c8d;
    font-size: 12px;
    flex-shrink: 0;
}

.fsc-time-content {
    flex: 1;
    padding-left: 15px;
}

/* Calendar Footer */
.fsc-calendar-footer {
    padding: 20px 30px;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

/* Upcoming Events Sidebar */
.fsc-upcoming-events {
    max-height: 300px;
    overflow-y: auto;
}

.fsc-upcoming-event {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.3s ease;
}

.fsc-upcoming-event:hover {
    background: #f8f9fa;
}

.fsc-event-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.fsc-event-date {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 2px;
}

.fsc-event-person {
    font-size: 11px;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    display: inline-block;
}

/* Quick Notes */
.fsc-quick-notes {
    width: 100%;
    padding: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 10px;
}

/* Stats Display */
.fsc-stats-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fsc-stat-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fsc-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.fsc-stat-label {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button Styles */
.fsc-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.fsc-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.fsc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.fsc-btn-secondary {
    background: #95a5a6;
    color: white;
}

.fsc-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.fsc-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.fsc-btn-block {
    width: 100%;
    margin-bottom: 8px;
}

/* Mobile Controls */
.fsc-mobile-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 1000;
}

.fsc-mobile-toggle {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modal Styles (Enhanced from previous version) */
.fsc-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: hidden;
}

body.fsc-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.fsc-modal-content {
    background: white;
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fsc-modal-inner {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form Styles */
.fsc-form-group {
    margin-bottom: 15px;
}

.fsc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.fsc-form-group input,
.fsc-form-group textarea,
.fsc-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.fsc-form-group input:focus,
.fsc-form-group textarea:focus,
.fsc-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.fsc-form-row {
    display: flex;
    gap: 15px;
}

.fsc-form-group.fsc-half {
    flex: 1;
}

.fsc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 20px 15px 20px;
    border-bottom: 2px solid #ecf0f1;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fsc-modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.fsc-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsc-modal-close:hover {
    color: #333;
}

.fsc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
    position: sticky;
    bottom: 0;
}

/* Loading Animation */
.fsc-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .fsc-dashboard-container {
        grid-template-columns: 240px 1fr 280px;
        gap: 15px;
    }
}

@media (max-width: 968px) {
    .fsc-dashboard-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "main-content";
        gap: 0;
    }
    
    .fsc-left-sidebar,
    .fsc-right-sidebar {
        display: none;
        position: fixed;
        top: 20px;
        bottom: 20px;
        width: 300px;
        z-index: 1500;
        border-radius: 10px;
    }
    
    .fsc-left-sidebar {
        left: 20px;
    }
    
    .fsc-right-sidebar {
        right: 20px;
    }
    
    .fsc-left-sidebar.mobile-open,
    .fsc-right-sidebar.mobile-open {
        display: block;
    }
    
    .fsc-mobile-controls {
        display: flex;
    }
    
    .fsc-calendar-header-new {
        border-radius: 15px 15px 0 0;
    }
    
    .fsc-calendar-footer {
        border-radius: 0 0 15px 15px;
    }
}

@media (max-width: 768px) {
    .fsc-dashboard-container {
        margin: 10px;
        padding: 15px;
    }
    
    .fsc-calendar-header-new {
        padding: 15px 20px;
    }
    
    .fsc-calendar-title-new {
        font-size: 18px;
    }
    
    .fsc-view-switcher-new {
        flex-direction: column;
        gap: 8px;
    }
    
    .fsc-view-btn-new {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .fsc-calendar-display {
        padding: 20px;
    }
    
    .fsc-day-cell {
        height: 80px; /* SMALLER ON MOBILE */
        padding: 4px;
    }
    
    .fsc-day-number {
        font-size: 14px;
    }
    
    .fsc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .fsc-btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .fsc-form-actions {
        flex-direction: column;
    }
    
    /* Mobile Modal: Full Screen */
    .fsc-modal {
        padding: 0;
    }
    
    .fsc-modal-content {
        border-radius: 0;
        margin: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Enhanced Weekly View Mobile Adjustments */
    .fsc-enhanced-week-container {
        height: 500px;
    }
    
    .fsc-week-header-grid {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .fsc-timeline-row {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .fsc-timeline-hour {
        padding: 4px;
        font-size: 9px;
    }
    
    .fsc-week-hour-cell {
        min-height: 30px;
        padding: 2px;
    }
    
    .fsc-week-event {
        font-size: 8px;
        padding: 1px 2px;
    }
    
    .fsc-day-abbrev {
        font-size: 12px;
    }
    
    .fsc-day-date {
        font-size: 14px;
    }
}

@media (min-width: 969px) {
    .fsc-modal-content {
        margin: 5% auto;
        width: 90%;
        max-width: 600px;
        height: auto;
        max-height: 90vh;
        border-radius: 15px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }
    
    .fsc-modal {
        overflow-y: auto;
        padding: 20px;
    }
    
    body.fsc-modal-open {
        position: static;
        overflow: auto;
    }
    
    .fsc-modal-header {
        position: static;
    }
    
    .fsc-form-actions {
        position: static;
    }
}
