/* assets/css/style.css */
:root {
    --primary: #6C63FF;
    --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #4834d4 100%);
    --secondary: #2A2D3E;
    --accent: #E94560;
    --background: #121212;
    --card-bg: rgba(30, 30, 46, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --success: #00C853;
    --danger: #FF3D00;
    --warning: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Forms */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(20, 20, 30, 0.6);
    color: var(--text-primary);
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(30, 30, 45, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

button,
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 99, 255, 0.3);
}

.action-btn {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    /* Prevent explicit full width for inline use */
}

/* Specific button styles */
.btn-approve {
    background: var(--success);
    box-shadow: 0 2px 5px rgba(0, 200, 83, 0.3);
}

.btn-reject {
    background: var(--danger);
    box-shadow: 0 2px 5px rgba(255, 61, 0, 0.3);
}

.btn-approve:hover,
.btn-reject:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


.secondary-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

/* Hide/Show logic */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: 0.3s;
}

.tab-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(18, 18, 24, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: transparent;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    /* Sidebar width */
    padding: 40px;
    padding-bottom: 100px;
    /* Space for mobile nav */
}

/* Responsive Grid & Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 60, 0.8);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    min-width: 600px;
}

th,
td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

th {
    background: rgba(108, 99, 255, 0.1);
    /* Slight tint */
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background: rgba(0, 200, 83, 0.2);
    color: #b9f6ca;
}

.badge-warning {
    background: rgba(255, 215, 0, 0.2);
    color: #ffe57f;
}

.badge-danger {
    background: rgba(255, 61, 0, 0.2);
    color: #ff9e80;
}

/* Mobile Navigation */
.mobile-nav {
    display: none !important;
}

@media (min-width: 901px) {
    .mobile-nav {
        display: none !important;
    }

    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-bottom: 90px;
    }

    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1A1A24;
        /* Solid dark background for visibility */
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 10px;
        /* Increased padding */
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-secondary);
        font-size: 0.7rem;
        transition: 0.3s;
        padding: 8px 8px;
        border-radius: 12px;
    }

    .mobile-nav-item i {
        font-size: 1.4rem;
        margin-bottom: 4px;
        transition: 0.3s;
    }

    .mobile-nav-item.active {
        color: var(--primary);
        background: rgba(108, 99, 255, 0.1);
    }

    .mobile-nav-item.active i {
        transform: translateY(-2px);
    }

    /* Logout specific style in mobile nav */
    .mobile-nav-item.logout {
        color: var(--danger);
    }

    /* Make stats grid purely vertical on very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 15px 10px;
        padding-bottom: 120px;
    }

    .glass-card {
        padding: 1rem;
    }

    table {
        min-width: unset;
    }

    th,
    td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .table-container {
        border-radius: 12px;
        margin-left: -1px;
        margin-right: -1px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 5px 120px 5px;
    }

    .table-container {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 0;
    }

    th,
    td {
        padding: 10px 5px;
    }
}


/* User Dashboard Premium Cards */
.user-stat-card {
    padding: 25px;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-5px);
}

.user-stat-card .card-icon-bg {
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 100px;
    opacity: 0.1;
}

.user-stat-card .card-content {
    position: relative;
    z-index: 1;
}

.user-stat-card .card-label {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.user-stat-card .card-value {
    margin: 5px 0 15px 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.user-stat-card .card-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    width: fit-content;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Colors */
.card-purple {
    background: linear-gradient(135deg, #6C3483 0%, #6C3483 100%);
    box-shadow: 0 10px 20px rgba(108, 52, 131, 0.3);
}

.card-green {
    background: linear-gradient(135deg, #00C853 0%, #00C853 100%);
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
}

.card-orange {
    background: linear-gradient(135deg, #FF3D00 0%, #FF3D00 100%);
    box-shadow: 0 10px 20px rgba(255, 61, 0, 0.3);
}

@media (max-width: 900px) {
    .user-stat-card {
        padding: 15px 20px;
        /* Reduced height */
    }

    .user-stat-card .card-value {
        font-size: 1.8rem;
        /* Smaller text for smaller height */
        margin: 2px 0 10px 0;
    }

    /* Darken colors on mobile while keeping the base hues */
    .card-purple {
        background: linear-gradient(135deg, #3B1C47 0%, #6C3483 100%);
    }

    .card-green {
        background: linear-gradient(135deg, #004D20 0%, #00C853 100%);
    }

    .card-orange {
        background: linear-gradient(135deg, #801F00 0%, #FF3D00 100%);
    }

    .user-stat-card .card-icon-bg {
        font-size: 70px;
        /* Scale down icon background */
        right: -10px;
        top: -10px;
    }
}