:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    transition: all 0.3s ease;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #94a3b8;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Custom Table Styling */
.custom-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    padding: 1rem;
}

.custom-table tbody tr {
    transition: all 0.2s ease;
}

.custom-table tbody tr:hover {
    background: #f1f5f9;
    transform: scale(1.002);
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active {
    background: #dcfce7;
    color: #15803d;
}

.badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.badge-used {
    background: #fee2e2;
    color: #991b1b;
}

/* Dashboard Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: currentColor;
    opacity: 0.05;
    border-radius: 50%;
}

/* Button UI */
.btn-primary {
    background: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

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

/* Mobile Card UI for Tables */
@media (max-width: 768px) {
    .custom-table thead {
        display: none; /* Hide headers on mobile */
    }
    
    .custom-table, .custom-table tbody, .custom-table tr, .custom-table td {
        display: block;
        width: 100%;
    }
    
    .custom-table tr {
        margin-bottom: 1rem;
        background: white;
        border: 1px solid #f1f5f9;
        border-radius: 1.5rem;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    
    .custom-table td {
        text-align: left !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid #f8fafc;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .custom-table td:last-child {
        border-bottom: none;
        padding-top: 1rem !important;
        justify-content: flex-end;
    }

    /* Add labels on mobile */
    .custom-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        color: #94a3b8;
    }
}