/* ============================================
   MODERN LIGHT THEME - ELEGANT & SOPHISTICATED
   ============================================ */

:root {
    /* Light Theme Colors - Elegant & Soft */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    
    /* Accent Colors - Soft & Elegant */
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #22d3ee;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
    
    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --header-height: 70px;
    --footer-height: 50px;
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    animation: slideIn 0.5s ease-out;
}

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

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

.logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

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

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

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
}

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

.btn-login .arrow {
    font-size: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

/* Stars Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.6"/><circle cx="80" cy="10" r="1" fill="white" opacity="0.7"/><circle cx="30" cy="60" r="0.5" fill="white" opacity="0.5"/><circle cx="70" cy="70" r="1" fill="white" opacity="0.8"/><circle cx="10" cy="80" r="0.5" fill="white" opacity="0.6"/><circle cx="90" cy="50" r="1" fill="white" opacity="0.7"/></svg>') repeat;
    animation: moveStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150"><circle cx="40" cy="40" r="1" fill="white" opacity="0.6"/><circle cx="100" cy="60" r="0.5" fill="white" opacity="0.4"/><circle cx="20" cy="90" r="1" fill="white" opacity="0.5"/><circle cx="130" cy="20" r="0.5" fill="white" opacity="0.6"/></svg>') repeat;
    animation: moveStars 100s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="60" cy="60" r="1.5" fill="white" opacity="0.4"/><circle cx="150" cy="100" r="1" fill="white" opacity="0.3"/><circle cx="30" cy="150" r="1.5" fill="white" opacity="0.5"/></svg>') repeat;
    animation: moveStars 150s linear infinite;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.main-header {
    height: var(--header-height);
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-small .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 8px;
    display: inline-block;
}

.logo-small .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.header-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input-header {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    transition: all 0.3s;
}

.search-input-header:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-desc {
    font-size: 12px;
    color: #666;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    min-height: 42px;
    padding: 5px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 8px;
    padding-right: 20px;
    line-height: 32px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #667eea;
    color: white;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb-item.active {
    color: var(--accent-blue);
    font-weight: 600;
}

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

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

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

/* ============================================
   CALENDAR WIDGET
   ============================================ */

.calendar-widget {
    position: relative;
}

.calendar-trigger {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.calendar-trigger:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.calendar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--bg-primary);
}

.calendar-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 420px;
    background: var(--bg-primary);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: 90vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.calendar-widget.active .calendar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.calendar-month-year {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.03), transparent);
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid transparent;
}

.calendar-day:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.calendar-day.has-events {
    position: relative;
}

.calendar-day.has-events.past-events {
    border: 2px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.calendar-day.has-events.past-events.today {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Event Count Badge */
.event-count-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badge-pulse 2s infinite;
}

.event-count-badge.red {
    background: #ef4444;
    color: white;
}

.event-count-badge.blue {
    background: #3b82f6;
    color: white;
}

.calendar-day.today .event-count-badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.event-count-badge.red {
    animation: badge-pulse-red 1.5s infinite;
}

@keyframes badge-pulse-red {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
        box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5);
    }
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.calendar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.02));
}

.calendar-events {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    max-height: 350px;
    overflow-y: auto;
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.02));
    display: none; /* Artık kullanılmıyor */
}

.calendar-events::-webkit-scrollbar {
    width: 6px;
}

.calendar-events::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.calendar-events::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.calendar-events::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.calendar-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-events-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.btn-add-event {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    width: 100%;
}

.btn-add-event:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-add-event span {
    font-size: 13px;
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-event-item {
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.calendar-event-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.calendar-event-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.calendar-event-item:hover::before {
    transform: scaleY(1);
}

.event-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.calendar-event-item:hover .event-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-icon.maintenance {
    background: #fef3c7;
    color: #92400e;
}

.event-icon.warranty {
    background: #dbeafe;
    color: #1e40af;
}

.event-icon.insurance {
    background: #d1fae5;
    color: #065f46;
}

.event-icon.inspection {
    background: #fce7f3;
    color: #9f1239;
}

.event-icon.payment {
    background: #fee2e2;
    color: #991b1b;
}

.event-icon.birthday {
    background: #fde68a;
    color: #78350f;
}

.event-icon.reminder {
    background: #e0e7ff;
    color: #3730a3;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-note {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

.event-time-small {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Event Detail Modal */
.event-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.event-detail-modal.show {
    display: flex;
}

.event-detail-modal-content {
    background: var(--bg-primary);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-detail-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.event-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-detail-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.event-detail-type {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.event-detail-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-detail-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.event-detail-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.event-detail-info {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    color: var(--accent-blue);
    width: 16px;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.6;
}

.detail-value.past {
    color: var(--text-muted);
}

.detail-value.today {
    color: var(--accent-green);
    font-weight: 600;
}

.detail-value.upcoming {
    color: var(--accent-blue);
}

.event-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.event-detail-actions .btn-primary,
.event-detail-actions .btn-secondary,
.event-detail-actions .btn-danger {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.event-detail-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.event-detail-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.event-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

/* Event Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal.show {
    display: flex !important;
}

.event-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.event-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.event-modal-close {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 20px;
    transition: all 0.3s ease;
}

.event-modal-close:hover {
    background: var(--bg-hover);
}

.event-modal-body {
    padding: 20px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-list-item {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.event-list-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    transform: translateX(4px);
}

.event-list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.event-list-item-content {
    flex: 1;
    min-width: 0;
}

.event-list-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-list-item-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.event-list-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.event-list-item-meta i {
    margin-right: 4px;
}

.event-list-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.event-action-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.event-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.event-action-btn.danger:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.empty-events {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-events i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-events p {
    font-size: 14px;
    margin: 0;
}

/* Form Styles for Calendar Modal */
.event-modal .form-group {
    margin-bottom: 16px;
}

.event-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.event-modal .form-group input,
.event-modal .form-group select,
.event-modal .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.event-modal .form-group input:focus,
.event-modal .form-group select:focus,
.event-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.event-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.event-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.event-modal .btn-primary {
    padding: 10px 20px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-modal .btn-primary:hover {
    background: var(--accent-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.event-modal .btn-secondary {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-modal .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

/* ============================================
   USER PROFILE DROPDOWN
   ============================================ */

.user-profile-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.user-profile-dropdown.active .user-info {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.user-profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    overflow: hidden;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-info p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-details {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.profile-detail-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.profile-detail-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--accent-blue);
    font-size: 16px;
    flex-shrink: 0;
}

.profile-detail-item > div {
    flex: 1;
    min-width: 0;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

.profile-actions {
    padding: 10px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.profile-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateX(5px);
}

.profile-action-btn.logout-action {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.profile-action-btn.logout-action:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.profile-action-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-action-btn {
    margin-bottom: 8px;
}

/* ============================================
   AVATAR UPLOAD SECTION
   ============================================ */

.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-preview-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview i {
    font-size: 48px;
    color: var(--text-muted);
}

.avatar-change-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: 3px solid var(--bg-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.avatar-change-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.avatar-change-btn i {
    font-size: 16px;
}

.avatar-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

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

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--accent-blue);
    animation: spin 1s linear infinite;
}

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

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-large i {
    font-size: 32px;
    color: white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 20px;
    color: white;
}

.dashboard-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: var(--header-height);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

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

.nav-menu {
    list-style: none;
}

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

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--accent-blue);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    color: var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
    font-weight: 600;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 18px;
    color: currentColor;
    transition: all 0.3s;
}

.nav-link.active .nav-icon i {
    color: var(--accent-blue);
}

.nav-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.nav-arrow {
    font-size: 11px;
    transition: transform 0.3s;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow i {
    font-size: 11px;
}

.nav-item.active .nav-arrow {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-arrow {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 14px;
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-tertiary);
}

.nav-item.active .submenu {
    max-height: 500px;
}

.submenu-item {
    margin-left: 20px;
}

.submenu-link {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.submenu-link::before {
    content: '▸';
    position: absolute;
    left: 20px;
    color: var(--accent-blue);
    opacity: 0.5;
}

.submenu-link:hover {
    color: var(--accent-blue);
    padding-left: 45px;
}

.sidebar.collapsed .submenu {
    display: none;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 35px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    border: 2px solid white;
    animation: badge-blink 1.5s infinite;
    z-index: 10;
}

@keyframes badge-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.submenu-link {
    position: relative;
}

.submenu-link .notification-badge {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    top: 50%;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    padding: 30px;
    background: var(--bg-secondary);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.page-icon {
    width: 36px;
    height: 36px;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 15px;
}

.page-content {
    animation: fadeIn 0.3s ease;
}

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

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

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

.card-header h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 6px;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

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

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
}

.data-table tbody tr {
    transition: all 0.3s;
}

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

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-online {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-offline {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-action {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-action.btn-go {
    color: var(--accent-blue);
}

.btn-action.btn-go:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-action.btn-edit {
    color: var(--accent-cyan);
}

.btn-action.btn-edit:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-action.btn-delete {
    color: #ef4444;
}

.btn-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.action-buttons-group {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.page-not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    height: var(--footer-height);
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed ~ .main-footer {
    margin-left: var(--sidebar-collapsed);
}

.footer-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-clock-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#analog-clock-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 120px;
    position: relative;
}

#analog-clock-container canvas {
    display: block !important;
    visibility: visible !important;
    border-radius: 50% !important; /* Tam yuvarlak */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--border-color);
}

#calendar-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 5px;
}

#weather-container {
    margin-left: 10px;
}

.calendar-widget {
    transition: all 0.3s ease;
}

.calendar-widget:hover {
    transform: scale(1.05);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* ============================================
   WELCOME SCREEN
   ============================================ */

.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.welcome-content {
    text-align: center;
    max-width: 500px;
}

.welcome-content h1 {
    font-size: 42px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
    font-weight: 700;
}

.welcome-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease;
}

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

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

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

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
}

.modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
}

.modal-body textarea::placeholder {
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ============================================
   CONTEXT MENU
   ============================================ */

.context-menu {
    display: none;
    position: fixed;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    min-width: 180px;
    overflow: hidden;
}

.context-menu.show {
    display: block;
    animation: contextMenuFadeIn 0.2s ease;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.context-menu li {
    padding: 12px 20px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.context-menu li:hover {
    background: var(--bg-hover);
    color: var(--accent-blue);
}

.context-menu li:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

/* ============================================
   HELP BUTTON
   ============================================ */

.clock-widget-container {
    position: fixed;
    bottom: 100px; /* Yardım butonunun üstünde */
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.menu-button {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a, #fcd34d);
    border: 2px solid #d97706;
    color: #92400e;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.5),
                inset 0 -2px 4px rgba(217, 119, 6, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(217, 119, 6, 0.1) 2px,
            rgba(217, 119, 6, 0.1) 4px
        );
    pointer-events: none;
}

.menu-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.6);
    border-color: #b45309;
}

.menu-button:active {
    transform: scale(1.05) translateY(0);
}

.menu-button i {
    display: block;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Ferman Kağıdı Modal */
.menu-modal-content {
    max-width: 600px;
    width: 90%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.ferman-container {
    background: linear-gradient(135deg, #fef3c7, #fde68a, #fef3c7);
    border: 8px solid #d97706;
    border-radius: 4px;
    padding: 40px 50px;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 100px rgba(217, 119, 6, 0.1);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    animation: fermanAppear 0.5s ease-out;
}

@keyframes fermanAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.ferman-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(217, 119, 6, 0.08) 3px,
            rgba(217, 119, 6, 0.08) 6px
        );
    pointer-events: none;
}

.ferman-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.ferman-seal {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 4px solid #991b1b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fef3c7;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ferman-seal::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #fef3c7;
    border-radius: 50%;
    border-style: dashed;
}

.ferman-title {
    font-size: 42px;
    font-weight: bold;
    color: #92400e;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
    font-family: 'Times New Roman', serif;
}

.ferman-date {
    font-size: 16px;
    color: #78350f;
    font-style: italic;
    margin-top: 10px;
}

.ferman-body {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.ferman-day {
    font-size: 28px;
    font-weight: bold;
    color: #78350f;
    margin-bottom: 25px;
    text-decoration: underline;
    text-decoration-color: #d97706;
    text-underline-offset: 8px;
}

.ferman-menu {
    font-size: 24px;
    color: #92400e;
    line-height: 1.8;
    font-weight: 500;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 2px dashed #d97706;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ferman-footer {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.ferman-signature {
    font-size: 18px;
    color: #78350f;
    font-weight: bold;
    border-top: 2px solid #d97706;
    padding-top: 15px;
    display: inline-block;
    min-width: 250px;
}

.ferman-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.9);
    border: 2px solid #92400e;
    color: #fef3c7;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ferman-close:hover {
    background: rgba(217, 119, 6, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.help-button:active {
    transform: scale(0.95);
}

.help-button span {
    display: block;
    line-height: 1;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* ============================================
   REPORT BUTTON
   ============================================ */

.report-button {
    position: fixed;
    bottom: 30px;
    left: 100px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.report-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.report-button:active {
    transform: scale(0.95);
}

.report-button i {
    display: block;
}

/* Report Modal Styles */
.report-info {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.report-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.report-option-btn {
    padding: 30px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

.report-option-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-option-btn i {
    font-size: 36px;
    color: var(--accent-blue);
}

.report-option-btn[data-format="excel"]:hover i {
    color: #10B981;
}

.report-option-btn[data-format="pdf"]:hover i {
    color: #EF4444;
}

.report-option-btn[data-format="excel"]:hover {
    border-color: #10B981;
}

.report-option-btn[data-format="pdf"]:hover {
    border-color: #EF4444;
}
    box-shadow: var(--shadow-xl);
    background: #20BA5A;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button svg {
    display: block;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.contact-icon.email {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
    color: white;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.contact-value {
    font-size: 18px;
    margin: 10px 0;
}

.contact-value a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-value a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.contact-info-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.contact-info-section h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0 0 25px 0;
    font-weight: 600;
}

.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.support-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.support-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.support-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.support-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.support-item p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px !important;
        z-index: 2000;
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* Sidebar içeriği overlay'in üstünde olmalı */
    .sidebar.open .sidebar-nav {
        position: relative;
        z-index: 2001;
    }
    
    /* Sidebar açıkken overlay - body'ye eklenir */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        animation: fadeIn 0.3s ease;
        pointer-events: auto;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .main-footer {
        margin-left: 0 !important;
    }
    
    .header-center {
        display: none;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .help-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button svg {
        width: 24px;
        height: 24px;
    }
    
    .report-button {
        bottom: 20px;
        left: 80px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .report-options {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .support-channels {
        grid-template-columns: 1fr;
    }
    
    .profile-dropdown-menu {
        width: calc(100vw - 40px);
        max-width: 320px;
        right: 10px;
    }
    
    .user-details {
        display: none;
    }
    
    .user-info {
        padding: 8px 12px;
    }
}
