/* ===============================================
   MODERN PTK DASHBOARD - FUTURISTIC UI/UX
   Bootstrap 5 Enhanced with Glassmorphism
   =============================================== */

:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --cyan: #06b6d4;

    /* Glass & Blur */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Background */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-light: #f8fafc;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   GLOBAL STYLES & RESETS
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===============================================
   ANIMATED BACKGROUND
   =============================================== */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(16, 185, 129, 0.4));
    top: 50%;
    right: -5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(245, 158, 11, 0.3));
    bottom: -10%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ===============================================
   MAIN LAYOUT
   =============================================== */

.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.content-area {
    padding-top: 2rem !important;
    padding-bottom: 6rem !important;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===============================================
   NAVBAR - GLASSMORPHISM
   =============================================== */

.glass-navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-badge {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

/* USER INFO BADGE */
.user-info-badge {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* LOGOUT BUTTON */
.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-logout i {
    font-size: 1rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border: none;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple), var(--primary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient i,
.btn-gradient span {
    position: relative;
    z-index: 1;
}

/* ===============================================
   SECTION HEADER
   =============================================== */

.section-header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===============================================
   STAT CARDS - GLASSMORPHISM WITH GRADIENTS
   =============================================== */

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.stat-card:hover .card-glow {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

/* Gradient Variations for Cards */
.primary-gradient .stat-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.4));
    color: var(--primary);
}

.success-gradient .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.4));
    color: var(--success);
}

.purple-gradient .stat-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.4));
    color: var(--purple);
}

.warning-gradient .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.4));
    color: var(--warning);
}

.danger-gradient .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.4));
    color: var(--danger);
}

.cyan-gradient .stat-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.4));
    color: var(--cyan);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 100px;
}

/* ===============================================
   GLASS CARD (General)
   =============================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===============================================
   CHART CONTAINERS
   =============================================== */

.chart-container {
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.chart-title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.chart-body {
    position: relative;
    height: 300px;
}

/* ===============================================
   SEARCH & FILTERS
   =============================================== */

.modern-search-box {
    position: relative;
    width: 100%;
}

.modern-search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.125rem;
    z-index: 2;
}

.modern-search-box input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.modern-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-glow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width var(--transition-base);
    border-radius: 100px;
}

.modern-search-box input:focus~.search-glow {
    width: 80%;
}

.modern-select {
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
    cursor: pointer;
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-reset {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 2px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-reset:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===============================================
   TABLE
   =============================================== */

.table-info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.modern-table-wrapper {
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* Custom scrollbar for modern look */
.modern-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.modern-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.modern-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    transition: background var(--transition-base);
}

.modern-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.modern-table {
    margin-bottom: 0;
    min-width: 100%;
    /* Ensure table takes full width */
}

.modern-table thead {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.modern-table thead th {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    border: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

.modern-table thead th:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-table tbody tr {
    transition: all var(--transition-fast);
    cursor: pointer;
}

.modern-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.005);
}

.modern-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* ===============================================
   PAGINATION
   =============================================== */

.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    border: 2px solid transparent;
}

.page-number:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: scale(1.1);
}

.page-number.active {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ===============================================
   MODALS
   =============================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-backdrop.show .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 1200px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #f8fafc, white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-glow);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.modal-body {
    padding: 2rem;
}

/* ===============================================
   LOADING OVERLAY
   =============================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modern-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--primary);
    animation-delay: -0.45s;
}

.loader-ring:nth-child(2) {
    border-top-color: var(--purple);
    animation-delay: -0.3s;
}

.loader-ring:nth-child(3) {
    border-top-color: var(--cyan);
    animation-delay: -0.15s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===============================================
   BOTTOM NAVIGATION (Mobile)
   =============================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    .content-area {
        padding-bottom: 5rem !important;
    }

    .glass-navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand h5 {
        font-size: 1rem;
    }

    .navbar-brand small {
        font-size: 0.75rem;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .update-badge,
    .user-info-badge {
        display: none;
    }

    .btn-gradient,
    .btn-logout {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-logout span {
        display: none;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .chart-container {
        padding: 1rem;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.5rem;
    }

    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===============================================
   DETAIL GRID & INFO ROWS (for modals)
   =============================================== */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: rgba(99, 102, 241, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.detail-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-row .value {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

/* ===============================================
   CARD MODAL STATS & CONTROLS
   =============================================== */

.card-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mini-stat-card {
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.mini-stat-card:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mini-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--cyan);
}

.icon-blue {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.icon-pink {
    background: rgba(236, 72, 153, 0.2);
    color: var(--pink);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple);
}

.mini-stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mini-stat-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Modal Controls */
.modal-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modal-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-filters select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.modal-filters select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-excel {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-excel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Modal Table Section */
.modal-table-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.table-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header-info span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-size-selector select {
    padding: 0.375rem 0.75rem;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
}

/* Data Table (in modal) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.data-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.data-table thead th:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.data-table thead th i {
    margin-left: 0.5rem;
    opacity: 0.5;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.data-table tbody td {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.data-table tbody td button {
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.data-table tbody td button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination-container button {
    width: 36px;
    height: 36px;
    border: 2px solid var(--glass-border);
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-container button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.pagination-container button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .card-modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-filters {
        flex-direction: column;
    }

    .modal-filters select {
        width: 100%;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }

    .modal-table-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .card-modal-stats {
        grid-template-columns: 1fr;
    }

    .table-header-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===============================================
   BANDED COLUMNS FOR TABLE
   =============================================== */

/* Banded column effect - alternating column colors */
.modern-table tbody td:nth-child(odd) {
    background-color: rgba(99, 102, 241, 0.02);
}

.modern-table tbody tr:hover td:nth-child(odd) {
    background-color: rgba(99, 102, 241, 0.08);
}

.modern-table tbody tr:hover td:nth-child(even) {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Enhanced table styling with banded effect */
.data-table tbody td:nth-child(odd) {
    background-color: rgba(99, 102, 241, 0.02);
}

.data-table tbody tr:hover td:nth-child(odd) {
    background-color: rgba(99, 102, 241, 0.08);
}

.data-table tbody tr:hover td:nth-child(even) {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Toggle button styling */
.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

/* ===============================================
   FOOTER
   =============================================== */

.app-footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.footer-link:hover {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 1.125rem;
    transition: transform var(--transition-base);
}

.footer-link:hover i {
    transform: scale(1.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-footer {
        padding: 1rem 0;
        margin-bottom: 60px;
        /* Account for bottom navigation */
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .footer-link {
        padding: 0.2rem 0.5rem;
    }
}