/* ========================================
   PREMIUM MOBILE PWA APP STYLES
   ======================================== */

:root {
    /* Light Theme Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Light mode colors */
    --trial-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --trial-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --trial-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --trial-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --trial-text: #ffffff;
    --trial-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --trial-overlay: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: #334155;
    --border-light: #1e293b;

    --trial-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --trial-secondary: linear-gradient(135deg, #db2777 0%, #f43f5e 100%);
    --trial-warning: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --trial-danger: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    --trial-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --trial-overlay: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* ========================================
   SPLASH SCREEN
   ======================================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOut 0.5s ease-out 2s forwards;
}

.splash-content {
    text-align: center;
    animation: scaleIn 0.5s ease-out;
}

.splash-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.splash-logo i {
    font-size: 40px;
    color: white;
}

.splash-content h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.splash-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    margin: 30px auto 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   APP CONTAINER
   ======================================== */

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    position: relative;
}

/* Status Bar */
.status-bar {
    height: 44px;
    background: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.status-icons {
    display: flex;
    gap: 4px;
}

.status-icons i {
    font-size: 10px;
}

/* App Header */
.app-header {
    background: var(--bg-primary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--bg-secondary);
}

.menu-toggle i {
    font-size: 20px;
    color: var(--text-primary);
}

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

.logo i {
    font-size: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.header-icon {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.header-icon:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Notification Badge - Fixed positioning */
.notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    z-index: 10;
}

/* If the badge shows 0, hide it */
.notification-badge[data-count="0"],
.notification-badge:empty {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--primary);
}

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

/* ========================================
   DRAWER MENU
   ======================================== */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-primary);
    z-index: 999;
    transform: translateX(-100%);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.drawer-menu.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 40px 20px 20px;
    background: var(--primary-gradient);
    color: white;
}

.drawer-user {
    text-align: center;
}

.drawer-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-top: 40px;
}

.drawer-user h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.drawer-user p {
    font-size: 12px;
    opacity: 0.8;
}

.drawer-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.drawer-item:hover {
    background: var(--bg-secondary);
}

.drawer-item i {
    width: 24px;
    font-size: 20px;
    color: var(--text-secondary);
}

.drawer-item span {
    font-size: 15px;
    font-weight: 500;
}

.drawer-item.logout {
    color: var(--danger);
    /*border-top: 1px solid var(--border-light); */
    margin-top: auto;
    border:0;
    background: none;
}

.drawer-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 20px;
}

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

.app-main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px;
    -webkit-overflow-scrolling: touch;
}

.page-container {
    animation: fadeInUp 0.4s ease-out;
}

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

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--border-light);
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
    background: var(--bg-secondary);
}

.nav-item:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Floating Action Button - Fixed Positioning */


/* ========================================
   DASHBOARD STYLES
   ======================================== */

.welcome-section {
    background: var(--primary-gradient);
    margin: 16px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.welcome-section h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome-section p {
    font-size: 14px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: var(--primary);
}

.stat-rejected {
    background: red !important;
}

.stat-approved {
    background: #26ab4e !important;
}

.stat-pending {
    background: #e0c72c !important;
}
.stat-late {
    background: #e0c72c !important;
}

.stat-absent{
    background: red !important;
}

.icon-white {
    color: #fff !important;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 16px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 600;
}

.section-title a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.activity-list {
    padding: 0 16px;
}

.activity-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    font-size: 20px;
    color: var(--primary);
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-details p {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ========================================
   ATTENDANCE CARD
   ======================================== */

.attendance-card {
    background: var(--bg-card);
    margin: 0px;
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.current-time {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 8px;
}

.current-date {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.location-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.location-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.location-row i {
    color: var(--primary);
    width: 20px;
}

.attendance-buttons {
    display: flex;
    gap: 12px;
}

.btn-checkin, .btn-checkout {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.btn-checkin:active, .btn-checkout:active {
    transform: scale(0.98);
}

/* ========================================
   LEAVE CARDS
   ======================================== */

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 2px;
}

.balance-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.balance-card h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-card .balance {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.leave-form {
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ========================================
   EMPLOYEE LIST
   ======================================== */

.employee-list {
    padding: 0 16px;
}

.employee-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: var(--transition-fast);
}

.employee-item:active {
    transform: scale(0.98);
}

.employee-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.employee-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* ========================================
   PAYROLL STYLES
   ======================================== */

.salary-card {
    background: var(--primary-gradient);
    margin: 16px;
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
}

.salary-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.salary-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.salary-date {
    font-size: 12px;
    opacity: 0.8;
}

.salary-breakdown {
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

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

.breakdown-value {
    font-size: 14px;
    font-weight: 600;
}

.breakdown-value.positive {
    color: var(--success);
}

.breakdown-value.negative {
    color: var(--danger);
}

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

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-container.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease-out;
}

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

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

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: toastSlideUp 0.3s ease-out;
    pointer-events: auto;
    border-left: 4px solid var(--success);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast i {
    font-size: 20px;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

.toast span {
    flex: 1;
    font-size: 14px;
}

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

/* ========================================
   ANIMATED SETTINGS PAGE
   ======================================== */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.settings-header {
    text-align: center;
    margin-bottom: 40px;
}

.settings-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.settings-header .header-icon i {
    font-size: 32px;
    color: white;
}

.settings-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.settings-header p {
    color: var(--text-secondary);
}

/* Settings Cards */
.settings-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    animation: cardFadeIn 0.5s ease-out;
}

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

.card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.header-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-wrapper i {
    font-size: 24px;
    color: white;
}

.card-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

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

.card-body {
    padding: 8px 0;
}

/* Settings Items */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-light);
}

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

.settings-item:hover {
    background: var(--bg-secondary);
    padding-left: 28px;
    border-radius: 4px;
}

.settings-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.settings-item:hover .icon-wrapper {
    background: var(--primary);
    transform: scale(1.05);
}

.settings-item:hover .icon-wrapper i {
    color: white;
}

.icon-wrapper i {
    font-size: 18px;
    color: var(--primary);
    transition: all 0.3s;
}

.setting-title {
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

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

.arrow-icon {
    color: var(--text-tertiary);
    font-size: 14px;
    transition: transform 0.3s;
}

.settings-item:hover .arrow-icon {
    transform: translateX(5px);
    color: var(--primary);
}

/* Logout specific styles */


.logout-icon i {
    color: var(--danger);
}

.logout-text {
    color: var(--danger);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

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

/* Responsive */
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }
    
    .settings-header h1 {
        font-size: 24px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .settings-item {
        padding: 14px 20px;
    }
    
    .setting-description {
        font-size: 11px;
    }
    
    .icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .icon-wrapper i {
        font-size: 16px;
    }
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.profile-header {
    background: var(--primary-gradient);
    padding: 32px 16px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 14px;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--bg-card);
    margin: 16px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

::-webkit-scrollbar {
    width: 4px;
}

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

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

/* ========================================
   RESPONSIVE & SAFE AREA
   ======================================== */

@supports (padding: max(0px)) {
    .bottom-nav {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }  
    
    
    .toast-container {
        bottom: max(80px, calc(env(safe-area-inset-bottom) + 60px));
    }
}

@media (max-width: 380px) {
    .stats-grid {
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-info h3 {
        font-size: 20px;
    }
}

/* ========================================
   EMPLOYEE DIRECTORY STYLES
   ======================================== */

.employees-container {
    padding: 20px;
    animation: fadeInUp 0.4s ease-out;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.payroll-container .page-header {
    margin-bottom: 24px;    
    padding: 15px !important;
}

.page-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-header h1 i {
    color: var(--primary);
    margin-right: 10px;
}

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

/* Search Section */
.search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    padding: 0;
    width: auto;
}

.search-clear:hover {
    color: var(--danger);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 12px;
}

.toggle-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: var(--bg-tertiary);
}

/* Stats Cards */
.employee-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-card-mini {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 120px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-mini .stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-mini .stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-card-mini .stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-mini .stat-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Add Employee Button */
.add-employee-section {
    margin-bottom: 24px;
    text-align: right;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Grid View */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.4s ease-out;
}

.employee-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    animation: cardFadeIn 0.4s ease-out;
}

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

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

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
}

.employee-avatar-large {
    position: relative;
}

.employee-avatar-large img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.status-badge.active {
    background: var(--success);
}

.status-badge.inactive {
    background: var(--danger);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn.edit {
    background: var(--bg-secondary);
    color: var(--primary);
}

.icon-btn.edit:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.icon-btn.view {
    background: var(--bg-secondary);
    color: var(--info);
}

.icon-btn.view:hover {
    background: var(--info);
    color: white;
    transform: translateY(-2px);
}

.icon-btn.delete {
    background: var(--bg-secondary);
    color: var(--danger);
}

.icon-btn.delete:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.card-body {
    padding: 20px;
}

.employee-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.employee-role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.employee-dept, .employee-email, .employee-id {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.employee-dept i, .employee-email i, .employee-id i {
    width: 16px;
    font-size: 12px;
}

.card-footer {
    padding: 12px 20px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.status-text.active {
    color: var(--success);
    font-weight: 500;
}

.status-text.inactive {
    color: var(--danger);
}

.join-date {
    color: var(--text-tertiary);
}

/* Table View */
.employees-table-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 14px;
}

.employees-table thead {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.employees-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.employees-table td {
    padding: 16px;
    border-bottom: 0px solid var(--border-light);
    color: var(--text-primary);
}

.emp-id {
    font-weight: 600;
    color: var(--primary);
}

.emp-info-cell .emp-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emp-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.emp-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.emp-email-small {
    font-size: 12px;
    color: var(--text-tertiary);
}

.actions-cell {
    /*display: flex; */
    gap: 8px;
}

.icon-btn-sm {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-sm.edit {
    background: var(--bg-secondary);
    color: var(--primary);
}

.icon-btn-sm.view {
    background: var(--bg-secondary);
    color: var(--info);
}

.icon-btn-sm.delete {
    background: var(--bg-secondary);
    color: var(--danger);
}

.icon-btn-sm:hover {
    transform: translateY(-2px);
}

.icon-btn-sm.edit:hover {
    background: var(--primary);
    color: white;
}

.icon-btn-sm.view:hover {
    background: var(--info);
    color: white;
}

.icon-btn-sm.delete:hover {
    background: var(--danger);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border-radius: 20px;
}

.no-results i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Employee Modal */
.employee-modal, .employee-view-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Employee Profile View */
.employee-profile-view {
    text-align: center;
}

.profile-header-view img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 16px;
}

.profile-header-view h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-header-view p {
    color: var(--primary);
    margin-bottom: 20px;
}

.profile-details {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .employees-container {
        padding: 16px;
    }
    
    .employees-grid {
        grid-template-columns: 1fr;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
    
    .employee-stats {
        flex-direction: column;
    }
    
    .stat-card-mini {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .add-employee-section {
        text-align: center;
    }
    .stat-card-mini .stat-info h3 {
        font-size: 15px;   
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    grid-column: 1 / -1;
}

/* Employee Modal Styles */
.employee-modal, .employee-view-modal {
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border-radius: 24px;
    position: relative;
    z-index: 1001;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 18px;
    margin: 0;
}

.modal-header h3 i {
    margin-right: 8px;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

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

.form-group .required {
    color: var(--danger);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-group input.error, .form-group select.error {
    border-color: var(--danger);
}

.error-msg {
    color: var(--danger);
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle-modal {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    width: auto;
    padding: 0;
}

/* Employee Profile View */
.employee-profile-view {
    text-align: center;
}

.profile-header-view img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 16px;
}

.profile-header-view h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-header-view p {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.profile-details {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-label i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #10b98120;
    color: #10b981;
}

.status-badge.inactive {
    background: #ef444420;
    color: #ef4444;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.status-dot.active {
    background: #10b981;
}

.status-dot.inactive {
    background: #ef4444;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

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

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .employee-modal, .employee-view-modal {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* ========================================
   BUTTON STYLES - ADD THESE CLASSES
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Modal Footer Buttons */
.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
}

/* Icon Buttons - Make sure these exist */
.icon-btn, .icon-btn-sm {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.icon-btn:hover, .icon-btn-sm:hover {
    transform: translateY(-2px);
}

.icon-btn.edit:hover, .icon-btn-sm.edit:hover {
    background: var(--primary);
    color: white;
}

.icon-btn.view:hover, .icon-btn-sm.view:hover {
    background: var(--info);
    color: white;
}

.icon-btn.download:hover, .icon-btn-sm.download:hover {
    background: var(--info);
    color: white;
}

.icon-btn.delete:hover, .icon-btn-sm.delete:hover {
    background: var(--danger);
    color: white;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #10b98120;
    color: #10b981;
}

.status-badge.inactive {
    background: #ef444420;
    color: #ef4444;
}

/* For table view status column */
.employees-table td .status-badge {
    display: inline-flex;
    width: auto;
    white-space: nowrap;
}


/* Table Status Badge - Make sure text is visible */
.employees-table .status-cell {
    vertical-align: middle;
}

.status-badge-table {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.status-badge-table.active {
    background: #10b98120;
    color: #10b981;
    border: 1px solid #10b98140;
}

.status-badge-table.inactive {
    background: #ef444420;
    color: #ef4444;
    border: 1px solid #ef444440;
}

/* Ensure text is visible in dark mode */
[data-theme="dark"] .status-badge-table.active {
    background: #10b98130;
    color: #34d399;
}

[data-theme="dark"] .status-badge-table.inactive {
    background: #ef444430;
    color: #f87171;
}

/* Grid View Status Text */
.status-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-text.active {
    color: #10b981;
}

.status-text.inactive {
    color: #ef4444;
}

.status-text i {
    font-size: 8px;
}

.status-text.active i {
    color: #10b981;
}

.status-text.inactive i {
    color: #ef4444;
}

/* Employee View Modal - Status Styles */
.employee-view-modal .profile-details .detail-row .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.employee-view-modal .profile-details .detail-row .status-badge.active {
    background: #10b98120;
    color: #10b981;
    border: 1px solid #10b98140;
}

.employee-view-modal .profile-details .detail-row .status-badge.inactive {
    background: #ef444420;
    color: #ef4444;
    border: 1px solid #ef444440;
}

/* For dark mode */
[data-theme="dark"] .employee-view-modal .profile-details .detail-row .status-badge.active {
    background: #10b98130;
    color: #34d399;
}

[data-theme="dark"] .employee-view-modal .profile-details .detail-row .status-badge.inactive {
    background: #ef444430;
    color: #f87171;
}

/* Ensure the detail-row has proper alignment */
.employee-view-modal .profile-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.employee-view-modal .profile-details .detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.employee-view-modal .profile-details .detail-label i {
    width: 20px;
    color: var(--primary);
}

/* Very specific class for view employee modal status */
.employee-view-modal .employee-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.employee-view-modal .employee-status-badge.active {
    background: #10b98120;
    color: #10b981;
    border: 1px solid #10b98140;
}

.employee-view-modal .employee-status-badge.inactive {
    background: #ef444420;
    color: #ef4444;
    border: 1px solid #ef444440;
}

/* For dark mode */
[data-theme="dark"] .employee-view-modal .employee-status-badge.active {
    background: #10b98130;
    color: #34d399;
}

[data-theme="dark"] .employee-view-modal .employee-status-badge.inactive {
    background: #ef444430;
    color: #f87171;
}

/* ========================================
   NO RESULTS STYLES
   ======================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border-radius: 24px;
    margin: 20px 0;
    animation: fadeInUp 0.4s ease-out;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: bounce 1s ease-in-out;
}

.no-results-icon i {
    font-size: 48px;
    color: var(--text-tertiary);
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Empty State for Grid */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* Dark mode support */
[data-theme="dark"] .no-results-icon {
    background: linear-gradient(135deg, #1e293b, #334155);
}

[data-theme="dark"] .btn-outline {
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Extra small pill buttons */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-outline i, .btn-primary i {
    font-size: 10px;
}

.btn-padding{
    padding: 12px;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.page-number:hover {
    background: var(--bg-secondary);
}

.page-number.active {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        text-align: center;
    }
    
    .page-btn, .page-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Make sure bottom nav has proper z-index */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--border-light);
    z-index: 100;
}



/* ========================================
   MODAL WITH FIXED HEADER AND FOOTER
   ======================================== */

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-container.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Modal Content - Fixed Header and Footer */
.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

/* Fixed Header */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

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

.modal-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    /* background: var(--bg-secondary); */
    background: #ffcac6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

/* Scrollable Body */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Fixed Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* For Employee Modal specifically */
.employee-modal .modal-body {
    max-height: calc(85vh - 140px);
}

/* Form Styles inside modal */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

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

.form-group .required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger);
}

.error-msg {
    color: var(--danger);
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

/* Input wrapper for password toggle */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle-modal {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    width: auto;
    padding: 0;
}

/* Button Styles */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

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

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

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 13px;
    }
}


/* Fix table borders and alignment */
.employees-table {
    border-collapse: collapse;
    width: 100%;
}

.employees-table tbody tr {
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .employees-table tbody tr {
    border-bottom: 1px solid  var(--border-light);
}

/* Fix actions cell - make buttons in one line */
.employees-table td.actions-cell {
    white-space: nowrap;
}

.actions-cell {
    /*display: flex;*/
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* Fix icon buttons alignment */
.icon-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Fix status badge alignment */
.employees-table .status-badge {
    display: inline-block;
    white-space: nowrap;
}

/* Leave Management Styles */
.leave-container {
    padding: 20px;
}

.leave-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.leave-balance-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 24px;
}

.leave-balance-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
}

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.balance-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.balance-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.balance-used {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 5px;
}

.filter-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

/* Leave Grid */
.leave-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.leave-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

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

.leave-card-header {
    padding: 16px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.leave-type-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leave-type-icon i {
    color: white;
    font-size: 18px;
}

.leave-type-name {
    flex: 1;
    font-weight: 600;
}

.leave-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.leave-status.approved {
    background: var(--bg-secondary);
    color: #10b981;
}

.leave-status.pending {
     background: var(--bg-secondary);
    color: #f59e0b;
}

.leave-status.rejected {
     background: var(--bg-secondary);
    color: #ef4444;
}

.leave-card-body {
    padding: 16px;
}

.leave-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.date-range, .total-days {
    font-size: 13px;
    color: var(--text-secondary);
}

.date-range i, .total-days i {
    margin-right: 5px;
}

.leave-reason {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.leave-reason i {
    color: var(--text-tertiary);
}

.leave-reason p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.leave-card-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leave-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.leave-view-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
}

/* Leave Table */
.leave-table-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow-x: auto;
    margin-top: 20px;
}

.leave-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 14px;
}

.leave-table th, .leave-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leave-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
}

.reason-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leave-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.leave-status-badge.approved {
    background: #10b98120;
    color: #10b981;
}

.leave-status-badge.pending {
    background: #f59e0b20;
    color: #f59e0b;
}

.leave-status-badge.rejected {
    background: #ef444420;
    color: #ef4444;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .leave-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-wrapper {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}


/* ========================================
   MODAL Z-INDEX FIX
   ======================================== */

/* Modal Container - Highest z-index */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;   
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-container.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
}

/* Modal Content */
.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

/* Leave Modal specific */
.leave-modal {
    max-width: 500px;
}

/* Ensure bottom nav doesn't overlay modal */
.bottom-nav {
    z-index: 100;
}

/* Modal Header - Fixed */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Modal Body - Scrollable */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 140px);
}

/* Modal Footer - Fixed */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

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

/* Pending Leaves Styles */
.pending-leaves-container {
    margin-top: 20px;
}

.pending-leaves-container h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.pending-leaves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.pending-leave-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.pending-leave-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pending-leave-header {
    padding: 16px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

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

.employee-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.employee-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.pending-leave-body {
    padding: 16px;
}

.leave-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-item i {
    width: 20px;
    color: var(--primary);
}

.detail-item.reason {
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 12px;
    margin-top: 5px;
}

.pending-leave-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-approve {
    flex: 1;
    background: #10b981;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-approve:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-reject {
    flex: 1;
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-reject:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
}

/* Leave Tabs */
.leave-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn .badge {
    background: var(--danger);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 8px;
}

/* Reject Modal */
.reject-modal {
    max-width: 450px;
}

/* ========================================
   MOBILE-OPTIMIZED NO RESULTS STYLES
   ======================================== */

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

.no-results-card {
    max-width: 320px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 32px;
    padding: 40px 24px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

/* Animated Calendar Icon */
.no-results-animation {
    margin-bottom: 24px;
}

.calendar-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatIcon 3s ease-in-out infinite;
}

.calendar-icon i {
    font-size: 40px;
    color: white;
}

.calendar-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--warning);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

.calendar-dot-2 {
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s ease-in-out infinite;
}

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

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

/* Typography */
.no-results-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Action Buttons */
.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-results-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.no-results-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.no-results-actions .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.no-results-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Dark mode support */
[data-theme="dark"] .no-results-card {
    background: var(--bg-card);
}

[data-theme="dark"] .no-results-actions .btn-outline {
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .no-results-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .no-results {
        padding: 20px 16px;
        min-height: 50vh;
    }
    
    .no-results-card {
        padding: 32px 20px;
        border-radius: 28px;
    }
    
    .calendar-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    
    .calendar-icon i {
        font-size: 34px;
    }
    
    .no-results-card h3 {
        font-size: 18px;
    }
    
    .no-results-card p {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .no-results-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .no-results-actions .btn-primary,
    .no-results-actions .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

/* For very small devices */
@media (max-width: 360px) {
    .no-results-card {
        padding: 24px 16px;
    }
    
    .calendar-icon {
        width: 60px;
        height: 60px;
    }
    
    .calendar-icon i {
        font-size: 28px;
    }
    
    .no-results-card h3 {
        font-size: 16px;
    }
}

/* ========================================
   UPDATE NOTIFICATION STYLES
   ======================================== */

.update-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.update-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.update-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-left: 4px solid var(--primary);
}

.update-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-icon i {
    font-size: 24px;
    color: white;
    animation: rotate 1s ease-in-out infinite;
}

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

.update-text {
    flex: 1;
}

.update-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.update-actions {
    display: flex;
    gap: 10px;
}

.update-later, .update-now {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.update-later {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.update-now {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.update-later:hover, .update-now:hover {
    transform: translateY(-2px);
}

/* Connection Status Indicator */
.connection-status {
    margin-left: 10px;
    font-size: 12px;
    cursor: pointer;
}

.connection-status i {
    font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .update-content {
        flex-direction: column;
        text-align: center;
    }
    
    .update-actions {
        width: 100%;
    }
    
    .update-later, .update-now {
        flex: 1;
    }
}

/* Attendance Filters */
.attendance-filters {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.attendance-filters h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-export {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-export:hover {
    background: #059669;
}

/* Attendance Stats Summary */
.attendance-stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Attendance Table */
.attendance-table-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
}

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

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.attendance-table th,
.attendance-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.attendance-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
}

.attendance-table tr:hover {
    background: var(--bg-secondary);
}

.status-badge.present {
    background: #10b98120;
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.status-badge.late {
    background: #f59e0b20;
    color: #f59e0b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.status-badge.absent {
    background: #ef444420;
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .attendance-stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 22px;
    }
}

/* ========================================
   ATTENDANCE PAGE SPECIFIC FIXES
   ======================================== */

/* Main container padding */
.attendance-container {
    padding: 16px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Attendance card */
.attendance-card {
    margin-bottom: 20px;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
}

/* Filters section */
.attendance-filters {
    margin-bottom: 20px;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

/* Stats summary */
.attendance-stats-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
}

/* Table container */
.attendance-table-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
}

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

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.attendance-table th,
.attendance-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .attendance-container {
        padding: 12px !important;
    }
    
    .attendance-filters {
        padding: 16px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .attendance-stats-summary {
        gap: 8px;
    }
    
    .stat-box {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .attendance-container {
        padding: 8px !important;
    }
    
    .attendance-card {
        padding: 16px;
    }
    
    .attendance-stats-summary {
        flex-wrap: wrap;
    }
    
    .stat-box {
        flex: calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

/* ========================================
   ATTENDANCE TABLE FIXES
   ======================================== */

/* Table container */
.attendance-table-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.section-title h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Refresh button animation */
.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.refresh-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.refresh-btn i {
    font-size: 16px;
    transition: transform 0.5s ease;
}

.refresh-btn:hover i {
    animation: spin 0.8s ease-in-out;
}

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

/* Clear button style */
.clear-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.clear-filter-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Table wrapper for horizontal scroll */
.table-wrapper {
    overflow-x: auto;
    padding: 0;
}

/* Attendance table */
.attendance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.attendance-table th {
    background: var(--bg-secondary);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.attendance-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
}

.attendance-table tr:hover {
    background: var(--bg-secondary);
}

/* Status badges */
.attendance-table .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.attendance-table .status-badge.present {
    background: #10b98120;
    color: #10b981;
}

.attendance-table .status-badge.late {
    background: #f59e0b20;
    color: #f59e0b;
}

.attendance-table .status-badge.absent {
    background: #ef444420;
    color: #ef4444;
}

/* Location cell */
.location-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-cell i {
    margin-right: 6px;
    color: var(--primary);
    font-size: 12px;
}

/* Filter actions row */
.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .section-title {
        padding: 12px 16px;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .location-cell {
        max-width: 100px;
    }
    
    .refresh-btn {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .attendance-table th,
    .attendance-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .location-cell {
        max-width: 80px;
    }
}

/* ========================================
   CALENDAR VIEW STYLES
   ======================================== */

.attendance-calendar {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

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

.calendar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.calendar-nav {
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.calendar-nav:hover {
    background: var(--primary);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.calendar-weekdays div {
    padding: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 80px;
}

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

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

.calendar-day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.calendar-day-status {
    font-size: 12px;
    margin: 5px 0;
}

.calendar-day-status i {
    font-size: 16px;
}

.calendar-day-time {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Status colors for calendar */
.calendar-day.present {
    background: #10b98120;
    border-left: 3px solid #10b981;
}

.calendar-day.present i {
    color: #10b981;
}

.calendar-day.late {
    background: #f59e0b20;
    border-left: 3px solid #f59e0b;
}

.calendar-day.late i {
    color: #f59e0b;
}

.calendar-day.absent {
    background: #ef444420;
    border-left: 3px solid #ef4444;
}

.calendar-day.absent i {
    color: #ef4444;
}

.calendar-day.weekend {
    background: var(--bg-tertiary);
    opacity: 0.6;
}

.calendar-day.no-record {
    background: var(--bg-secondary);
}

/* Tooltip on hover */
.calendar-day .status-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.calendar-day:hover .status-tooltip {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .attendance-calendar {
        padding: 12px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 60px;
    }
    
    .calendar-day-number {
        font-size: 12px;
    }
    
    .calendar-day-status i {
        font-size: 12px;
    }
    
    .calendar-weekdays div {
        padding: 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 50px;
    }
    
    .calendar-day-number {
        font-size: 10px;
    }
    
    .calendar-day-status i {
        font-size: 10px;
    }
}

/* ========================================
   ATTENDANCE DETAIL MODAL
   ======================================== */

.attendance-detail-modal {
    max-width: 450px;
    width: 90%;
}

.attendance-detail-card {
    padding: 5px;
}

.detail-date-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.date-full {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.detail-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-status.present {
    background: #10b98120;
    color: #10b981;
}

.detail-status.late {
    background: #f59e0b20;
    color: #f59e0b;
}

.detail-status.absent {
    background: #ef444420;
    color: #ef4444;
}

.detail-status.weekend {
    background: #8b5cf620;
    color: #8b5cf6;
}

.detail-status.no-record {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.detail-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

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

.detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.detail-value i {
    margin-right: 5px;
    font-size: 11px;
}

.location-address {
    max-width: 200px;
    text-align: right;
    word-break: break-word;
}

.no-data {
    text-align: center;
    padding: 20px;
}

.no-data i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.no-data p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.no-data .note {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .location-address {
        max-width: 100%;
        text-align: left;
    }
}

/* Location Modal Styles */
.location-modal {
    max-width: 500px;
    width: 90%;
}

.location-info-modal {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.location-coordinates {
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.location-address-modal {
    font-size: 13px;
    line-height: 1.5;
}

.location-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    background: var(--bg-secondary);
}

.map-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.map-actions .btn-outline {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.map-actions .btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Location box clickable */
.location-box {
    cursor: pointer;
    transition: all 0.3s;
}

.location-box:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

.location-box .fa-external-link-alt {
    opacity: 0;
    transition: opacity 0.3s;
}

.location-box:hover .fa-external-link-alt {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .location-modal {
        width: 95%;
    }
    
    .location-map {
        height: 250px;
    }
    
    .map-actions {
        flex-direction: column;
    }
}

/* ========================================
   CLEAN ANIMATED CLOCK STYLES
   ======================================== */

.animated-clock {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary), #0f172a);
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.animated-clock:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Subtle background animation */
.animated-clock::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: slowRotate 30s linear infinite;
}

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

.time-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.time-digits {
    font-size: 60px;
    font-weight: 700;    
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 5px;
    transition: all 0.2s ease;
}

.time-ampm {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.date-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.date-day {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.date-full {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .animated-clock {
        padding: 18px;
    }
    
    .time-digits {
        font-size: 48px;
        letter-spacing: 3px;
    }
    
    .time-ampm {
        font-size: 18px;
    }
    
    .date-day {
        font-size: 14px;
    }
    
    .date-full {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .time-digits {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .time-ampm {
        font-size: 14px;
    }
    
    .animated-clock {
        padding: 14px;
    }
}

.logout-icon {
    color: red;
}

/* ========================================
   LEAVE BALANCE CARDS - 2 PER ROW ON MOBILE
   ======================================== */

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Tablet view - 2 columns */
@media (max-width: 900px) {
    .leave-balance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Mobile view - 2 columns (still 2 per row) */
@media (max-width: 600px) {
    .leave-balance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Very small devices - still 2 columns but smaller padding */
@media (max-width: 400px) {
    .leave-balance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.balance-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.balance-card:hover::before {
    opacity: 1;
}

.balance-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.balance-card:hover .balance-card-icon {
    transform: scale(1.05);
}

.balance-card-icon i {
    font-size: 24px;
}

.balance-card-content {
    width: 100%;
}

.balance-card-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.balance-card-content small {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.balance-used {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

/* Mobile specific adjustments */
@media (max-width: 600px) {
    .balance-card {
        padding: 12px 8px;
        border-radius: 16px;
    }
    
    .balance-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        margin-bottom: 8px;
    }
    
    .balance-card-icon i {
        font-size: 20px;
    }
    
    .balance-card-content h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .balance-amount {
        font-size: 20px;
    }
    
    .balance-card-content small {
        font-size: 11px;
    }
    
    .balance-used {
        font-size: 11px;
    }
}

/* Very small devices */
@media (max-width: 400px) {
    .balance-card {
        padding: 10px 6px;
    }
    
    .balance-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .balance-card-icon i {
        font-size: 18px;
    }
    
    .balance-card-content h4 {
        font-size: 11px;
    }
    
    .balance-amount {
        font-size: 18px;
    }
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-cover {
    position: relative;
    margin-bottom: 60px;
}

.profile-cover-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px 24px 0 0;
}

.profile-avatar-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

.profile-status {
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.profile-status.active {
    background: #10b98120;
    color: #10b981;
}

.profile-status .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

.profile-info {
    text-align: center;
    margin: 20px 0;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.profile-stat-card .stat-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-stat-card .stat-icon i {
    font-size: 22px;
    color: var(--primary);
}

.profile-stat-card .stat-info {
    flex: 1;
}

.profile-stat-card .stat-value {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.profile-stat-card .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.profile-details-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}

.profile-details-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 18px;
    color: var(--primary);
}

.detail-content {
    flex: 1;
}

.detail-content label {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.detail-content p {
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Password Modal */
.password-modal {
    max-width: 450px;
}

/* Input wrapper with icon inside */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 42px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    padding: 0;
    width: auto;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full-width {
        grid-column: span 1;
    }
    
    .profile-stats-grid {
        gap: 10px;
    }
    
    .profile-stat-card {
        padding: 12px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions button {
        width: 100%;
    }
}

/* Error message styling */
.error-message {
    background: #fee2e2;
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 10px;
    border-left: 3px solid #ef4444;
}

.error-message i {
    margin-right: 8px;
}

/* Input error state */
.input-error {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Avatar Modal Styles */
.avatar-modal {
    max-width: 450px;
}

.avatar-preview-container {
    text-align: center;
    margin-bottom: 20px;
}

.current-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.avatar-info {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.avatar-info p {
    margin: 5px 0;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    opacity: 0.7;
}

.upload-area i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-area p {
    margin: 5px 0;
}

.upload-area small {
    color: var(--text-tertiary);
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 0%;
    height: 100%;
    transition: width 0.3s;
    border-radius: 10px;
}

.upload-error {
    background: #fee2e2;
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 13px;
}

.upload-error i {
    margin-right: 8px;
}

/* Profile Action Icons */
.profile-action-icons {
    position: absolute;
    top: 40px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
}

.action-icon-btn i {
    font-size: 18px;
}

.action-icon-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Remove old profile actions section */
.profile-actions {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .action-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .action-icon-btn i {
        font-size: 16px;
    }
}

/* Payslip History Styles */
.payslip-history-section {
    margin-top: 24px;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
}

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

.payslip-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.payslip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.payslip-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.payslip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.payslip-card-header {
    padding: 16px;
    background: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.payslip-month {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payslip-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.payslip-status.paid {
    background: #10b98120;
    color: #10b981;
}

.payslip-card-body {
    padding: 16px;
}

.payslip-amount {
    text-align: center;
    margin-bottom: 16px;
}

.payslip-amount .label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.payslip-amount .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.payslip-details {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.payslip-details .detail {
    font-size: 12px;
}

.payslip-card-footer {
    padding: 12px 16px;
    background: var(--bg-primary);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
}

.payslip-modal {
    max-width: 450px;
}

.payslip-detail-card {
    padding: 10px;
}

.detail-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.detail-header h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--border-color);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
}

/* Payslip Table Styles */
.payslip-table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.payslip-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.payslip-table th,
.payslip-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payslip-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.payslip-table td {
    color: var(--text-primary);
    font-size: 14px;
}

.payslip-table tr:hover {
    background: var(--bg-secondary);
}

.payslip-table .net-salary {
    font-weight: 600;
    color: var(--success);
}

.payslip-table .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.payslip-table .status-badge.paid {
    background: #10b98120;
    color: #10b981;
}

.payslip-table .actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payslip-table .icon-btn-sm {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.payslip-table .icon-btn-sm.view:hover {
    background: var(--info);
    color: white;
}

.payslip-table .icon-btn-sm.download:hover {
    background: var(--success);
    color: white;
}

/* Admin Payroll Styles */
.admin-payroll {
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.payroll-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.payroll-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-end;
}

.btn-add, .btn-export {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-export {
    background: #10b981;
    color: white;
    border: none;
}

.btn-export:hover {
    background: #059669;
    transform: translateY(-2px);
}

.salary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.salary-card {   
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    animation: cardFadeIn 0.4s ease-out;
}

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

.salary-card-header {
    padding: 16px;
    /*background: linear-gradient(135deg, var(--primary), var(--secondary)); */
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    border-radius: 6px;
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
}

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

.salary-amount-badge {
    /*background: rgba(255,255,255,0.2);*/
    /*padding: 8px 16px; */
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
}

.salary-card-body {
    padding: 5px;
}

.salary-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.salary-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.salary-detail .label {
    font-size: 12px;
    /*color: var(--text-secondary); */
}

.salary-detail .value {
    font-weight: 500;
}

.salary-detail .value.negative {
    color: var(--danger);
}

.salary-breakdown {
    background: var(--bg-secondary);
    padding: 10px;
    border-radius: 12px;
    margin-top: 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-secondary);
}

.salary-card-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 12px;    
}

.salary-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.salary-table th,
.salary-table td {
    padding: 12px 16px;
    text-align: left;    
}

.salary-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

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

.net-salary {
    font-weight: 600;
    color: var(--success);
}

.salary-modal {
    max-width: 600px;
}

.salary-preview {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    margin-top: 16px;
}

.preview-amount {
    font-size: 32px;
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .payroll-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .salary-grid {
        grid-template-columns: 1fr;
    }
    
    .payroll-actions-bar {
        justify-content: stretch;
    }
    
    .btn-add, .btn-export {
        flex: 1;
        justify-content: center;
    }
}

/* Salary Action Buttons */
.salary-card-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 12px;
}

.salary-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.salary-action-btn.edit:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.salary-action-btn.view:hover {
    background: var(--info);
    color: white;
    transform: translateY(-2px);
}

.salary-action-btn.delete:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

/* Action buttons for table */
.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.actions-cell .salary-action-btn {
    width: 32px;
    height: 32px;
}

/* Employee avatar in table */
.emp-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

/* Avatar Styles for Salary Card */
.salary-card .employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.salary-card .employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar in View Modal */
.detail-employee {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.employee-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Fallback text for avatar */
.employee-avatar-lg .avatar-fallback,
.salary-card .employee-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-transform: uppercase;
}

/* Table avatar */
.emp-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Salary Detail Modal */
.salary-detail-modal .detail-employee {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

/* Ensure all avatars are circular */
.employee-avatar,
.employee-avatar-lg,
.emp-avatar-sm {
    border-radius: 50% !important;
}

/* No Results / Empty State Styles */
#salaryNoResults,
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border-radius: 24px;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-results-icon i {
    font-size: 40px;
    color: var(--text-tertiary);
    opacity: 0.7;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Empty state for other sections */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    grid-column: 1 / -1;
}

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

.empty-state p {
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #salaryNoResults,
    .no-results {
        padding: 40px 16px;
        min-height: 250px;
        margin: 16px 0;
    }
    
    .no-results-icon {
        width: 60px;
        height: 60px;
    }
    
    .no-results-icon i {
        font-size: 28px;
    }
    
    .no-results h3 {
        font-size: 16px;
    }
    
    .no-results p {
        font-size: 13px;
    }
    
    .no-results-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .no-results-actions .btn-primary,
    .no-results-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #salaryNoResults,
    .no-results {
        padding: 30px 12px;
        min-height: 200px;
    }
    
    .no-results-icon {
        width: 50px;
        height: 50px;
    }
    
    .no-results-icon i {
        font-size: 24px;
    }
    
    .no-results h3 {
        font-size: 15px;
    }
}

/* Salary Table Styles */
.salary-table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.salary-table th,
.salary-table td {
    padding: 14px 16px;
    text-align: left;   
    vertical-align: middle;
}

.salary-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.salary-table td {
    color: var(--text-primary);
    font-size: 14px;
}

.salary-table tr:hover {
    background: var(--bg-secondary);
}

.salary-table .net-salary {
    font-weight: 600;
    color: var(--success);
}

.salary-table .deductions {
    color: var(--danger);
}

/* Actions cell - Fix alignment */
.salary-table td.actions-cell,
.salary-table th.actions-cell {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* Action buttons */
.salary-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;    
    color: var(--text-secondary);
}

.salary-action-btn.edit:hover {
    background: var(--primary);
    color: white;
}

.salary-action-btn.view:hover {
    background: var(--info);
    color: white;
}

.salary-action-btn.delete:hover {
    background: var(--danger);
    color: white;
}

/* Employee cell */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emp-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Table header alignment */
.salary-table th:last-child,
.salary-table td:last-child {
    text-align: left;
}

/* Ensure consistent row height */
.salary-table tr {
    border-bottom: 1px solid var(--border-color);
}

.salary-table tbody tr:last-child {
    border-bottom: none;
}

/* Payroll Tabs */
.payroll-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.payroll-tabs .tab-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payroll-tabs .tab-btn i {
    font-size: 16px;
}

.payroll-tabs .tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.payroll-tabs .tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Payslip Filters Section */
.payslip-filters-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Payslip Card */
.payslip-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.payslip-card-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payslip-month-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.payslip-card-body {
    padding: 16px;
}

.payslip-amount {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.payslip-amount .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.payslip-details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.payslip-details .detail {
    flex: 1;
    text-align: center;
    font-size: 12px;
}

.payslip-details .detail span {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.payslip-card-footer {
    padding: 12px 16px;
    /*background: var(--bg-secondary); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.payslip-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.payslip-status.generated {
    background: #10b98120;
    color: #10b981;
}

.payslip-actions {
    display: flex;
    gap: 8px;
}

/* Payslip Detail Modal */
.payslip-detail-modal {
    max-width: 550px;
}

.payslip-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.payslip-header .company-info h2 {
    color: var(--primary);
    margin-bottom: 5px;
}

.payslip-title h3 {
    margin-top: 15px;
    color: var(--text-primary);
}

.employee-details {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.net-salary-detail {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.payslip-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .payroll-tabs .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .payslip-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .payslip-card-footer {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .payslip-card-footer button {
        width: auto !important;
        flex: 1;
    }
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border-radius: 24px;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-results-icon i {
    font-size: 40px;
    color: var(--text-tertiary);
    opacity: 0.7;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .no-results {
        padding: 40px 16px;
        min-height: 250px;
    }
    
    .no-results-icon {
        width: 60px;
        height: 60px;
    }
    
    .no-results-icon i {
        font-size: 28px;
    }
    
    .no-results h3 {
        font-size: 16px;
    }
    
    .no-results p {
        font-size: 13px;
    }
    
    .no-results-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-outline, .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.info-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid var(--primary);
}

.info-box i {
    color: var(--primary);
    margin-right: 10px;
}

.info-box ul {
    margin-top: 10px;
    margin-left: 20px;
}

.info-box li {
    margin: 5px 0;
    font-size: 13px;
}

.generate-payslip-modal {
    max-width: 450px;
}


/* ========================================
   PREMIUM ABOUT PAGE
   ======================================== */

.about-page .about-page {
    overflow-x: hidden;
}

/* Hero Section */
.about-page .about-hero-premium {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.about-page .hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-page .floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.about-page .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.about-page .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.about-page .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.about-page .hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
}

.about-page .hero-icon-wrapper {
    animation: bounceIn 0.8s ease-out;
}

.about-page .hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.about-page .hero-icon i {
    font-size: 48px;
}

.about-page .hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-page .hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.about-page .hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.about-page .badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
}

.about-page .version-chip {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-family: monospace;
}

.about-page .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.about-page .hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    color: var(--bg-secondary);
}

/* Stats Section */
.about-page .stats-section {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.about-page .stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-page .stat-card-premium {
    text-align: center;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: 24px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

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

.about-page .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.about-page .stat-icon i {
    font-size: 28px;
    color: white;
}

.about-page .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-page .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Description Section */
.about-page .about-description-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-page .description-content .section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.description-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.description-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.description-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.desc-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 40px;
    font-size: 13px;
}

.desc-feature i {
    color: var(--primary);
}

.description-image {
    display: flex;
    justify-content: center;
}

.floating-phone {
    width: 250px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: floatPhone 4s ease-in-out infinite;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.phone-screen i {
    font-size: 48px;
    color: var(--primary);
}

/* Features Section */
.features-premium {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header .section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
}

.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-premium {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.feature-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.feature-card-premium:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrapper i {
    font-size: 32px;
    color: white;
}

.feature-card-premium h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card-premium p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
}

.feature-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.feature-card-premium:hover .feature-hover-effect {
    left: 100%;
}

/* Technology Section */
.tech-section {
    padding: 60px 20px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tech-item:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
}

.tech-item i {
    font-size: 16px;
}

/* Developer Section */
.developer-section-premium {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.developer-content {
    max-width: 600px;
    margin: 0 auto;
}

.developer-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.developer-avatar i {
    font-size: 40px;
}

.developer-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.developer-content p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.developer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.developer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.developer-social a:hover {
    transform: translateY(-3px);
    background: white;
    color: var(--primary);
}

/* Footer */
.about-footer-premium {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.about-footer-premium i {
    color: var(--danger);
}

/* Animations */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}

/* Responsive */
@media (max-width: 900px) {
    .about-description-premium {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .description-features {
        justify-content: center;
    }
    
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .stats-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .features-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-icon {
        width: 70px;
        height: 70px;
    }
    
    .hero-icon i {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   TERMS OF SERVICE STYLES
   ======================================== */

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.terms-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    border-radius: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.terms-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.terms-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.terms-content {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.terms-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.terms-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.terms-section li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-info {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 16px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info i {
    width: 25px;
    color: var(--primary);
}

.terms-footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: var(--bg-secondary);
    border-radius: 20px;
}

.terms-footer p {
    margin-bottom: 15px;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-page .animate-slide-down {
    animation: slideDown 0.5s ease-out;
}

.about-page .animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.about-page .animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.about-page .animate-scale {
    animation: scaleIn 0.5s ease-out;
}

.about-page .animate-card {
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

.about-page .about-card:nth-child(1) { animation-delay: 0.1s; }
.about-page .about-card:nth-child(2) { animation-delay: 0.2s; }
.about-page .about-card:nth-child(3) { animation-delay: 0.3s; }
.about-page .about-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .about-page .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-page .features-list {
        grid-template-columns: 1fr;
    }
    
    .about-page .developer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .about-page .developer-links {
        justify-content: center;
    }
    
    .about-page .terms-content {
        padding: 20px;
    }
    
    .about-page .terms-header h1 {
        font-size: 24px;
    }
}

/* Breakpoints */
/* Mobile: up to 768px */
/* Tablet: 769px to 1024px */
/* Desktop: 1025px and above */

/* Show bottom navigation on mobile AND tablet */
@media (max-width: 1024px) {
    .bottom-nav {
        display: flex;
    }
    
    /* Adjust main content spacing */
    .main-content {
        margin-bottom: 0;
        padding-bottom: 70px;
    }
}

/* Hide only on large desktop */
@media (min-width: 1025px) {
    .bottom-nav {
        display: none;
    }
    
    /* Restore sidebar visibility on desktop */
    .sidebar {
        transform: translateX(0) !important;
        position: relative;
    }
    
    .main-content {
        margin-left: 280px;
        padding-bottom: 0;
    }
}

/* ========================================
   BURGER MENU - DESKTOP ONLY
   ======================================== */

/* Hidden on mobile and tablet */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

/* Visible only on desktop (screens wider than 768px) */
@media (min-width: 769px) {
    .menu-toggle {
        display: flex;
    }
    
    /* Optional: Add hover effect for desktop */
    .menu-toggle:hover {
        background: var(--bg-secondary);
    }
}

/* For tablet landscape (optional - if you want to keep hidden) */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-toggle {
        display: none; /* Keep hidden on tablets */
    }
}

/* For large desktop screens */
@media (min-width: 1025px) {
    .menu-toggle {
        display: flex;
    }
}

/* ========================================
   FOOTER STYLES - COMPLETE WORKING
   ======================================== */

/* Desktop Footer */
.app-footer {
    display: block;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px 20px;
    margin-top: 40px;
}

/* Hide desktop footer on mobile */
@media (max-width: 768px) {
    .app-footer {
        display: none;
    }
}

/* Mobile Footer */
.mobile-footer {
    display: none;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Show mobile footer only on mobile */
@media (max-width: 768px) {
    .mobile-footer {
        display: block;
        margin-bottom: 70px;
    }
}

/* Footer Content */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-logo i {
    font-size: 28px;
    color: var(--primary);
}

.footer-logo span {
    font-size: 16px;
    font-weight: 400;
    /*background: linear-gradient(135deg, var(--primary), var(--secondary));*/
    -webkit-background-clip: text;
    background-clip: text;
    color: #0379bf;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 12px;
    color: #0379bf;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-copyright i {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .mobile-footer-links {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    
    .mobile-footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 12px;
    }
    
    .mobile-footer-version {
        font-size: 10px;
        color: var(--text-tertiary);
    }
}

/* Enhanced Styles for Privacy Page */
.policy-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    margin-top: 12px;
}

.retention-table {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 15px;
}

.retention-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.retention-row.header {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

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

.retention-row span:first-child {
    font-weight: 500;
}

.retention-row span:last-child {
    color: var(--text-secondary);
}

.policy-acceptance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 16px;
    flex-wrap: wrap;
}

.policy-acceptance i {
    font-size: 24px;
    color: var(--success);
}

.policy-acceptance p {
    margin: 0;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .retention-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .policy-acceptance {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        word-break: break-word;
    }
}

/* ========================================
   SEARCHABLE SELECT DROPDOWN
   ======================================== */

.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.searchable-select-input:hover {
    border-color: var(--primary);
}

.searchable-select-input.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.searchable-select-input .selected-value {
    flex: 1;
}

.searchable-select-input i {
    color: var(--text-tertiary);
    transition: transform 0.3s;
}

.searchable-select-input.active i {
    transform: rotate(180deg);
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.searchable-select-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

.searchable-select-search {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.searchable-select-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.searchable-select-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.searchable-select-options {
    max-height: 250px;
    overflow-y: auto;
}

.searchable-select-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.searchable-select-option:last-child {
    border-bottom: none;
}

.searchable-select-option:hover {
    background: var(--bg-secondary);
}

.searchable-select-option.selected {
    background: var(--primary);
    color: white;
}

.searchable-select-option .option-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.searchable-select-option .option-info {
    flex: 1;
}

.searchable-select-option .option-name {
    font-weight: 500;
    font-size: 14px;
}

.searchable-select-option .option-detail {
    font-size: 11px;
    color: var(--text-secondary);
}

.searchable-select-option.selected .option-detail {
    color: rgba(255, 255, 255, 0.8);
}

.no-options {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* ========================================
   HOLIDAY MANAGEMENT STYLES
   ======================================== */

.holidays-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

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

.holidays-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    animation: pulse 2s infinite;
}

.holidays-header .header-icon i {
    font-size: 32px;
    color: white;
}

.holiday-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.holiday-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
}

.year-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.year-nav:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.current-year {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
    text-align: center;
}

.holiday-stats .stat-badge {
    background: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.holiday-card {
    background: var(--bg-primary);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    animation: cardFadeIn 0.4s ease-out;
}

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

.holiday-date {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px 15px;
    text-align: center;
    color: white;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.holiday-content {
    flex: 1;
    padding: 16px;
    position: relative;
}

.holiday-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.holiday-occasion {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
}

.holiday-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.holiday-meta i {
    margin-right: 4px;
}

.holiday-type {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.holiday-type.public {
    background: #10b98120;
    color: #10b981;
}

.holiday-type.optional {
    background: #f59e0b20;
    color: #f59e0b;
}

.holiday-type.company {
    background: #6366f120;
    color: #6366f1;
}

.holiday-description {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 8px;
    line-height: 1.4;
}

.upcoming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
}

.holiday-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
   /* background: var(--bg-secondary); */
    border-left: 1px solid var(--border-color);
}

.holiday-modal {
    max-width: 500px;
}

@media (max-width: 768px) {
    .holidays-grid {
        grid-template-columns: 1fr;
    }
    
    .holiday-card {
        flex-direction: column;
    }
    
    .holiday-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 12px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .holiday-actions {
        flex-direction: row;
        justify-content: flex-end;
        padding: 8px 12px;
    }
    
    .holiday-filters {
        flex-direction: column;
    }
}

/* ========================================
   SUPPORT PAGE STYLES
   ======================================== */

.support-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

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

.support-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    animation: pulse 2s infinite;
}

.support-header .header-icon i {
    font-size: 32px;
    color: white;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-hint {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 8px;
    display: block;
}

.create-ticket-section {
    text-align: center;
    margin-bottom: 30px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.support-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.support-tabs .tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.3s;
}

.support-tabs .tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.ticket-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.ticket-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-number {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: monospace;
}

.ticket-header h4 {
    font-size: 15px;
    margin-top: 4px;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.ticket-status.open {
    background: #f59e0b20;
    color: #f59e0b;
}

.ticket-status.in_progress {
    background: #3b82f620;
    color: #3b82f6;
}

.ticket-status.resolved {
    background: #10b98120;
    color: #10b981;
}

.ticket-status.closed {
    background: #6b728020;
    color: #6b7280;
}

.ticket-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.ticket-meta i {
    margin-right: 4px;
}

.ticket-detail-modal {
    max-width: 600px;
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    flex-wrap: wrap;
}

.ticket-message {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.replies-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.reply-item {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.reply-item.admin-reply {
    background: #10b98110;
    border-left: 3px solid #10b981;
}

.reply-item.user-reply {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.add-reply-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* FAQ Styles */
.faq-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
}

.faq-category {
    margin-bottom: 24px;
}

.faq-category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    padding: 0 15px 15px;
    max-height: 200px;
}

.support-modal {
    max-width: 500px;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .support-tabs {
        flex-wrap: wrap;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   NOTIFICATION UI FIXES
   ======================================== */

.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.notifications-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.notifications-header .header-icon i {
    font-size: 32px;
    color: white;
}

.send-notification-section {
    text-align: center;
    margin-bottom: 24px;
}

.notification-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.notification-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.btn-outline-small {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-outline-small:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Notification Item */
.notification-item {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.notification-item.unread {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-left: 4px solid var(--primary);
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Notification Icon */
.notifications-container .notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notifications-container .notification-icon i {
    font-size: 20px;
}

/* Notification Content */
.notifications-container .notification-content {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.notifications-container .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.notifications-container .notification-header h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.notifications-container .notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.notifications-container .notification-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 6px 0;
    word-break: break-word;
}

.notification-sender {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

/* Unread Dot */
.notifications-container .unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 10px;
}

/* Delete Button */
.notifications-container .notification-delete {
    position: absolute;
    top: 40px;
    right: 12px;
    background: var(--bg-secondary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-tertiary);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-container .notification-item:hover .notification-delete {
    opacity: 1;
}

.notification-delete:hover {
    background: var(--danger);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border-radius: 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 13px;
}

/* Loading State */
.notifications-container .loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-container {
        padding: 16px;
    }
    
    .notification-item {
        padding: 14px;
        flex-direction: column;
        gap: 10px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .notification-icon i {
        font-size: 18px;
    }

    .voice-btn i {
        font-size: 18px;
    }
    #settingsBtn i {
        font-size: 18px;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-time {
        white-space: normal;
    }
    
    .unread-dot {
        top: 15px;
        right: 45px;
    }
    
    .notification-delete {
        top: 8px;
        right: 8px;
        opacity: 1;
        background: var(--bg-secondary);
    }
}

/* Individual Selection Styles */
.searchable-select-container {
    position: relative;
}

.searchable-select-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-primary);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.searchable-select-dropdown.show {
    display: block;
}

.selectable-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border-light);
}

.selectable-option:hover {
    background: var(--bg-secondary);
}

.option-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.option-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.selected-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.selected-badge i {
    cursor: pointer;
    font-size: 10px;
}

.selected-badge i:hover {
    opacity: 0.8;
}


/* Employee Selection Styles */
.employee-select-container {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
}

.employee-search-box {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.employee-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.employee-search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.employee-checkbox-list {
    max-height: 250px;
    overflow-y: auto;
}

.employee-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border-light);
}

.employee-checkbox-item:hover {
    background: var(--bg-secondary);
}

.employee-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.employee-checkbox-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.employee-checkbox-info {
    flex: 1;
}

.employee-checkbox-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.employee-checkbox-detail {
    font-size: 11px;
    color: var(--text-secondary);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.selected-tag {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.selected-tag i {
    cursor: pointer;
    font-size: 10px;
}

.selected-tag i:hover {
    opacity: 0.8;
}

.no-selected {
    color: var(--text-tertiary);
    font-size: 12px;
}

.loading-employees, .error-employees, .no-employees {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.loading-employees i {
    margin-right: 8px;
}


/* Premium Employee Selector */
.premium-employee-selector {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
}

.selector-search {
    position: relative;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.selector-search i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 14px;
}

.selector-search input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s;
}

.selector-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.selector-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.employee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-primary);
}

.employee-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.employee-item.selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.employee-item.selected .employee-info h4,
.employee-item.selected .employee-info p {
    color: white;
}

.employee-item.selected .selected-indicator {
    display: flex;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.employee-item.selected .employee-avatar {
    border-color: white;
}

.employee-info {
    flex: 1;
}

.employee-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.employee-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

.selected-indicator {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
}

.selector-selected {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.selected-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.selected-header i {
    color: var(--success);
    font-size: 14px;
}

.selected-header span {
    font-size: 13px;
    font-weight: 500;
}

.selected-count {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: auto;
}

.selected-tags-container {
    padding: 12px 15px;
    min-height: 70px;
    max-height: 120px;
    overflow-y: auto;
}

.no-selected-msg {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
    padding: 10px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    margin: 4px;
    animation: tagFadeIn 0.3s ease-out;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selected-tag i {
    cursor: pointer;
    font-size: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.selected-tag i:hover {
    opacity: 1;
}

/* Scrollbar styling */
.selector-list::-webkit-scrollbar {
    width: 4px;
}

.selector-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.selector-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Delete button - visible only to admin */
.notification-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-secondary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-tertiary);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-item:hover .notification-delete {
    opacity: 1;
}

.notification-delete:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

/* For mobile, always show delete button for better UX */
@media (max-width: 768px) {
    .notification-delete {
        opacity: 1;
        background: var(--bg-secondary);
    }
}

/* Notification Actions Container */
.notification-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
}

.notification-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 40px;
}

.unread-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline-small {
    background: transparent;
    border: 1.5px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.btn-outline-small i {
    font-size: 13px;
}

.btn-outline-small:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-small.delete-all {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-outline-small.delete-all:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* For mobile */
@media (max-width: 768px) {
    .notification-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .notification-stats {
        justify-content: center;
    }
    
    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-outline-small {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Offline Status Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f59e0b;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.offline-indicator.show {
    transform: translateY(0);
}

.sync-status {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99;
}

.sync-status i {
    animation: spin 1s linear infinite;
}

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

/* Reports Page Styles */
.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.reports-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.report-builder {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.report-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.report-template-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
}

.report-template-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.saved-reports-list {
    margin-top: 10px;
}

.template-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-icon i {
    font-size: 24px;
    color: white;
}

.template-info h4 {
    margin-bottom: 5px;
}

.template-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.saved-report-item {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.report-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.report-info i {
    font-size: 28px;
    color: var(--primary);
}

.report-actions {
    display: flex;
    gap: 8px;
}

.report-preview {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.report-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.report-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.summary-item {
    font-size: 14px;
}

.summary-label {
    font-weight: 600;
    margin-right: 8px;
}

.report-builder-modal {
    max-width: 700px;
    width: 90%;
}

.filters-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.filters-panel h4 {
    margin-bottom: 15px;
}

.column-selector {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

@media (max-width: 768px) {
    .reports-container {
        padding: 16px;
    }
    
    .report-templates-grid {
        grid-template-columns: 1fr;
    }
    
    .saved-report-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Modern Column Selector */
.column-selector-modern {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.selector-header span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn-select-all {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select-all:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.column-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.column-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.column-item.selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
}

.column-item.selected .column-name {
    color: white;
}

.column-check-indicator i {
    font-size: 18px;
    color: var(--text-tertiary);
    transition: all 0.3s;
}

.column-item.selected .column-check-indicator i {
    color: white;
}

.column-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Saved Reports Cards */
.saved-report-card {
    background: var(--bg-primary);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.saved-report-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.report-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.report-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-icon i {
    font-size: 24px;
    color: white;
}

.report-title {
    flex: 1;
}

.report-title h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.report-title p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.report-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.report-meta i {
    margin-right: 4px;
}

.report-actions {
    display: flex;
    gap: 8px;
}

.report-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.report-action-btn.run:hover {
    background: var(--success);
    color: white;
    transform: translateY(-2px);
}

.report-action-btn.edit:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.report-action-btn.delete:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .report-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .report-meta {
        justify-content: center;
    }
    
    .report-actions {
        justify-content: center;
    }
    
    .column-list {
        grid-template-columns: 1fr;
    }
}

.report-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.report-title-section h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary);
}

.report-title-section p {
    font-size: 12px;
    color: var(--text-secondary);
}

.report-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-badge i {
    color: var(--primary);
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.export-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sm:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.empty-report-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-report-state i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-report-state h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-report-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.report-builder-modal .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.report-builder-modal .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-builder-modal .filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.report-builder-modal .filter-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}

@media (max-width: 600px) {
    .report-builder-modal .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.report-builder-modal .error-message {
    color: var(--danger);
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

.report-builder-modal .btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.report-builder-modal .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.report-builder-modal .btn-deselect-all {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
}

.report-builder-modal .btn-deselect-all:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.report-builder-modal .selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.report-builder-modal .selector-header span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.report-builder-modal .btn-select-all, .btn-deselect-all {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.report-builder-modal .btn-select-all:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.report-builder-modal .btn-deselect-all:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Bulk Import Buttons */
.employees-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-bulk-import {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-bulk-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.btn-template {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-template:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Bulk Import Modal Styles */
.bulk-import-modal {
    max-width: 800px;
    width: 90%;
}

.import-info {
    margin-bottom: 20px;
}

.info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box i {
    font-size: 20px;
    color: var(--primary);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.upload-area.drag-over {
    border-color: var(--success);
    background: #10b98110;
}

.upload-area i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 5px;
}

.upload-area small {
    color: var(--text-tertiary);
}

.preview-table-container {
    margin-top: 20px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.preview-table th,
.preview-table td {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.preview-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.preview-table .error-row {
    background: #fee2e2;
}

.preview-table .status-cell {
    text-align: center;
}

.preview-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
}

.preview-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.preview-stats .stat-item.success {
    color: var(--success);
}

.preview-stats .stat-item.error {
    color: var(--danger);
}

.import-errors {
    margin-top: 15px;
    padding: 15px;
    background: #fee2e2;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.import-errors h4 {
    color: var(--danger);
    margin-bottom: 10px;
    font-size: 14px;
}

.error-item {
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #fcc;
    color: var(--danger);
}

.more-rows td {
    text-align: center;
    color: var(--text-tertiary);
    padding: 10px;
}

@media (max-width: 600px) {
    .bulk-import-modal {
        width: 95%;
    }
    
    .preview-table {
        font-size: 10px;
    }
    
    .preview-table th,
    .preview-table td {
        padding: 5px;
    }
}

/* ========================================
   PRICING PAGE STYLES
   ======================================== */

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header .header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pricing-header .header-icon i {
    font-size: 40px;
    color: white;
}

.pricing-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

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

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--primary);
}

.save-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
}

.toggle-switch {
    width: 60px;
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    border: 2px solid var(--border-color);
}

.toggle-slider {
    width: 26px;
    height: 26px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-slider.yearly {
    transform: translateX(30px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.card-badge {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.plan-icon i {
    font-size: 28px;
    color: white;
}

.plan-name {
    font-size: 24px;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 16px;
}

.plan-price .currency {
    font-size: 20px;
    font-weight: 500;
    vertical-align: top;
}

.plan-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.plan-price .period {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.plan-features li i {
    width: 18px;
    font-size: 14px;
}

.plan-features li .fa-check-circle {
    color: var(--success);
}

.plan-features li .fa-times-circle {
    color: var(--danger);
}

.plan-features li.disabled {
    color: var(--text-tertiary);
}

.plan-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.plan-btn:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 60px;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 14px;
}

.comparison-table td {
    font-size: 13px;
}

.comparison-table td i.fa-check {
    color: var(--success);
    font-size: 16px;
}

.comparison-table td i.fa-times {
    color: var(--danger);
    font-size: 16px;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    margin-top: 15px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 40px;
    border-radius: 32px;
    color: white;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    /*
    background: white;
    color: var(--primary); */
    border: none;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
}

/* Trial Banner Styles */
.trial-banner {    
    color: white;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.trial-banner.urgent {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse 1s ease-in-out;
}

.trial-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.trial-content i {
    font-size: 24px;
}

.trial-text {
    flex: 1;
}

.trial-text strong {
    display: block;
    margin-bottom: 4px;
}

.trial-text span {
    font-size: 13px;
    opacity: 0.9;
}

.btn-upgrade {
    background: white;
    color: var(--primary);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upgrade:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
}

.btn-close:hover {
    opacity: 0.7;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Upgrade Modal */
.upgrade-modal {
    max-width: 600px;
}

.upgrade-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.upgrade-plan {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.upgrade-plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.upgrade-plan.selected {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.upgrade-plan.recommended {
    border: 2px solid var(--primary);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.upgrade-plan h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.upgrade-plan .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.upgrade-plan .price span {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-secondary);
}

.upgrade-plan p {
    font-size: 12px;
    color: var(--text-secondary);
}

.billing-options {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.billing-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .upgrade-plans {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .trial-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-upgrade {
        width: 100%;
    }
}

/* Clean Rounded Trial Banner */
.trial-banner {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInDown {
    from {
        transform: translateY(-150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

[data-theme="dark"] .banner-container {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px 12px 20px;
    flex-wrap: wrap;
}

/* Icon */
.banner-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

/* Text Content */
.banner-text {
    flex: 1;
    min-width: 200px;
}

.banner-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.banner-message {
    font-size: 13px;
    color: white;
    opacity: 0.95;
}

/* Timer Badge */
.banner-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 40px;
    flex-shrink: 0;
}

.timer-number {
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.timer-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* Modern Upgrade Button */
.upgrade-btn-modern {
    background: white;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    color: #667eea;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

[data-theme="dark"] .upgrade-btn-modern {
    color: #7c3aed;
}

.upgrade-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: white;
}

.upgrade-btn-modern:active {
    transform: translateY(0);
}

/* Close Button */
.close-btn-modern {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-btn-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Urgent Mode Styles */
.trial-banner.urgent .banner-container {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    animation: urgentPulse 1s infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 107, 107, 0.8);
    }
}

.trial-banner.warning .banner-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .trial-banner {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .banner-content {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .banner-icon {
        width: 36px;
        height: 36px;
    }
    
    .banner-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .banner-title {
        font-size: 12px;
    }
    
    .banner-message {
        font-size: 11px;
    }
    
    .timer-number {
        font-size: 18px;
    }
    
    .timer-label {
        font-size: 10px;
    }
    
    .upgrade-btn-modern {
        padding: 6px 16px;
        font-size: 11px;
    }
    
    .close-btn-modern {
        width: 28px;
        height: 28px;
    }
}

/* Voice Command Styles */
.voice-btn {
    position: relative;   
    transition: all 0.3s ease;
    cursor: pointer;
}

.voice-btn.listening {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.voice-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    display: none;
}

.voice-pulse.active {
    display: block;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Voice Status Indicator */
.voice-status {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--bg-primary);
    border-radius: 40px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

.voice-status i {
    font-size: 20px;
}

.voice-status.listening {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.voice-status.listening i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Voice Help Modal */
.voice-help-modal {
    max-width: 700px;
}

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

.command-category {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
}

.command-category h4 {
    margin-bottom: 12px;
    color: var(--primary);
}

.command-category ul {
    list-style: none;
}

.command-category li {
    padding: 6px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-category li::before {
    content: '🎤';
    font-size: 12px;
}

/* Voice Toast */
.voice-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

.voice-toast i {
    font-size: 20px;
    animation: pulse 1s infinite;
}

/* Voice Feedback Toast */
.voice-feedback {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

/* Voice Help Modal Styles */
.voice-help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voice-help-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.voice-help-container {
    background: var(--bg-primary);
    border-radius: 32px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s ease-out;
}

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

.voice-help-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 24px 30px;
    position: relative;
}

.voice-help-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.voice-help-icon i {
    font-size: 30px;
}

.voice-help-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.voice-help-header p {
    font-size: 14px;
    opacity: 0.9;
}

.voice-help-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.voice-help-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.voice-help-body {
    padding: 24px 30px;
    max-height: calc(85vh - 180px);
    overflow-y: auto;
}

.voice-command-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.command-group {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.command-group:hover {
    transform: translateY(-2px);
}

.command-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.command-group-header i {
    font-size: 20px;
    color: var(--primary);
}

.command-group-header h3 {
    font-size: 16px;
    margin: 0;
    flex: 1;
}

.command-count {
    font-size: 11px;
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.command-list {
    padding: 8px 0;
}

.command-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s;
}

.command-item:hover {
    background: var(--bg-primary);
}

.command-phrase {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-phrase::before {
    content: '🎤';
    font-size: 12px;
}

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

.voice-tip {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.voice-tip i {
    font-size: 24px;
    color: var(--primary);
}

.voice-tip kbd {
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.voice-help-footer {
    padding: 16px 30px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .voice-help-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .voice-help-header {
        padding: 20px;
    }
    
    .voice-help-header h2 {
        font-size: 22px;
    }
    
    .voice-help-body {
        padding: 20px;
    }
    
    .voice-command-groups {
        grid-template-columns: 1fr;
    }
    
    .command-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .command-phrase {
        font-size: 12px;
    }
    
    .command-action {
        font-size: 11px;
    }
    
    .voice-help-footer {
        flex-direction: column;
    }
    
    .voice-help-footer button {
        width: 100%;
    }
}

/* Mobile: 2 cards per row for employee stats */
@media (max-width: 768px) {
    .employee-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stat-card-mini {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* About Page Mobile Scroll Fix */
.about-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix for all about page sections */
.about-hero-premium,
.stats-section,
.about-description-premium,
.features-premium,
.developer-section-premium,
.about-footer-premium {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .about-page {
        overflow-x: hidden;
    }
    
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 12px;
    }
    
    .features-grid-premium {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 16px;
    }
    
    .about-description-premium {
        grid-template-columns: 1fr !important;
        padding: 20px;
    }
    
    .description-image {
        display: none;
    }
    
    .hero-title {
        font-size: 28px !important;
        word-break: break-word;
    }
    
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hide animations on mobile for better performance */
    .hero-bg-animation,
    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid-premium {
        grid-template-columns: 1fr !important;
    }
}

/* Profile Page Mobile Fixes */
@media (max-width: 768px) {
    /* Fix profile cover padding */
    .profile-cover {
        padding: 30px 15px 50px;
    }
    
    /* Fix action icons position */
    .profile-action-icons {
        top: 40px;
        right: 20px;
        gap: 8px;
    }
    
    .action-icon-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Fix profile avatar size */
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    /* Fix profile info text wrap */
    .profile-name {
        font-size: 20px;
        word-break: break-word;
    }
    
    .profile-role {
        font-size: 12px;
        word-break: break-word;
        padding: 0 10px;
    }
    
    /* Fix stats grid - 3 columns on mobile */
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px 10px;
    }
    
    .profile-stat-card {
        padding: 10px 5px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Fix details grid */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .detail-item.full-width {
        grid-column: span 1;
    }
    
    .detail-item {
        padding: 10px;
    }
    
    .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .detail-content label {
        font-size: 10px;
    }
    
    .detail-content p {
        font-size: 13px;
        word-break: break-word;
    }
    
    /* Fix profile details section */
    .profile-details-section {
        padding: 0 10px 20px;
    }
    
    .profile-details-section h3 {
        font-size: 16px;
        padding: 0 10px;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .profile-stats-grid {
        gap: 6px;
    }
    
    .profile-stat-card {
        padding: 8px 4px;
    }
    
    .stat-value {
        font-size: 15px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .profile-name {
        font-size: 18px;
    }
}

/* Bottom Navigation - With More Options */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);   
    justify-content: space-around;
    align-items: center;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.nav-item,
.nav-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
}

.nav-item i,
.nav-more i {
    font-size: 22px;
    transition: all 0.3s ease;
}

.nav-item span,
.nav-more span {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 20px;
        opacity: 1;
    }
}

/* Hover/Tap effect */
.nav-item:active,
.nav-more:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

/* More Menu Styles */
.more-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.more-menu.open {
    visibility: visible;
    opacity: 1;
}

.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2001;
}

.more-menu-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: 28px 28px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 2002;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.more-menu.open .more-menu-container {
    transform: translateY(0);
}

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

.more-menu-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-more-menu {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.close-more-menu:active {
    transform: scale(0.9);
    background: var(--border-color);
}

.more-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.more-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease backwards;
}

.more-menu-item:nth-child(1) { animation-delay: 0.05s; }
.more-menu-item:nth-child(2) { animation-delay: 0.1s; }
.more-menu-item:nth-child(3) { animation-delay: 0.15s; }
.more-menu-item:nth-child(4) { animation-delay: 0.2s; }
.more-menu-item:nth-child(5) { animation-delay: 0.25s; }
.more-menu-item:nth-child(6) { animation-delay: 0.3s; }

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

.more-menu-item:active {
    transform: scale(0.96);
    background: rgba(99, 102, 241, 0.1);
}

.more-menu-item i {
    font-size: 24px;
    color: var(--primary);
}

.more-menu-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bottom-nav {
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .nav-item i,
    .nav-more i {
        font-size: 20px;
    }
    
    .nav-item span,
    .nav-more span {
        font-size: 10px;
    }
    
    .more-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .more-menu-item {
        padding: 10px;
    }
    
    .more-menu-item i {
        font-size: 20px;
    }
    
    .more-menu-item span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .more-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile fix for logout buttons */
@media (max-width: 768px) {
    .modal-footer {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        justify-content: center !important;
    }
    
    .modal-footer button {
        flex: 1 !important;
        margin: 0 !important;
        width: auto !important;
    }
}

/* Voice Modal Styles */
.voice-help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voice-help-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.voice-help-container {
    background: var(--bg-primary);
    border-radius: 28px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease;
}

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

.voice-help-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.voice-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.voice-header-icon i {
    font-size: 28px;
}

.voice-help-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.voice-help-header p {
    font-size: 13px;
    opacity: 0.9;
}

.voice-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
}

/* Tabs */
.voice-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    gap: 8px;
}

.voice-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.voice-tab i {
    font-size: 16px;
}

.voice-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Content */
.voice-content {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.voice-category {
    display: none;
    animation: fadeIn 0.3s ease;
}

.voice-category.active {
    display: block;
}

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

.command-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.command-card:hover {
    transform: translateX(4px);
    background: rgba(99,102,241,0.08);
}

.command-phrase {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.command-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Tip */
.voice-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 0 20px 20px;
    background: rgba(99,102,241,0.1);
    border-radius: 12px;
}

.voice-tip i {
    font-size: 20px;
    color: var(--primary);
}

.tip-text {
    font-size: 12px;
}

/* Footer */
.voice-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border-color);
}

.voice-btn-primary, .voice-btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.voice-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.voice-btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Mobile */
@media (max-width: 600px) {
    .voice-tabs {
        overflow-x: auto;
    }
    .voice-tab span {
        display: none;
    }
    .command-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .voice-footer {
        flex-direction: column;
    }
}

* Ripple effect when active */
.voice-btn.voice-active {
    animation: voicePulse 1.5s infinite;
    background: linear-gradient(135deg, #ff4444, #ff6666) !important;
    color: white !important;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

@keyframes voicePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Speaking animation - sound waves */
.voice-btn.voice-speaking {
    animation: speakWave 0.8s ease-in-out infinite;
    background: linear-gradient(135deg, #ff4444, #ff8888) !important;
}

@keyframes speakWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Ripple rings around the button */
.voice-btn.voice-active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.4);
    transform: translate(-50%, -50%) scale(1);
    animation: rippleRing 1s ease-out infinite;
    pointer-events: none;
}

@keyframes rippleRing {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }
    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* Mic icon change when active */
.voice-btn.voice-active i {
    animation: micBeat 1s ease-in-out infinite;
}

@keyframes micBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
}

/* Tooltip for voice button */
.voice-btn::after {
    content: 'Voice Commands';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: none;
}

.voice-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -38px;
}

/* Notification badge for voice button */
.voice-btn .voice-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: blinkRed 1s infinite;
}

@keyframes blinkRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Voice Wave Effect - Floating animation when speaking */
.voice-wave-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 10001;
    animation: fadeInUp 0.3s ease;
}

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

.voice-wave {
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.voice-wave.wave1 { animation-delay: 0s; height: 15px; }
.voice-wave.wave2 { animation-delay: 0.1s; height: 25px; }
.voice-wave.wave3 { animation-delay: 0.2s; height: 35px; }
.voice-wave.wave4 { animation-delay: 0.3s; height: 25px; }

@keyframes wave {
    0%, 100% {
        height: 15px;
    }
    50% {
        height: 35px;
    }
}

.voice-text {
    color: white;
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
    animation: textPulse 1s infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Fix for Holidays - Match desktop layout */
@media (max-width: 768px) {
    .holiday-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;    
        position: relative;
        overflow: hidden;    
    }

    .upcoming-badge {
        top: 8px;
        right: 12px;
        left: auto;
        padding: 3px 10px;
        font-size: 9px;
    }
    
    .holiday-date {
        width: 80px !important;
        flex-shrink: 0 !important;
        text-align: center !important;      
        border-radius: 16px 0 0 16px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        padding: 20px 15px !important;         
        color: white !important;
    }
    
    .holiday-date .day {
        font-size: 32px !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        line-height: 1 !important;
    }
    
    .holiday-date .month {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
    }
    
    .holiday-details {
        flex: 1 !important;
        padding-right: 80px !important;
        margin: 0 !important;
        
    }
    
    .holiday-details h3 {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin: 0 0 4px 0 !important;
    }
    
    .holiday-details .holiday-type {
        font-size: 11px !important;
        display: inline-block !important;
        padding: 2px 8px !important;
        border-radius: 12px !important;
        background: rgba(99, 102, 241, 0.1) !important;
        margin: 4px 0 !important;
    }
    
    .holiday-details p {
        font-size: 12px !important;
        margin: 4px 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .holiday-details p i {
        width: 18px !important;
        font-size: 11px !important;
        color: var(--text-secondary) !important;
    }

     .holiday-actions {
        position: absolute;
        top: 40px;
        right: 10px;
        display: flex;
        gap: 8px;
        background: rgba(255, 255, 255, 0.9);
        padding: 4px 8px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .holiday-actions .icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .holiday-actions .icon-btn.edit {
        color: var(--primary);
        background: rgba(99, 102, 241, 0.1);
    }
    
    .holiday-actions .icon-btn.delete {
        color: var(--danger);
        background: rgba(239, 68, 68, 0.1);
    }
    
    .holiday-actions .icon-btn:active {
        transform: scale(0.95);
    }
    
    /* Adjust holiday details to prevent overlap */
    .holiday-details {
        padding-right: 70px !important;
    }
}

/* Corporate Loading Animation */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner-corporate {
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-spinner-corporate .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-spinner-corporate .circle-1 {
    border-top-color: var(--primary);
    border-right-color: rgba(99, 102, 241, 0.2);
    animation-duration: 1s;
}

.loading-spinner-corporate .circle-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-bottom-color: var(--secondary);
    border-left-color: rgba(139, 92, 246, 0.2);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loading-spinner-corporate .circle-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #10b981;
    border-right-color: rgba(16, 185, 129, 0.2);
    animation-duration: 0.6s;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.loading-spinner::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo i {
    font-size: 28px;
    color: white;
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    animation: blink 1.5s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

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

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Skeleton Loader Alternative */
.skeleton-loader {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-title {
    width: 200px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-card {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 16px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Payslip Card Styles */
.payslip-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

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

.payslip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.employee-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.employee-code {
    font-size: 12px;
    opacity: 0.9;
}

.payslip-month-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.payslip-card-body {
    padding: 16px 20px;
}

.payslip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.payslip-row .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.payslip-row .value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.payslip-row.net-salary {
    background: rgba(99, 102, 241, 0.08);
    margin: 8px -20px -8px -20px;
    padding: 12px 20px;
    border-radius: 0;
}

.payslip-row.net-salary .label {
    font-weight: 600;
    color: var(--primary);
}

.payslip-row.net-salary .value {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.negative {
    color: var(--danger) !important;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.generated {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.processed {
    background: #dcfce7;
    color: #16a34a;
}

.payslip-card-footer {
    display: flex;
    gap: 12px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.btn-view, .btn-download {
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-view:hover {
    background: var(--primary);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-download:hover {
    transform: scale(0.98);
}

/* Grid Layout */
#employeePayslipGridView {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    #employeePayslipGridView {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
    
    .payslip-card-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .payslip-card-footer {
        flex-direction: column;
    }
}

/* Payslip Modal Styles */
.payslip-modal {
    max-width: 500px;
    width: 90%;
    border-radius: 24px;
    overflow: hidden;
}

.payslip-detail-card {
    padding: 20px;
}

.detail-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.detail-header h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.detail-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

/* Earnings Section */
.earnings-section,
.deductions-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    margin:16px;
    border-radius: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row span {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-row strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-row.total {
    margin-top: 12px;
    padding: 12px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: none;
}

.detail-row.total span {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.detail-row.total strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* Two Column Layout for Earnings */
.earnings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.earning-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.earning-item label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.earning-item span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Deductions Section */
.deductions-list {
    background: rgba(239, 68, 68, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.deduction-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.deduction-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

.deduction-item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
}

/* Footer Note */
.payslip-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.generated {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.paid,
.status-badge.processed {
    background: #dcfce7;
    color: #16a34a;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.btn-secondary {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 40px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .payslip-modal {
        width: 95%;
        margin: 10px;
    }
    
    .earnings-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* Notification Container */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

/* Unread notification styling */
.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary);
}

/* Unread dot - proper positioning */
.notification-item.unread .notification-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Notification content */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile specific */
@media (max-width: 768px) {
    .notification-item {
        padding: 12px;
        gap: 10px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Leave Policy Container */
.leave-policy-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.leave-policy-header {
    text-align: center;
    margin-bottom: 32px;
}

.leave-policy-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.leave-policy-header .header-icon i {
    font-size: 32px;
    color: white;
}

.leave-policy-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.leave-policy-header p {
    color: var(--text-secondary);
}

/* Policy Actions */
.policy-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

/* Stats Grid */
.policy-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.policy-stat-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.policy-stat-card:hover {
    transform: translateY(-2px);
}

.policy-stat-card .stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-stat-card .stat-icon i {
    font-size: 24px;
    color: white;
}

.policy-stat-card .stat-info {
    flex: 1;
}

.policy-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

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

/* Leave Types Grid */
.leave-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.leave-type-card {
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.leave-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.leave-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leave-card-header h3 {
    font-size: 18px;
    margin: 0;
}

.leave-card-header .leave-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leave-card-header .leave-icon i {
    font-size: 22px;
}

.leave-card-body {
    padding: 20px;
}

.leave-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.leave-detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.leave-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.leave-detail-value.available {
    color: #10b981;
}

.leave-detail-value.used {
    color: var(--danger);
}

.leave-card-footer {
    padding: 16px 20px;
    background: var(--bg-secondary);
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

.leave-card-footer button {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: right;
}

.btn-edit-policy {
    background: var(--bg-primary);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-edit-policy:hover {
    background: var(--primary);
    color: white;
}

.btn-delete-policy {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-delete-policy:hover {
    background: var(--danger);
    color: white;
}

/* Modal Styles for Leave Policy */
.policy-modal .modal-content {
    max-width: 500px;
}

.policy-modal .form-group {
    margin-bottom: 18px;
}

.policy-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
}

.policy-modal input, 
.policy-modal select,
.policy-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leave-policy-container {
        padding: 16px;
    }
    
    .policy-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .leave-types-grid {
        grid-template-columns: 1fr;
    }
    
    .leave-card-footer {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    
    .leave-card-footer button {
        flex: 1 !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        font-size: 13px !important;       
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        text-align: right !important;
    }
    
    .btn-edit-policy,
    .btn-delete-policy {
        width: auto !important;
        min-width: 0 !important;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .leave-card-footer {
        gap: 8px !important;
        padding: 10px 12px !important;
    }
    
    .leave-card-footer button {
        padding: 8px 10px !important;
        font-size: 12px !important;
        text-align: right !important;
    }
}

/* Animated Apply Leave Button */
.apply-leave-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.apply-leave-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.apply-leave-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.apply-leave-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.apply-leave-btn:active {
    transform: translateY(1px);
}

/* Ripple effect */
.apply-leave-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.apply-leave-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
}

.apply-leave-btn {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .apply-leave-btn {
        padding: 12px 18px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .apply-leave-btn i {
        font-size: 14px;
    }
}

/* When button is disabled */
.apply-leave-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

/* Leave Balance Header with Right-aligned Button */
.leave-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.leave-balance-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Smaller Apply Button */
.apply-leave-btn-small {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.apply-leave-btn-small i {
    font-size: 12px;
}

.apply-leave-btn-small:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.apply-leave-btn-small:active {
    transform: scale(0.97);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .leave-balance-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row !important;
    }
    
    .apply-leave-btn-small {
        flex-shrink: 0;
    }
}

/* Employee Detail Modal - Professional Layout */
.employee-detail-modal {
    max-width: 900px;
    width: 90%;
    border-radius: 24px;
    overflow: hidden;
}

.employee-detail-layout {
    display: flex;
    gap: 30px;
    padding: 24px;
}

/* Left Column */
.employee-detail-modal .detail-left {
    flex: 0 0 280px;
    text-align: center;
}

.employee-detail-modal .detail-avatar-large {
    position: relative;
    margin-bottom: 20px;
}

.employee-detail-modal .detail-avatar-large img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.employee-detail-modal .detail-avatar-large .status-badge {
    position: absolute;
    bottom: 10px;
    right: 30px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.employee-detail-modal .status-badge.active {
    background: #10b981;
    color: white;
}

.employee-detail-modal .status-badge.inactive {
    background: #ef4444;
    color: white;
}

.employee-detail-modal .detail-name-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.employee-detail-modal .detail-name-section .designation {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 6px;
}

.employee-detail-modal .detail-name-section .department {
    font-size: 13px;
    color: var(--text-secondary);
}

.employee-detail-modal .detail-name-section .department i {
    margin-right: 6px;
}

/* Right Column */
.employee-detail-modal .detail-right {
    flex: 1;
}

.employee-detail-modal .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.employee-detail-modal .info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all 0.3s;
}

.employee-detail-modal .info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.employee-detail-modal .info-card.full-width {
    grid-column: span 2;
}

.employee-detail-modal .info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-detail-modal .info-icon i {
    font-size: 20px;
    color: white;
}

.employee-detail-modal .info-content {
    flex: 1;
}

.employee-detail-modal .info-content label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.employee-detail-modal .info-content span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

/* Modal Footer */
.employee-detail-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.employee-detail-modal .btn-secondary {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 40px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.employee-detail-modal .btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.employee-detail-modal .btn-secondary:hover, .btn-primary:hover {
    transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .employee-detail-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .employee-detail-modal .detail-left {
        flex: auto;
    }
    
    .employee-detail-modal .detail-avatar-large img {
        width: 120px;
        height: 120px;
    }
    
    .employee-detail-modal .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .employee-detail-modal .info-card.full-width {
        grid-column: span 1;
    }
    
    .employee-detail-modal .detail-name-section h2 {
        font-size: 18px;
    }
    
    .employee-detail-modal .modal-footer {
        flex-direction: column;
    }
}

/* Floating Action Button - Apple Style */
.fab-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.fab-button {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
}

.fab-button i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.fab-container.open .fab-button i {
    transform: rotate(45deg);
}

.fab-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

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

/* Menu Items */
.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fab-container.open .fab-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.fab-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    cursor: pointer;
    animation: fadeInUp 0.3s ease backwards;
}

.fab-item:nth-child(1) { animation-delay: 0.05s; }
.fab-item:nth-child(2) { animation-delay: 0.1s; }
.fab-item:nth-child(3) { animation-delay: 0.15s; }
.fab-item:nth-child(4) { animation-delay: 0.2s; }
.fab-item:nth-child(5) { animation-delay: 0.25s; }
.fab-item:nth-child(6) { animation-delay: 0.3s; }

.fab-item span {
    background: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.fab-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.fab-icon i {
    font-size: 20px;
    color: var(--primary);
}

.fab-item:hover .fab-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.fab-item:hover .fab-icon i {
    color: white;
}

.fab-item:hover span {
    color: var(--primary);
}

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

/* Toast Message */
.toast-message {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1100;
    animation: fadeInOut 2s ease;
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fab-container {
        bottom: 70px;
        right: 16px;
    }
    
    .fab-button {
        width: 50px;
        height: 50px;
    }
    
    .fab-button i {
        font-size: 22px;
    }
    
    .fab-icon {
        width: 50px;
        height: 50px;
    }
    
    .fab-icon i {
        font-size: 18px;
    }
    
    .fab-item span {
        font-size: 12px;
        padding: 6px 14px;
    }
    
}

/* ========================================
   DOCUMENT MANAGER STYLES - COMPLETE WORKING VERSION
   ======================================== */

/* Document Manager Container */
.document-manager-container {
    padding: 20px;
    min-height: 100%;
}

/* Header */
.doc-manager-header {
    text-align: center;
    margin-bottom: 24px;
}

.doc-manager-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.doc-manager-header .header-icon i {
    font-size: 32px;
    color: white;
}

.doc-manager-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.doc-manager-header p {
    color: var(--text-secondary);
}

/* Actions Bar */
.doc-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Stats Grid */
.doc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.doc-stat-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.doc-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-stat-card .stat-icon i {
    font-size: 24px;
    color: #3b82f6;
}

.doc-stat-card .stat-info {
    flex: 1;
}

.doc-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

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

/* Categories Filter */
.doc-categories-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.category-filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-filter-btn i {
    margin-right: 6px;
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
}

/* Search Bar */
.doc-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.doc-search-bar .search-wrapper {
    flex: 1;
    position: relative;
    max-width: 350px;
}

.doc-search-bar .search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.doc-search-bar .search-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-primary);
    font-size: 14px;
}

.doc-view-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 30px;
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--primary);
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Document Card */
.document-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    position: relative;
}

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

/* Document Icon */
.document-icon {
    width: 55px;
    height: 55px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.document-icon i {
    font-size: 28px;
    color: #3b82f6;
}

/* Document Info */
.document-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

.doc-employee {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.doc-category {
    font-size: 11px;
    padding: 4px 10px;
    background: #e2e8f0;
    border-radius: 20px;
    color: #475569;
}

.doc-date {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Status Badge */
.document-status {
    position: absolute;
    top: 16px;
    right: 16px;
}

.doc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.doc-status-badge.approved {
    background: #10b981;
    color: white;
}

.doc-status-badge.pending {
    background: #f59e0b;
    color: white;
}

.doc-status-badge.rejected {
    background: #ef4444;
    color: white;
}

/* Document Actions Buttons */
.document-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.doc-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-action-btn i {
    font-size: 12px;
}

/* View Button */
.doc-action-btn.view {
    background: #eef2ff;
    color: #3b82f6;
}
.doc-action-btn.view:hover {
    background: #3b82f6;
    color: white;
}

/* Download Button */
.doc-action-btn.download {
    background: #ecfdf5;
    color: #10b981;
}
.doc-action-btn.download:hover {
    background: #10b981;
    color: white;
}

/* Approve Button */
.doc-action-btn.approve {
    background: #ecfdf5;
    color: #10b981;
}
.doc-action-btn.approve:hover {
    background: #10b981;
    color: white;
}

/* Reject Button */
.doc-action-btn.reject {
    background: #fef2f2;
    color: #ef4444;
}
.doc-action-btn.reject:hover {
    background: #ef4444;
    color: white;
}

/* Delete Button */
.doc-action-btn.delete {
    background: #fef2f2;
    color: #ef4444;
}
.doc-action-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* Table View */
.documents-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
}

.documents-table {
    width: 100%;
    background: var(--bg-primary);
    border-radius: 16px;
    border-collapse: collapse;
    overflow: hidden;
}

.documents-table th,
.documents-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.documents-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .doc-action-btn {
    display: inline-flex;
    padding: 6px 10px;
    margin: 0 2px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doc-stat-card {
        padding: 16px;
    }
    
    .doc-stat-card .stat-value {
        font-size: 22px;
    }
    
    .document-actions {
        flex-wrap: wrap;
    }
    
    .doc-action-btn {
        min-width: 70px;
    }
    
    .category-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* File Upload Area - Complete Styles */
.document-modal .file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.document-modal .file-upload-area:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.document-modal .file-upload-area i {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.document-modal .file-upload-area p {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.document-modal .file-upload-area small {
    color: var(--text-secondary);
    font-size: 11px;
}

.document-modal .file-name-display {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.document-modal .file-name-display i {
    font-size: 14px;
    color: #10b981;
}

.document-modal .remove-file {
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
    font-weight: bold;
    padding: 0 4px;
}

.document-modal .remove-file:hover {
    color: #dc2626;
}

* Categories Management - Modern Design */
.categories-modal {
    max-width: 650px;
}

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

.categories-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-list {
    max-height: 400px;
    overflow-y: auto;
}

.category-manage-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

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

.category-icon-sm {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon-sm i {
    font-size: 24px;
}

.category-manage-item .category-info {
    flex: 1;
}

.category-manage-item .category-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-id {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.category-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.category-actions .icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.category-actions .icon-btn.edit {
    background: #eef2ff;
    color: #3b82f6;
}

.category-actions .icon-btn.edit:hover {
    background: #3b82f6;
    color: white;
}

.category-actions .icon-btn.delete {
    background: #fef2f2;
    color: #ef4444;
}

.category-actions .icon-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* Add Category Section */
.add-category-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.add-category-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-category-section .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.add-category-section .form-group {
    flex: 1;
    min-width: 180px;
}

.add-category-section input,
.add-category-section select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background: var(--bg-primary);
}

.add-category-section input:focus,
.add-category-section select:focus {
    outline: none;
    border-color: var(--primary);
}

.add-category-section .btn-primary {
    padding: 12px 24px;
    white-space: nowrap;
}

.required-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* Recruitment & Training Module Styles */
.recruitment-container,
.training-container {
    padding: 20px;
}

.recruitment-header,
.training-header {
    text-align: center;
    margin-bottom: 24px;
}

.recruitment-header .header-icon,
.training-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.recruitment-header .header-icon i,
.training-header .header-icon i {
    font-size: 32px;
    color: white;
}

.recruitment-header h1,
.training-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.recruitment-actions,
.training-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Tabs */
.recruitment-tabs,
.training-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.recruitment-tabs .tab-btn,
.training-tabs .tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.recruitment-tabs .tab-btn.active,
.training-tabs .tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

/* Search Section */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-section .search-wrapper {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-section .search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-section .search-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    cursor: pointer;
}

/* Job Cards */
.job-openings-grid,
.training-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.job-card,
.training-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.job-card:hover,
.training-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.job-header,
.training-header {    
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.job-title,
.training-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.job-status,
.training-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.job-status.open { background: #d1fae5; color: #065f46; }
.job-status.closed { background: #fee2e2; color: #991b1b; }
.job-status.on-hold { background: #fed7aa; color: #92400e; }
.job-status.filled { background: #e0e7ff; color: #3730a3; }

.training-type.technical { background: #d1fae5; color: #065f46; }
.training-type.soft-skill { background: #fed7aa; color: #92400e; }
.training-type.leadership { background: #e0e7ff; color: #3730a3; }

.job-details,
.training-details {
    margin: 12px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-item i {
    width: 18px;
    font-size: 13px;
}

.job-description,
.training-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 12px 0;
    line-height: 1.5;
}

.job-actions,
.training-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-primary-small,
.btn-outline-small,
.btn-success-small {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-small {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
}

.btn-outline-small {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-success-small {
    background: #10b981;
    color: white;
    border: none;
}

/* Application Cards */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.application-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.application-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.application-job {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.app-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.app-status.pending { background: #fed7aa; color: #92400e; }
.app-status.shortlisted { background: #d1fae5; color: #065f46; }
.app-status.interviewed { background: #e0e7ff; color: #3730a3; }
.app-status.hired { background: #10b981; color: white; }
.app-status.rejected { background: #fee2e2; color: #991b1b; }

.application-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
}

.application-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.status-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .job-openings-grid,
    .training-programs-grid {
        grid-template-columns: 1fr;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .job-actions,
    .training-actions,
    .application-actions {
        flex-direction: column;
    }
    
    .job-actions button,
    .training-actions button,
    .application-actions button,
    .application-actions select {
        width: 100%;
    }
}

/* Progress bar */
.progress-bar-container {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
    position: relative;
}
.progress-bar {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    height: 100%;
    transition: width 0.3s;
}
.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

/* ========================================
   EMPLOYEE APPRAISAL MANAGEMENT - COMPLETE CSS
   ======================================== */

.appraisal-container {
    padding: 20px;    
    margin: 0 auto;
}

/* Header Section */
.appraisal-header {
    text-align: center;
    margin-bottom: 30px;
}

.appraisal-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 35px;   
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.appraisal-header .header-icon i {
    font-size: 32px;
    color: white;
}

.appraisal-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

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

/* Stats Grid */
.appraisal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.appraisal-stat-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

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

.appraisal-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appraisal-stat-card:nth-child(1) .stat-icon { background: rgba(59, 130, 246, 0.1); }
.appraisal-stat-card:nth-child(2) .stat-icon { background: rgba(245, 158, 11, 0.1); }
.appraisal-stat-card:nth-child(3) .stat-icon { background: rgba(16, 185, 129, 0.1); }
.appraisal-stat-card:nth-child(4) .stat-icon { background: rgba(139, 92, 246, 0.1); }

.appraisal-stat-card .stat-icon i {
    font-size: 24px;
}

.appraisal-stat-card:nth-child(1) .stat-icon i { color: #3b82f6; }
.appraisal-stat-card:nth-child(2) .stat-icon i { color: #f59e0b; }
.appraisal-stat-card:nth-child(3) .stat-icon i { color: #10b981; }
.appraisal-stat-card:nth-child(4) .stat-icon i { color: #8b5cf6; }

.appraisal-stat-card .stat-info {
    flex: 1;
}

.appraisal-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

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

/* Actions Bar */
.appraisal-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-end;
}

/* Tabs */
.appraisal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.appraisal-tabs .tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
}

.appraisal-tabs .tab-btn i {
    margin-right: 8px;
}

.appraisal-tabs .tab-btn.active {
    color: #f59e0b;
}

.appraisal-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f59e0b;
}

.appraisal-tabs .tab-btn:hover {
    color: #f59e0b;
}

/* Cycles Grid */
.cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.cycle-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

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

.cycle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cycle-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.cycle-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.cycle-status.draft { background: #f1f5f9; color: #64748b; }
.cycle-status.active { background: #d1fae5; color: #065f46; }
.cycle-status.in-review { background: #fed7aa; color: #92400e; }
.cycle-status.completed { background: #e0e7ff; color: #3730a3; }

.cycle-dates {
    margin: 12px 0;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.date-item i {
    width: 16px;
    font-size: 13px;
}

.cycle-stats {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-badge {
    text-align: center;
    flex: 1;
}

.stat-badge .stat-number {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.stat-badge .stat-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.cycle-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Appraisal Card */
.appraisals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appraisal-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.appraisal-header {   
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

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

.appraisal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.appraisal-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.appraisal-status.pending { background: #fed7aa; color: #92400e; }
.appraisal-status.self-assessment { background: #e0e7ff; color: #3730a3; }
.appraisal-status.manager-review { background: #d1fae5; color: #065f46; }
.appraisal-status.completed { background: #10b981; color: white; }

/* Rating Section */
.rating-section {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.rating-item {
    flex: 1;
    text-align: center;
}

.rating-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.rating-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Search Section */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-section .search-wrapper {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-section .search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-section .search-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 14px;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

/* Assessment Modal */
.assessment-modal,
.review-modal {
    max-width: 700px;
}

.parameters-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 16px 0;
}

.parameter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.parameter-info {
    flex: 2;
}

.parameter-name {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.employee-rating {
    font-size: 12px;
    margin-top: 4px;
    color: #f59e0b;
}

.rating-stars,
.manager-rating-stars {
    display: flex;
    gap: 6px;
}

.rating-star {
    font-size: 20px;
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #f59e0b;
}

/* Employee Info in Review */
.employee-info {
    padding: 16px;   
    border-radius: 12px;
    margin-bottom: 20px;
}

.employee-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.employee-info p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary-small,
.btn-outline-small,
.btn-success-small {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-small {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: none;
}

.btn-primary-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline-small {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline-small:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-appraise,
.btn-review {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-appraise {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.btn-review {
    background: #3b82f6;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .appraisal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cycles-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .parameter-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .appraisal-tabs {
        overflow-x: auto;
    }
    
    .appraisal-tabs .tab-btn {
        white-space: nowrap;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}

.recruitment-container .search-wrapper {
    position: relative;
    flex: 1;
}

.recruitment-container .search-wrapper .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: none;
    font-size: 14px;
}

.recruitment-container .search-wrapper .search-clear:hover {
    color: var(--danger);
}

.job-skills {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Document Viewer - iOS Safe Area Fix */
.image-viewer-modal,
.document-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a2e;
    z-index: 20001;
    display: flex;
    flex-direction: column;
}

/* Header with safe area for iOS */
.image-viewer-header,
.document-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    /* iOS safe area for notch/dynamic island */
    padding-top: max(16px, env(safe-area-inset-top));
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10;
    min-height: 60px;
}

/* Body takes remaining space */
.image-viewer-body,
.document-viewer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* iOS safe area for bottom */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Image container */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.viewer-image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

/* Bottom controls with safe area */
.image-controls {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));    
    backdrop-filter: blur(20px);
    justify-content: center;
}

/* Document Options Modal - iOS safe area */
.document-options-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: 28px 28px 0 0;
    z-index: 20002;
    animation: slideUp 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
    /* iOS safe area for bottom */
    padding-bottom: env(safe-area-inset-bottom);
}

/* For iOS devices with notch */
@supports (padding: max(0px)) {
    .image-viewer-header,
    .document-viewer-header {
        padding-top: max(16px, env(safe-area-inset-top));
    }
    
    .image-controls {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    
    .document-options-modal {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Specific fix for iPhone 14 Pro and above with Dynamic Island */
@media (device-width: 393px) and (device-height: 852px),
       (device-width: 430px) and (device-height: 932px) {
    .image-viewer-header,
    .document-viewer-header {
        padding-top: 54px;
    }
}

/* iPhone X, XS, 11 Pro, 12, 13, 14 */
@media (device-width: 375px) and (device-height: 812px),
       (device-width: 390px) and (device-height: 844px) {
    .image-viewer-header,
    .document-viewer-header {
        padding-top: 50px;
    }
}

/* iPhone 12 Pro Max, 13 Pro Max, 14 Plus */
@media (device-width: 428px) and (device-height: 926px) {
    .image-viewer-header,
    .document-viewer-header {
        padding-top: 52px;
    }
}

/* General iOS devices */
@supports (-webkit-touch-callout: none) {
    .image-viewer-header,
    .document-viewer-header {
        padding-top: 50px;
    }
    
    .viewer-image {
        max-height: calc(100vh - 160px);
    }
}
/* Document Viewer - Stylish Buttons */

/* Header Action Buttons (Download, Share, Close) */
.viewer-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.viewer-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.viewer-btn.close:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Zoom Control Buttons */
.control-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #1e293b;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

/* Option Buttons (Open, Download, Share) */
.option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin-bottom: 12px;
}

.option-btn i {
    font-size: 18px;
}

.option-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.option-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.option-btn:not(.primary):hover {
    border-color: #3b82f6;
    background: #f0f4ff;
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Title styling */
.viewer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.viewer-title i {
    font-size: 20px;
    color: #3b82f6;
}

/* Header actions container */
.viewer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .viewer-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .option-btn {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 40px;
    }
    
    .option-btn i {
        font-size: 16px;
    }
    
    .viewer-title {
        font-size: 14px;
        max-width: 60%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Corporate Job Cards - Add to your existing CSS */

.job-openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 28px;
}

.job-card-corporate {
    background: var(--bg-primary);
    border-radius: 28px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.job-card-corporate:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Ribbon */
.job-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    width: 120px;
    padding: 6px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.job-ribbon.full-time { background: linear-gradient(90deg, #10b981, #059669); color: white; }
.job-ribbon.part-time { background: linear-gradient(90deg, #f59e0b, #d97706); color: white; }
.job-ribbon.contract { background: linear-gradient(90deg, #3b82f6, #2563eb); color: white; }
.job-ribbon.remote { background: linear-gradient(90deg, #8b5cf6, #7c3aed); color: white; }
.job-ribbon.internship { background: linear-gradient(90deg, #ec4899, #db2777); color: white; }

/* Card Header */
.job-card-header {
    padding: 28px 28px 20px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.job-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon i {
    font-size: 28px;
    color: #3b82f6;
}

.job-title-section {
    flex: 1;
}

.job-title-corporate {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.job-company {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.job-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 50px;
}

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

.job-status-badge.open { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.job-status-badge.closed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.job-status-badge.on-hold { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.job-status-badge.filled { background: rgba(100, 116, 139, 0.1); color: #64748b; }

/* Details Grid */
.job-details-grid {
    padding: 20px 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--bg-secondary);
}

.detail-item-corporate {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.detail-icon i {
    font-size: 16px;
    color: #3b82f6;
}

.detail-text {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Job Description */
.job-description-corporate {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
}

.job-description-corporate p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Skills Tags */
.job-skills-corporate {
    padding: 0 28px 20px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skill-tag-corporate {
    padding: 5px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #3b82f6;
}

.skill-tag-corporate.more {
    background: #3b82f6;
    color: white;
}

/* Card Footer */

.job-actions-corporate {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn.view {
    background: var(--bg-secondary);
    color: #3b82f6;
}

.action-btn.view:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.action-btn.apply {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-btn.apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-btn.edit {
    background: var(--bg-secondary);
    color: #f59e0b;
}

.action-btn.edit:hover {
    background: #f59e0b;
    color: white;
}

.action-btn.delete {
    background: var(--bg-secondary);
    color: #ef4444;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-openings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-card-header {
        padding: 20px 20px 16px 20px;
    }
    
    .job-details-grid {
        padding: 16px 20px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .job-description-corporate {
        padding: 16px 20px;
    }
    
    .job-skills-corporate {
        padding: 0 20px 16px 20px;
    }
    
    .job-card-footer {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
        gap: 12px;
    }   
    
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .job-title-corporate {
        font-size: 18px;
    }
    
    .job-icon {
        width: 48px;
        height: 48px;
    }
    
    .job-icon i {
        font-size: 24px;
    }
}

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

.job-card-corporate {
    animation: fadeInUp 0.4s ease backwards;
}

.job-card-corporate:nth-child(1) { animation-delay: 0.05s; }
.job-card-corporate:nth-child(2) { animation-delay: 0.1s; }
.job-card-corporate:nth-child(3) { animation-delay: 0.15s; }

/* Fix closing date display for desktop */
.job-card-footer {
    padding: 16px 28px 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.job-stats {
    flex: 1;
}

.job-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.job-actions-corporate {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .job-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-stats .stat {
        justify-content: center;
        white-space: normal;
    }
    
    .job-actions-corporate {
        width: 100%;
        justify-content: center;
    }
}

/* Training Cards - Corporate Style */
.training-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 28px;
}

.training-card-corporate {
    background: var(--bg-primary);
    border-radius: 28px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.training-card-corporate:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Training Ribbon */
.training-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    width: 120px;
    padding: 6px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
}

.training-ribbon.technical { background: linear-gradient(90deg, #3b82f6, #2563eb); color: white; }
.training-ribbon.soft-skill { background: linear-gradient(90deg, #10b981, #059669); color: white; }
.training-ribbon.leadership { background: linear-gradient(90deg, #8b5cf6, #7c3aed); color: white; }
.training-ribbon.compliance { background: linear-gradient(90deg, #f59e0b, #d97706); color: white; }
.training-ribbon.onboarding { background: linear-gradient(90deg, #ec4899, #db2777); color: white; }

/* Training Card Header */
.training-card-header {
    padding: 28px 28px 20px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.training-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.training-icon i {
    font-size: 28px;
    color: #3b82f6;
}

.training-title-section {
    flex: 1;
}

.training-title-corporate {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.training-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Training Status Badge */
.training-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 50px;
}

.training-status-badge.upcoming { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.training-status-badge.ongoing { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.training-status-badge.completed { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.training-status-badge.cancelled { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Training Details Grid */
.training-details-grid {
    padding: 20px 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--bg-secondary);
}

/* Training Description */
.training-description-corporate {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
}

.training-description-corporate p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Training Card Footer */
.training-card-footer {
    padding: 16px 28px 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.training-stats {
    display: flex;
    gap: 16px;
    flex: 1;
}

.training-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.training-stats .stat.mandatory {
    color: #f59e0b;
}

.training-actions-corporate {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.action-btn.enrolled {
    background: #10b981;
    color: white;
    cursor: default;
}

.action-btn.enrolled:hover {
    transform: none;
    box-shadow: none;
}

.action-btn.progress {
    background: var(--bg-secondary);
    color: #3b82f6;
}

.action-btn.progress:hover {
    background: #3b82f6;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .training-programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .training-card-header {
        padding: 20px 20px 16px 20px;
        flex-wrap: wrap;
    }
    
    .training-status-badge {
        margin-right: 0;
        order: 3;
    }
    
    .training-details-grid {
        padding: 16px 20px;
        grid-template-columns: 1fr;
    }
    
    .training-description-corporate {
        padding: 16px 20px;
    }
    
    .training-card-footer {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
    }
    
    .training-stats {
        justify-content: center;
    }
    
    .training-actions-corporate {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .training-title-corporate {
        font-size: 18px;
    }
    
    .training-icon {
        width: 48px;
        height: 48px;
    }
    
    .training-icon i {
        font-size: 24px;
    }
}

/* Fix for date inputs on iOS */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: left;
    direction: ltr;
    height: 48px;
    min-height: 48px;
}

/* Force date input text to stay left */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    color: var(--text-primary);
}

/* For iOS specifically */
@supports (-webkit-touch-callout: none) {
    input[type="date"],
    input[type="time"] {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    input[type="date"]::-webkit-date-and-time-value {
        margin: 0;
        padding: 0;
        text-align: left;
    }
}

/* File Upload Area Styling */
.apply-modal .file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.apply-modal .file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.apply-modal .file-upload-area i {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.apply-modal .file-upload-area p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.apply-modal .file-upload-area small {
    font-size: 11px;
    color: var(--text-secondary);
}

.apply-modal .file-name-display {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
}

.apply-modal .file-name-display i {
    color: var(--success);
    margin-right: 8px;
}

.apply-modal .remove-file {
    cursor: pointer;
    color: var(--danger);
    font-size: 18px;
    padding: 0 5px;
}

.apply-modal .remove-file:hover {
    color: #dc2626;
}


/* Search wrapper with clear button */
.recruitment-tab-content .search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.recruitment-tab-content .search-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 14px;
}

.recruitment-tab-content .search-wrapper i.fa-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.recruitment-tab-content .search-wrapper .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.recruitment-tab-content .search-wrapper .search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--danger);
}

.recruitment-tab-content .search-wrapper .search-clear i {
    font-size: 14px;
    pointer-events: none;
}

/* Interviews Grid */
.interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px;
}

/* Interview Card */
.interview-card-corporate {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.interview-card-corporate:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Interview Status Badge */
.interview-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.interview-status-badge.scheduled {
    background: #d1fae5;
    color: #065f46;
}

.interview-status-badge.completed {
    background: #e0e7ff;
    color: #3730a3;
}

.interview-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Interview Header */
.interview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.candidate-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-avatar i {
    font-size: 28px;
    color: white;
}

.candidate-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.candidate-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Interview Details Grid */
.interview-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.detail-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 16px;
    color: #3b82f6;
}

.detail-text {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Interview Footer */
.interview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.meeting-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.meeting-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.venue-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.interview-actions {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.action-btn-small.edit {
    background: var(--bg-secondary);
    color: #3b82f6;
}

.action-btn-small.edit:hover {
    background: #3b82f6;
    color: white;
}

.action-btn-small.feedback {
    background: var(--bg-secondary);
    color: #10b981;
}

.action-btn-small.feedback:hover {
    background: #10b981;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .interviews-grid {
        grid-template-columns: 1fr;
    }
    
    .interview-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .interview-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .meeting-link {
        justify-content: center;
    }
    
    .interview-actions {
        justify-content: center;
    }
    
    .candidate-avatar {
        width: 48px;
        height: 48px;
    }
    
    .candidate-avatar i {
        font-size: 24px;
    }
}

/* Feedback Section in Applications */
.feedback-section {
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid #3b82f6;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.feedback-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.rating-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.recommendation {
    font-size: 12px;
    color: #10b981;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* Feedback in Interviews */
.feedback-details {
    margin: 12px 0;
    padding: 12px;
    background: #fef3c7;
    border-radius: 12px;
}

.feedback-full strong {
    font-size: 12px;
    color: #92400e;
}

.feedback-full p {
    font-size: 13px;
    color: #78350f;
    margin-top: 6px;
    line-height: 1.5;
}

.feedback-preview {
    cursor: pointer;
    color: #3b82f6;
}

.feedback-preview:hover {
    text-decoration: underline;
}