/* Cezer Staff Portal - CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========================
   CSS Variables
======================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(26, 26, 26, 0.6);
    --bg-card-hover: rgba(41, 41, 41, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #e4e2dd;
    --text-muted: #9a9a9a;
    --text-dark: #6b7280;
    
    --accent: #e4e2dd;
    --accent-hover: #c9c7c2;
    
    --border-color: rgba(228, 226, 221, 0.1);
    --border-hover: rgba(228, 226, 221, 0.3);
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --purple: #8b5cf6;
    
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --topbar-height: 70px;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   Reset & Base
======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(41, 41, 41, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(228, 226, 221, 0.03) 0%, transparent 50%);
    color: var(--text-secondary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================
   Scrollbar
======================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(228, 226, 221, 0.2);
}

/* ========================
   Sidebar
======================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(17, 17, 17, 0.98) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top left, rgba(228, 226, 221, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, #c9c6bf 100%);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 18px;
}

.sidebar-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 12px;
    position: relative;
    z-index: 1;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 16px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.nav-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
    margin-left: 12px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.nav-link i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-link span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    background: rgba(228, 226, 221, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-link:hover i {
    color: var(--accent);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(228, 226, 221, 0.1) 0%, rgba(228, 226, 221, 0.03) 100%);
    color: var(--text-primary);
    border-color: rgba(228, 226, 221, 0.15);
    font-weight: 600;
}

.nav-link.active::before {
    height: 60%;
}

.nav-link.active i {
    color: var(--accent);
}

.nav-badge {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-footer .user-info:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.sidebar-footer .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-primary);
}

.sidebar-footer .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-footer .user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-footer .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-role {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* Sidebar Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }
    
    .sidebar-overlay.show {
        pointer-events: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* ========================
   Main Content
======================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* ========================
   Topbar
======================== */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
    z-index: 100;
}

.mobile-menu-toggle {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mobile-menu-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.topbar-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.topbar-search .search-form {
    position: relative;
}

.topbar-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.topbar-search input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px 12px 44px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(228, 226, 221, 0.08);
    background: var(--bg-secondary);
}

.topbar-search input::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.search-results.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--bg-card);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Topbar Buttons */
.topbar-btn {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.topbar-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Topbar User */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-avatar span {
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-primary);
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
}

.topbar-user > i {
    color: var(--text-muted);
    font-size: 10px;
    margin-left: 4px;
    transition: var(--transition);
}

.topbar-user:hover > i {
    color: var(--text-secondary);
}

/* ========================
   Dropdown
======================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
    border-bottom: 1px solid var(--border-color);
    margin: -8px -8px 8px -8px;
    padding: 12px;
}

.dropdown-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-header a {
    font-size: 12px;
    color: var(--accent);
}

.dropdown-header a:hover {
    text-decoration: underline;
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-content {
    max-height: 360px;
    overflow-y: auto;
}

.dropdown-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin: 8px -8px -8px;
}

.dropdown-footer a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.dropdown-footer a:hover {
    text-decoration: underline;
}

.dropdown-notifications {
    width: 380px;
}

.dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: var(--text-muted);
    text-align: center;
}

.dropdown-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.dropdown-empty p {
    font-size: 13px;
}

/* Reminder Toast */
.reminder-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    max-width: 400px;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reminder-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.reminder-toast-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: currentColor;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.reminder-toast-content {
    flex: 1;
}

.reminder-toast-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.reminder-toast-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 12px;
}

.reminder-toast-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.reminder-toast-link:hover {
    text-decoration: underline;
}

.reminder-toast-link i {
    font-size: 10px;
}

.reminder-toast-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.reminder-toast-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.notification-item:hover {
    background: var(--bg-card);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-item:hover i {
    color: var(--text-secondary);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dropdown-item.text-danger i {
    color: var(--danger);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* Mobile Responsive Topbar */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .topbar-search {
        max-width: none;
    }
    
    .topbar-user-info {
        display: none;
    }
    
    .topbar-user {
        padding: 6px;
    }
    
    .topbar-user > i {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0 16px;
        gap: 12px;
    }
    
    .topbar-search {
        display: none;
    }
    
    .topbar-actions {
        gap: 8px;
    }
}
    margin: 8px 0;
}

.text-danger {
    color: var(--danger) !important;
}

/* ========================
   Page Content
======================== */
.page-content {
    padding: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb i {
    font-size: 10px;
}

/* ========================
   Cards
======================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================
   Stats Cards
======================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: linear-gradient(135deg, rgba(228, 226, 221, 0.15), rgba(228, 226, 221, 0.05));
    color: var(--accent);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: var(--success);
}

.stat-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--warning);
}

.stat-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: var(--danger);
}

.stat-icon.info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    color: var(--info);
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--purple);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-change.up {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stat-change.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ========================
   Buttons
======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(228, 226, 221, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon.sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

/* ========================
   Forms
======================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.form-control,
.form-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus,
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(228, 226, 221, 0.1);
}

.form-control::placeholder,
.form-input::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

textarea.form-control,
textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-control,
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239a9a9a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon .form-control {
    padding-left: 44px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Color Input */
input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ========================
   Tables
======================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--bg-card);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================
   Badges
======================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-primary {
    background: rgba(228, 226, 221, 0.15);
    color: var(--accent);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: var(--info);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
}

/* ========================
   Alerts
======================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--info);
}

/* ========================
   Avatar
======================== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bg-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -10px;
    border: 2px solid var(--bg-primary);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ========================
   Empty State
======================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ========================
   Modal
======================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: var(--accent);
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================
   Loading
======================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================
   Filters
======================== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filters .form-control {
    width: auto;
    min-width: 150px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================
   Tabs
======================== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ========================
   List Items
======================== */
.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.list-item:hover {
    background: var(--bg-card);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.list-item-actions {
    display: flex;
    gap: 8px;
}

/* ========================
   Grid Layouts
======================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ========================
   Staff Card
======================== */
.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.staff-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.staff-card .avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
    margin: 0 auto 16px;
}

.staff-card .name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.staff-card .role {
    font-size: 13px;
    margin-bottom: 12px;
}

.staff-card .department {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-muted);
}

/* ========================
   Calendar
======================== */
.fc {
    font-family: 'Poppins', sans-serif;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border-color);
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--border-color);
}

.fc-daygrid-day {
    background: var(--bg-secondary);
}

.fc-daygrid-day:hover {
    background: var(--bg-card);
}

.fc-daygrid-day-number {
    color: var(--text-secondary);
}

.fc-col-header-cell-cushion {
    color: var(--text-muted);
    font-weight: 600;
}

.fc-event {
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 6px;
}

.fc-toolbar-title {
    color: var(--text-primary);
}

.fc-button {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.fc-button:hover {
    background: var(--bg-card) !important;
    border-color: var(--border-hover) !important;
}

.fc-button-active {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
}

/* ========================
   Mobile Menu
======================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ========================
   Responsive
======================== */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-name-short {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .topbar-search {
        display: none;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters .form-control {
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 12px;
        font-size: 13px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .topbar {
        padding: 0 16px;
    }
}

/* ========================
   Utilities
======================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ========================
   Dashboard Specific Styles
======================== */

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
    font-size: 16px;
}

/* Current Date Badge */
.current-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.current-date i {
    color: var(--accent);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-item:hover {
    background: transparent;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(228, 226, 221, 0.1), rgba(228, 226, 221, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.activity-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-time::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.event-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.event-day {
    font-size: 22px;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1;
}

.event-month {
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-time i {
    font-size: 12px;
}

.event-type {
    flex-shrink: 0;
}

/* Event Type Badges */
.badge-meeting {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-interview {
    background: rgba(228, 226, 221, 0.15);
    color: var(--accent);
}

.badge-training {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-deadline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-holiday {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-maintenance {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.badge-other {
    background: rgba(228, 226, 221, 0.15);
    color: var(--accent);
}

/* Absence List */
.absence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.absence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.absence-item:hover {
    border-color: var(--border-hover);
}

.absence-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.absence-type {
    text-transform: capitalize;
}

.absence-dates {
    font-size: 14px;
    color: var(--text-secondary);
}

.absence-status {
    text-transform: capitalize;
}

/* Absence Type Badges */
.badge-vacation, .badge-annual_leave {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-sick, .badge-sick_leave {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-personal, .badge-personal_leave {
    background: rgba(228, 226, 221, 0.15);
    color: var(--accent);
}

.badge-remote, .badge-remote_work {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-unpaid, .badge-unpaid_leave {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

/* Absence Status Badges */
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-cancelled {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.quick-link:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(228, 226, 221, 0.08), rgba(228, 226, 221, 0.02));
    color: var(--text-primary);
    transform: translateY(-4px);
}

.quick-link i {
    font-size: 28px;
    color: var(--accent);
    transition: var(--transition);
}

.quick-link:hover i {
    transform: scale(1.1);
}

.quick-link span {
    font-size: 13px;
    font-weight: 500;
}

/* Enhanced Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.2));
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Card Title Icon Colors */
.card-title i {
    color: var(--accent);
}

/* Enhanced Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(228, 226, 221, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    order: 1;
    margin-bottom: 4px;
}

.stat-value {
    order: 2;
}

/* Nav Link Styles (Sidebar) */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-link:hover i {
    color: var(--accent);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(228, 226, 221, 0.12), rgba(228, 226, 221, 0.04));
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.nav-link.active i {
    color: var(--accent);
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-footer .user-avatar {
    width: 44px;
    height: 44px;
}

.sidebar-footer .user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-footer .user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-role {
    font-size: 12px;
    font-weight: 500;
}

/* Page Header Enhancements */
.page-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Topbar Toggle Button */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Interviews List (for dashboard) */
.interviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.interview-item:hover {
    border-color: var(--border-hover);
}

.interview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #c9c6bf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 18px;
    flex-shrink: 0;
}

.interview-content {
    flex: 1;
    min-width: 0;
}

.interview-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.interview-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.interview-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animate dashboard elements on load */
.stat-card,
.card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }

.dashboard-grid .card:nth-child(1) { animation-delay: 0.3s; }
.dashboard-grid .card:nth-child(2) { animation-delay: 0.35s; }

/* Glassmorphism effect for cards */
.card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Hover glow effect */
.stat-card:hover,
.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(228, 226, 221, 0.1);
}

/* Progress bar for stats (if needed) */
.stat-progress {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 300px;
    padding: 16px 0;
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online::before {
    background: var(--success);
}

.status-indicator.offline::before {
    background: var(--text-muted);
    animation: none;
}

.status-indicator.away::before {
    background: var(--warning);
}

/* Scrollbar for card body */
.card-body {
    max-height: 400px;
    overflow-y: auto;
}

.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: transparent;
}

.card-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ========================
   Topbar Enhanced Styles
======================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.topbar-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-card);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg-secondary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px 16px 8px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.topbar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-avatar span {
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-primary);
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.topbar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.topbar-user i {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .topbar-user-info {
        display: none;
    }
    
    .topbar-user {
        padding: 8px;
    }
}

/* Dropdown Enhanced */
.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-header a {
    font-size: 12px;
    color: var(--accent);
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.dropdown-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.dropdown-empty p {
    font-size: 13px;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-card);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(228, 226, 221, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Search Form Enhancement */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-form input {
    width: 100%;
    min-width: 280px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px 12px 44px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(228, 226, 221, 0.1);
}

.search-form input::placeholder {
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .search-form input {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .topbar-search {
        display: none;
    }
}

/* ========================
   HR Calendar System
======================== */

/* Calendar Hero */
.calendar-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.calendar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.calendar-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.calendar-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.calendar-hero-left {
    flex: 1;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.calendar-title i {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e4e2dd 0%, #c9c7c2 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0a0a0a;
    box-shadow: 0 8px 24px rgba(228, 226, 221, 0.3);
}

.calendar-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-left: 72px;
}

.calendar-hero-right {
    text-align: right;
}

.calendar-date-display {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    backdrop-filter: blur(10px);
}

.current-date-large {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.current-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-controls-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-nav-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}

.calendar-nav-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.calendar-nav-btn.today-btn {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 10px 20px;
}

.calendar-nav-btn.today-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(228, 226, 221, 0.3);
}

.calendar-current-month {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Calendar Filters */
.calendar-filters {
    display: flex;
    gap: 8px;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1000;
    display: none;
}

.filter-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.filter-menu-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-option:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.filter-option input {
    display: none;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-hover);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.filter-option input:checked + .filter-checkbox {
    background: var(--filter-color, var(--accent));
    border-color: var(--filter-color, var(--accent));
}

.filter-option input:checked + .filter-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.filter-option i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Calendar View Switcher */
.calendar-view-switcher {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.view-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.view-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.add-event-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px !important;
    font-weight: 600;
}

/* Calendar Wrapper */
.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.calendar-main {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    min-height: 700px;
}

#calendar {
    height: 650px;
    width: 100%;
}

/* FullCalendar Custom Styles */
.fc {
    --fc-border-color: var(--border-color);
    --fc-today-bg-color: rgba(99, 102, 241, 0.08);
    --fc-highlight-color: rgba(99, 102, 241, 0.15);
    --fc-neutral-bg-color: var(--bg-tertiary);
    --fc-page-bg-color: transparent;
    --fc-event-border-color: transparent;
}

.fc .fc-scrollgrid {
    border: none;
}

.fc .fc-scrollgrid-section > * {
    border: none;
}

.fc th {
    border: none !important;
}

.fc .fc-col-header-cell {
    padding: 16px 0;
    background: transparent;
}

.fc .fc-col-header-cell-cushion {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.fc .fc-daygrid-day {
    border: 1px solid var(--border-color) !important;
    transition: var(--transition);
}

.fc .fc-daygrid-day:hover {
    background: var(--bg-card);
}

.fc .fc-daygrid-day-number {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.fc .fc-daygrid-day.fc-day-today {
    background: var(--fc-today-bg-color);
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
    color: var(--text-dark);
}

.fc .fc-event {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none !important;
    margin: 1px 4px;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fc .fc-event .event-icon {
    margin-right: 4px;
    font-size: 10px;
    opacity: 0.9;
}

.fc .fc-event-title {
    font-weight: 500;
}

.fc .fc-daygrid-more-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
}

.fc .fc-daygrid-more-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
}

/* Time Grid View */
.fc .fc-timegrid-slot {
    height: 48px;
}

.fc .fc-timegrid-slot-label-cushion {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: #ef4444;
    border-width: 2px;
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: #ef4444;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

/* List View */
.fc .fc-list {
    border: none;
}

.fc .fc-list-day-cushion {
    background: var(--bg-tertiary);
    padding: 12px 16px;
}

.fc .fc-list-day-text,
.fc .fc-list-day-side-text {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.fc .fc-list-event {
    cursor: pointer;
}

.fc .fc-list-event:hover td {
    background: var(--bg-card);
}

.fc .fc-list-event-dot {
    border-radius: 4px;
}

/* Calendar Sidebar */
.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mini Calendar */
.mini-calendar-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.mini-calendar-header {
    margin-bottom: 16px;
}

.mini-calendar-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-calendar-header h3 i {
    color: var(--accent);
}

#miniCalendar .fc {
    font-size: 12px;
}

#miniCalendar .fc-toolbar-title {
    font-size: 14px;
    font-weight: 600;
}

#miniCalendar .fc-button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

#miniCalendar .fc-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--accent);
}

#miniCalendar .fc-button .fc-icon {
    font-size: 14px;
}

#miniCalendar .fc-daygrid-day-number {
    font-size: 12px;
    padding: 4px;
}

#miniCalendar .fc-daygrid-day {
    cursor: pointer;
}

#miniCalendar .fc-daygrid-day:hover {
    background: rgba(228, 226, 221, 0.1);
}

/* Upcoming Events */
.upcoming-events-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.upcoming-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.upcoming-header h3 i {
    color: #22c55e;
}

.upcoming-count {
    background: linear-gradient(135deg, var(--accent) 0%, #c9c6bf 100%);
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.upcoming-event-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.upcoming-event-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.upcoming-event-color {
    width: 4px;
    height: 40px;
    background: var(--event-color, var(--accent));
    border-radius: 2px;
    flex-shrink: 0;
}

.upcoming-event-content {
    flex: 1;
    min-width: 0;
}

.upcoming-event-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.upcoming-event-time i {
    font-size: 10px;
}

.upcoming-event-type {
    width: 36px;
    height: 36px;
    background: rgba(var(--event-color), 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--event-color, var(--accent));
    flex-shrink: 0;
}

.no-upcoming {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.no-upcoming i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    color: var(--text-muted);
}

.loading-placeholder i {
    font-size: 24px;
    color: var(--accent);
}

/* Event Legend */
.event-legend {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.event-legend h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.event-legend h3 i {
    color: #f59e0b;
}

.legend-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-item i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

/* Calendar Stats */
.calendar-stats {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Event Modal Styles */
.modal-lg {
    max-width: 720px;
}

.modal-md {
    max-width: 560px;
}

.form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.form-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.form-tab:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.form-tab.active {
    background: rgba(228, 226, 221, 0.15);
    color: var(--accent);
}

.form-tab i {
    font-size: 15px;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Event Type Selector */
.event-type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.event-type-option {
    cursor: pointer;
}

.event-type-option input {
    display: none;
}

.type-option-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.type-option-inner i {
    font-size: 20px;
    color: var(--type-color);
}

.type-option-inner span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.event-type-option:hover .type-option-inner {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.event-type-option.selected .type-option-inner {
    background: rgba(var(--type-color), 0.1);
    border-color: var(--type-color);
}

.event-type-option.selected .type-option-inner span {
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    position: relative;
    transition: var(--transition);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::after {
    left: 25px;
    background: var(--bg-primary);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 44px;
}

/* Color Picker */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.color-picker-input {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: var(--radius-sm);
}

.preset-colors {
    display: flex;
    gap: 8px;
}

.preset-color {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s;
}

.preset-color:hover {
    transform: scale(1.15);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-card {
    cursor: pointer;
}

.checkbox-card input {
    display: none;
}

.checkbox-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.checkbox-card:hover .checkbox-card-inner {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.checkbox-card input:checked + .checkbox-card-inner {
    background: rgba(228, 226, 221, 0.1);
    border-color: var(--accent);
}

.checkbox-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-hover);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-card input:checked + .checkbox-card-inner .checkbox-indicator {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-card input:checked + .checkbox-card-inner .checkbox-indicator::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 700;
}

.checkbox-card-inner i {
    color: var(--text-muted);
    font-size: 15px;
}

.checkbox-card input:checked + .checkbox-card-inner i {
    color: var(--accent);
}

.checkbox-card-inner span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Participant List */
.participant-search {
    position: relative;
    margin-bottom: 16px;
}

.participant-search input {
    width: 100%;
}

.participant-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.participant-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item:hover {
    background: var(--bg-card);
}

.participant-item input {
    display: none;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.participant-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: var(--transition);
}

.participant-check i {
    font-size: 10px;
    opacity: 0;
}

.participant-item input:checked ~ .participant-check {
    background: #22c55e;
    border-color: #22c55e;
    opacity: 1;
}

.participant-item input:checked ~ .participant-check i {
    opacity: 1;
    color: white;
}

.selected-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

.selected-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-label i {
    color: var(--accent);
}

.selected-count {
    font-weight: 700;
    color: var(--accent);
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Reminders */
.reminder-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(228, 226, 221, 0.1);
    border: 1px solid rgba(228, 226, 221, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.reminder-info i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
}

.reminder-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.reminder-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.reminder-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.reminder-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.reminder-option input {
    display: none;
}

.reminder-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.reminder-option input:checked + .reminder-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.reminder-option input:checked + .reminder-checkbox::after {
    content: '✓';
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 700;
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.reminder-content i {
    color: var(--text-muted);
    font-size: 15px;
}

.custom-reminder {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.custom-reminder-row {
    display: flex;
    gap: 10px;
}

.custom-reminder-row input[type="number"] {
    flex: 1;
}

.custom-reminder-row select {
    width: 140px;
}

.custom-reminder-row button {
    flex-shrink: 0;
}

/* Event Details Modal */
.event-details-header {
    padding: 32px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
}

.event-details-type {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.event-details-body {
    padding: 24px 32px 32px;
}

.event-details-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.event-details-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.event-meta-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.event-details-description {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.event-details-description h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.event-details-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.event-details-participants h4,
.event-details-departments h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.participants-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-avatar-sm {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-primary);
}

.departments-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dept-tag {
    padding: 6px 14px;
    background: rgba(228, 226, 221, 0.1);
    border: 1px solid rgba(228, 226, 221, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* Admin Action Cards */
.admin-action-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.admin-action-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.action-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-action-card > i {
    color: var(--text-muted);
    font-size: 14px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-success i {
    color: #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Calendar Responsive */
@media (max-width: 1200px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calendar-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .mini-calendar-section {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .calendar-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .calendar-subtitle {
        margin-left: 0;
    }
    
    .calendar-hero-right {
        text-align: center;
    }
    
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-controls-left,
    .calendar-controls-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .event-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-hero {
        padding: 24px;
    }
    
    .calendar-title {
        font-size: 24px;
    }
    
    .calendar-title i {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .calendar-sidebar {
        grid-template-columns: 1fr;
    }
    
    .mini-calendar-section {
        grid-column: auto;
    }
    
    .calendar-filters {
        width: 100%;
        justify-content: center;
    }
    
    .add-event-btn span {
        display: none;
    }
    
    .form-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .form-tab {
        white-space: nowrap;
    }
    
    .reminder-presets {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .calendar-main {
        padding: 12px;
    }
    
    .fc .fc-daygrid-day-number {
        padding: 8px;
        font-size: 12px;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
    }
    
    .calendar-view-switcher {
        display: none;
    }
}

/* ========================
   Notifications Page Styles
======================== */
.notification-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.notification-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.filter-chip.active {
    background: var(--accent);
    border-color: transparent;
    color: var(--bg-primary);
}

.filter-chip i {
    font-size: 12px;
}

.notifications-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.notification-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.notification-card.unread {
    background: rgba(228, 226, 221, 0.05);
    border-color: rgba(228, 226, 221, 0.2);
}

.notification-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: var(--transition);
}

.notification-card.unread .notification-indicator {
    background: var(--accent);
}

.notification-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.notification-time i {
    font-size: 10px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.notification-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.notification-event i {
    color: var(--accent);
    font-size: 12px;
}

.event-date {
    color: var(--text-muted);
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
    margin-left: 4px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.notification-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.notification-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.notification-action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--accent);
    border-color: transparent;
    color: var(--bg-primary);
}

.pagination-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .notification-stats {
        grid-template-columns: 1fr;
    }
    
    .notification-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .notification-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .notification-header {
        flex-direction: column;
        gap: 6px;
    }
}
