/* app/static/style.css */

body {
    background: #fef9f8;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #0d0d0d;
    min-height: 100vh;
}

h1, .display-4, .display-5 {
    font-weight: 600;
    color: #0d0d0d;
}

.text-primary {
    color: #ef9273 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #ef9273, #e67d5a);
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(239, 146, 115, 0.2);
    border-radius: 25px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67d5a, #d96941);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 146, 115, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #8bc34a, #7cb342);
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(139, 195, 74, 0.2);
    border-radius: 25px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #7cb342, #689f38);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffb74d, #ffa726);
    border: none;
    color: #2c2c2c;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(255, 183, 77, 0.2);
    border-radius: 25px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.3);
    color: #2c2c2c;
}

.btn-info {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(100, 181, 246, 0.2);
    border-radius: 25px;
}

.btn-info:hover {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
    color: white;
}

/* Card Styling */
.card {
    background: #fef9f8;
    border: 1px solid #f0e9e7;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(13, 13, 13, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(13, 13, 13, 0.08);
    transform: translateY(-2px);
}

/* Welcome Header */
.welcome-header {
    background: linear-gradient(135deg, #ef9273 0%, #e67d5a 100%) !important;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(239, 146, 115, 0.2);
}

/* Statistics Cards */
.bg-info {
    background: linear-gradient(135deg, #36d1dc, #5b86e5) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(54, 209, 220, 0.3);
}

.bg-success {
    background: linear-gradient(135deg, #11998e, #38ef7d) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.bg-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.bg-danger {
    background: linear-gradient(135deg, #ff9a9e, #fecfef) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

/* Navigation */
.navbar {
    background: #fef9f8 !important;
    box-shadow: 0 2px 10px rgba(13, 13, 13, 0.1);
    border-bottom: 1px solid #f0e9e7;
}

.navbar-brand {
    color: #0d0d0d !important;
    font-weight: 600;
}

.nav-link {
    color: #0d0d0d !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ef9273 !important;
}

.nav-link.active {
    color: #ef9273 !important;
}

/* Quick Action Buttons */
.quick-action-btn {
    border: 2px solid #f0e9e7;
    background: #fef9f8;
    color: #0d0d0d;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.quick-action-btn:hover {
    border-color: #ef9273;
    color: #ef9273;
    background: #fef9f8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 146, 115, 0.15);
}

/* Form Elements */
.form-control {
    border: 2px solid #f0e9e7;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fef9f8;
}

.form-control:focus {
    border-color: #ef9273;
    box-shadow: 0 0 0 0.2rem rgba(239, 146, 115, 0.1);
    background: #fef9f8;
}

.form-label {
    color: #0d0d0d;
    font-weight: 500;
}

/* Table Styling */
.table {
    background: #fef9f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(13, 13, 13, 0.05);
}

.table thead th {
    background: #f8f3f2;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8f9ff;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #faede9, #f7e0db);
    color: #ef9273;
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 20px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #212529;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff, #6610f2) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}
}

/* ===============================
   RESPONSIVE DESIGN IMPROVEMENTS
   =============================== */

/* Mobile First Design */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .welcome-header {
        padding: 1.5rem !important;
    }
    
    .welcome-header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .welcome-header p {
        font-size: 0.9rem;
    }
    
    /* Dashboard Cards - Stack vertically on mobile */
    .row .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Quick Action Buttons - Better mobile layout */
    .quick-action-btn {
        padding: 1rem 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    /* Tables - Horizontal scroll */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* Cards - Reduce padding */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Navigation improvements */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Tablet Design */
@media (min-width: 576px) and (max-width: 991.98px) {
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .quick-action-btn {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Dashboard layout adjustments */
    .dashboard-stats .col-md-3 {
        min-height: 120px;
    }
}

/* Desktop Design */
@media (min-width: 992px) {
    .sidebar {
        position: relative;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 48px 0 0;
        box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    /* Better use of large screens */
    .dashboard-overview .col-lg-6 {
        min-height: 400px;
    }
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .quick-action-btn {
        min-height: 80px;
    }
    
    /* Larger touch targets for checkboxes */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Optional Dark mode support (only if explicitly requested) */
@media (prefers-color-scheme: dark) {
    /* Dark mode is disabled by default - uncomment if needed */
    /*
    body {
        background: #f8f9fa;
        color: #495057;
    }
    
    .card {
        background: white;
        border: 1px solid #e9ecef;
    }
    
    .welcome-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .text-muted {
        color: #6c757d !important;
    }
    */
}

/* Loading states and animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification improvements */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53e3e;
    display: none;
}

.notification-badge.has-notifications::after {
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Better focus states for accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 85, 104, 0.25);
    outline: none;
}

/* Improved card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Better spacing for mobile forms */
@media (max-width: 575.98px) {
    .form-group,
    .mb-3 {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .quick-actions,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
}

.btn-warning:hover {
    background: #dd6b20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

.btn-info {
    background: #4299e1;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-info:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: #a0aec0;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #718096;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(160, 174, 192, 0.3);
}

.btn-danger {
    background: #f56565;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.3);
}

/* Hero Section Styling */
.hero-section {
    background: #f7fafc;
    color: #2d3748;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.hero-section .display-4 {
    color: #2d3748;
    font-size: 3.5rem;
}

.hero-section .lead {
    color: #4a5568;
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.hero-graphic {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .card-body {
    padding: 2.5rem 2rem;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.admin-card {
    border: 2px solid #f56565;
}

.admin-card:hover {
    box-shadow: 0 20px 40px rgba(245, 101, 101, 0.2);
}

.section-header {
    text-align: center;
    margin: 3rem 0 2rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #4a5568;
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
}

.list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(44,62,80,0.04);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: none;
}

.navbar {
    background: #2a3d66;
}

.navbar .nav-link, .navbar-brand {
    color: #ef9273 !important;
}

/* ==========================================
   KALENDER - OUTLOOK-ÄHNLICHES DESIGN
   ========================================== */

/* Kalender Container */
#calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 600px;
}

/* FullCalendar Anpassungen */
.fc {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Header Styling */
.fc-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    margin-bottom: 0 !important;
}

.fc-toolbar-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* View Buttons */
.fc-button-group .fc-button {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.fc-button-group .fc-button:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.fc-button-group .fc-button-active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

/* Navigation Buttons */
.fc-prev-button, .fc-next-button, .fc-today-button {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fc-prev-button:hover, .fc-next-button:hover, .fc-today-button:hover {
    background: #e9ecef !important;
    color: #2c3e50 !important;
}

/* Kalender Grid */
.fc-daygrid-day {
    background: white;
    border-color: #e9ecef;
}

.fc-daygrid-day:hover {
    background: #f8f9fa;
}

.fc-day-today {
    background-color: #fff3cd !important;
}

.fc-daygrid-day-number {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem;
}

/* Wochenenden */
.fc-day-sat, .fc-day-sun {
    background-color: #fafbfc;
}

/* Events Styling */
.fc-event {
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    margin: 1px 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.fc-event-title {
    font-weight: 500;
}

/* Event Prioritäten */
.fc-event.priority-high {
    border-left: 4px solid #dc3545 !important;
    background: linear-gradient(90deg, rgba(220,53,69,0.1) 0%, rgba(220,53,69,0.05) 100%) !important;
}

.fc-event.priority-urgent {
    border-left: 4px solid #fd7e14 !important;
    background: linear-gradient(90deg, rgba(253,126,20,0.2) 0%, rgba(253,126,20,0.1) 100%) !important;
    animation: pulse-urgent 2s infinite;
}

.fc-event.priority-low {
    opacity: 0.7;
}

@keyframes pulse-urgent {
    0% { box-shadow: 0 0 0 0 rgba(253,126,20,0.7); }
    70% { box-shadow: 0 0 0 5px rgba(253,126,20,0); }
    100% { box-shadow: 0 0 0 0 rgba(253,126,20,0); }
}

/* Kategorien-Farben */
.fc-event.category-work {
    background-color: #007bff !important;
    color: white !important;
}

.fc-event.category-personal {
    background-color: #28a745 !important;
    color: white !important;
}

.fc-event.category-family {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.fc-event.category-birthday {
    background-color: #dc3545 !important;
    color: white !important;
}

.fc-event.category-appointment {
    background-color: #17a2b8 !important;
    color: white !important;
}

.fc-event.category-meeting {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Zeit-Grid Styling */
.fc-timegrid-axis {
    border-color: #e9ecef;
}

.fc-timegrid-slot {
    border-color: #f1f3f4;
}

.fc-timegrid-slot:nth-child(even) {
    background: #fafbfc;
}

/* Business Hours */
.fc-non-business {
    background: #f8f9fa;
}

/* More Link */
.fc-daygrid-more-link {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
}

.fc-daygrid-more-link:hover {
    color: #0056b3;
}

/* List View */
.fc-list-event {
    border-radius: 4px;
    margin: 2px 0;
}

.fc-list-event:hover {
    background: #f8f9fa;
}

/* Sidebar Styling */
.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Event Items in Sidebar */
.event-item {
    padding: 0.75rem;
    border-radius: 6px;
    background: white;
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.event-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    margin-right: 0.75rem;
}

/* Filter Checkboxes */
.form-check {
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
        align-items: center;
    }
    
    .fc-toolbar-chunk {
        margin: 0.25rem 0;
    }
    
    .fc-button-group .fc-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .fc-event {
        font-size: 0.75rem !important;
        padding: 1px 4px !important;
    }
    
    /* Mobile Sidebar */
    .d-md-none {
        display: block;
    }
    
    @media (max-width: 576px) {
        .col-lg-3 {
            display: none;
        }
        
        .col-lg-9 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }
}

/* Modal Anpassungen */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #2c3e50;
}

/* Form Controls */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Button Animations */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Loading Animation */
@keyframes loading {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: loading 1.5s ease-in-out infinite;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==========================================
   ZUSÄTZLICHE KALENDER STYLES
   ========================================== */

/* FullCalendar Anpassungen */
.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2a3d66;
}

.fc .fc-button-primary {
    background-color: #4e73df;
    border-color: #4e73df;
    color: white;
    border-radius: 6px;
    font-weight: 500;
}

.fc .fc-button-primary:hover {
    background-color: #3c63d2;
    border-color: #3c63d2;
    transform: translateY(-1px);
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #2e54c7;
    border-color: #2e54c7;
}

/* Kalender Header */
.fc .fc-toolbar {
    margin-bottom: 1.5rem;
}

.fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
}

/* Kalender Grid */
.fc .fc-daygrid-day {
    background: white;
}

.fc .fc-daygrid-day:hover {
    background-color: #f8f9fa;
}

.fc .fc-day-today {
    background-color: #e3f2fd !important;
}

.fc .fc-daygrid-day-number {
    color: #2a3d66;
    font-weight: 500;
}

/* Events */
.fc .fc-event {
    border: none;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fc .fc-daygrid-event {
    margin: 2px;
    padding: 2px 4px;
}

.fc .fc-event-title {
    font-weight: 500;
}

.fc .fc-event-time {
    font-weight: 400;
    opacity: 0.8;
}

/* Sidebar */
.legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.view-btn.active {
    background-color: #4e73df;
    border-color: #4e73df;
    color: white;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
}

.modal-title {
    color: #2a3d66;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    background: #f8f9fa;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #2a3d66;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.25rem;
}

.card-header h5,
.card-header h6 {
    color: #2a3d66;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .fc .fc-toolbar-chunk {
        justify-content: center;
    }
    
    .fc .fc-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .modal-lg {
        max-width: 95%;
        margin: 10px;
    }
    
    .row.g-3 > * {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .fc .fc-toolbar-title {
        font-size: 1.4rem;
    }
    
    .fc .fc-daygrid-event {
        font-size: 0.75rem;
    }
    
    .btn-group-vertical .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}
