/* Modern Admin Panel Styles */
:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f093fb;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-color: #4facfe;
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-color: #43e97b;
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-color: #fa709a;
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-color: #a8edea;
    --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 20px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
}

.nav-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.header {
    background: var(--card-bg);
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    flex: 1;
    min-width: 0;
}

.header-left h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.header-left p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 25px;
    background: var(--light-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: var(--border-color);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Content Area */
.content {
    padding: 30px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card.success::before {
    background: var(--success-gradient);
}

.stat-card.warning::before {
    background: var(--warning-gradient);
}

.stat-card.danger::before {
    background: var(--danger-gradient);
}

.stat-card.info::before {
    background: var(--info-gradient);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    background: var(--primary-gradient);
}

.stat-card.success .stat-icon {
    background: var(--success-gradient);
}

.stat-card.warning .stat-icon {
    background: var(--warning-gradient);
}

.stat-card.danger .stat-icon {
    background: var(--danger-gradient);
}

.stat-card.info .stat-icon {
    background: var(--info-gradient);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tables */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table {
    margin: 0;
    background: var(--card-bg);
}

.table thead th {
    background: var(--light-bg);
    border: none;
    padding: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 15px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #f57c00;
}

.badge-approved {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.badge-rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-floating {
    position: relative;
}

.form-floating .form-control {
    height: 58px;
    padding: 20px 16px 6px;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 20px 16px;
    pointer-events: none;
    border: 2px solid transparent;
    transform-origin: 0 0;
    transition: all 0.1s ease-in-out;
    color: var(--text-secondary);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-info {
    background: var(--info-gradient);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1050;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .header-left {
        flex: none;
        width: 100%;
    }
    
    .header-left h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .header-left p {
        font-size: 0.85rem;
        margin: 0;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-right .dropdown {
        flex: 1;
        min-width: 150px;
    }
    
    .user-profile {
        flex-shrink: 0;
    }
    
    .user-profile {
        padding: 6px 12px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .card-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-header .d-flex {
        width: 100%;
        justify-content: space-between;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .input-group {
        width: 100% !important;
        margin-bottom: 12px;
    }
    
    .dropdown-menu {
        width: 100%;
    }
    
    .chart-container {
        height: 250px !important;
    }
    
    .overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 20px 16px;
        margin: 10px;
    }
    
    .header {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .header-left p {
        font-size: 0.8rem;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .header-right .dropdown {
        min-width: 120px;
    }
    
    .user-profile {
        padding: 4px 8px;
    }
    
    .user-profile .fw-semibold {
        font-size: 0.85rem;
    }
    
    .user-profile small {
        font-size: 0.7rem;
    }
    
    .content {
        padding: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 6px 4px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .user-profile {
        padding: 4px 8px;
    }
    
    .user-avatar {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
}

/* Medium screens optimization */
@media (max-width: 992px) and (min-width: 769px) {
    .header {
        padding: 18px 25px;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .header-right .dropdown {
        min-width: 140px;
    }
}

/* Mobile hamburger button positioning */
.header .btn-link {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

@media (min-width: 769px) {
    .header .btn-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-left {
        padding-left: 50px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .table th,
    .table td {
        padding: 4px 2px;
        font-size: 0.7rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Loading Spinner */
.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); }
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* User Dropdown Styles */
.user-dropdown {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.user-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* Advanced Table Styles */
.table-advanced {
    position: relative;
}

.table-advanced .table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.table-advanced .btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.table-advanced .table-filters {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.table-advanced .filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.table-advanced .filter-item {
    min-width: 150px;
}

.table-advanced .pagination-wrapper {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.activity-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    z-index: 1;
}

.activity-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.activity-content p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.activity-content small {
    font-size: 0.75rem;
}

/* File Manager Styles */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.file-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Onboarding Wizard */
.wizard-steps {
    position: relative;
}

.wizard-step {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.wizard-step.active {
    background: var(--primary-gradient);
    color: white;
}

.wizard-step.completed {
    background: #e8f5e8;
    color: #2e7d32;
}

.wizard-step-icon {
    font-size: 1.25rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-indicator.online {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-indicator.offline {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}

.status-indicator.busy {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Modal Enhancements */
.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Form Enhancements */
.form-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Card Enhancements */
.card-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0.5rem;
}

.card-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.card-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search and Filter Enhancements */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Export and Action Buttons */
.export-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.export-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .table-advanced .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-advanced .filter-item {
        min-width: auto;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .export-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Calendar Styles */
.calendar-container {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
    margin-bottom: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    color: var(--text-primary);
}

.calendar-day:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.calendar-day.today {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

.calendar-day.has-events {
    border-color: var(--success-color);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    background: transparent;
    border-color: transparent;
}

.event-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
}

.event-indicator .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-content h6 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Mobile Calendar Styles */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }

    .calendar-day {
        font-size: 0.875rem;
    }

    .weekday {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 10px;
        height: 10px;
    }
}
