:root {
  --primary-color: #805de3;
  --secondary-color: #963ff2;
  --accent-light-blue: #7bf00d;
  --accent-teal: #00FFDE;
  --text-light: #f8f9fa;
  --text-dark: #212529;
}

body {
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar, .footer {
    background: #75046a;
}

.footer {
    margin-top: auto;
}

.dashboard-card {
    border-left: 5px solid var(--primary-color);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-light-blue), var(--accent-teal));
    border: none;
    color: var(--text-dark) !important;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    color: var(--text-dark);
}
/* --- Enhanced Navbar Styles --- */

.navbar {
    background: #75046a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
}

.navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.navbar .dropdown-item i {
    margin-right: 0.75rem;
    color: #888;
}

.navbar .dropdown-item:hover {
    background-color: #f0f2f5;
    color: #4300FF;
}

.navbar .dropdown-divider {
    border-top: 1px solid #f0f2f5;
}

/* User/Admin Info Display */
.navbar .navbar-text {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 1rem;
}
.navbar .navbar-text i {
    margin-right: 0.5rem;
}
/* --- Enhanced Admin Table Styles --- */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 10px; /* Adds vertical space between rows */
    margin-top: -10px;
}

.table-custom thead th {
    background-color: #4300FF; /* Primary brand color for header */
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.table-custom thead th:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.table-custom thead th:last-child { border-radius: 0 0.5rem 0.5rem 0; }

.table-custom tbody tr {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-custom tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.table-custom tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border: none;
}
.table-custom tbody td:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.table-custom tbody td:last-child { border-radius: 0 0.5rem 0.5rem 0; }

.table-custom .user-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.table-custom .wallet-balance {
    color: #28a745;
    font-weight: 500;
}
.table-custom .wallet-balance .fund {
    color: #007bff;
}

.table-custom .action-btn-group .btn {
    border-radius: 50px; /* Pill-shaped buttons */
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* --- Responsive Enhancements for Admin Table --- */

/* Hide the table header on small screens */
@media screen and (max-width: 768px) {
    .table-custom thead {
        display: none;
    }

    .table-custom tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e0e5ec;
        border-radius: 0.5rem;
    }

    .table-custom tbody td {
        display: block;
        text-align: right; /* Align content to the right */
        padding-left: 50%; /* Create space for the label */
        position: relative;
        border: none;
        border-bottom: 1px solid #f0f2f5;
        border-radius: 0 !important; /* Reset radius for individual cells */
    }

    .table-custom tbody td:last-child {
        border-bottom: none;
    }

    /* Use ::before pseudo-element to create data labels */
    .table-custom tbody td::before {
        content: attr(data-label); /* Get label text from data-label attribute */
        position: absolute;
        left: 1rem;
        font-weight: 600;
        color: #7f8c8d;
        text-align: left;
    }
}
/* --- Fix for Overly Wide Tables --- */
.table-responsive {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.card-link { text-decoration: none; }
.stat-card-link { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card-link:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.card-icon { position: absolute; right: 15px; bottom: 5px; font-size: 3.5rem; opacity: 0.2; }
.action-item { transition: background-color 0.2s ease; }
.action-item:hover { background-color: #e9ecef !important; }
/* --- New Styles for Responsive Card View on Mobile --- */
.mobile-card-view {
    display: none; /* Hidden by default on large screens */
}

@media screen and (max-width: 768px) {
    .desktop-table-view {
        display: none; /* Hide the wide table on mobile */
    }

    .mobile-card-view {
        display: block; /* Show the card view on mobile */
    }

    .responsive-card {
        background-color: #fff;
        border: 1px solid #e9ecef;
        border-radius: 0.75rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .responsive-card .card-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f2f5;
    }
    .responsive-card .card-row:last-child {
        border-bottom: none;
    }

    .responsive-card .card-label {
        font-weight: 600;
        color: #7f8c8d;
    }

    .responsive-card .card-value {
        font-weight: 500;
        color: #2c3e50;
        text-align: right;
    }
}
/* --- Final Premium Styles for CRS Status Page with Animated Bars --- */

.body-crs-status {
    background-image: linear-gradient(to top, #f3e7e9 0%, #e3eeff 100%);
}

.crs-goal-card-bar {
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}
.crs-goal-card-bar:hover {
    transform: translateY(-5px) scale(1.01);
}

.progress-container {
    height: 30px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar-animated-fill {
    height: 100%;
    width: 0; /* Starts at 0, will be animated by JS */
    border-radius: 1rem;
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: 600;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth animation */
}

/* Gradient Colors for each bar */
.progress-bar-level-1 { background: linear-gradient(90deg, #00CAFF, #007bff); }
.progress-bar-level-2 { background: linear-gradient(90deg, #007bff, #4300FF); }
.progress-bar-level-3 { background: linear-gradient(90deg, #4300FF, #8e2de2); }
/* --- Navbar Logo Styles --- */
.navbar-brand .logo-img {
    height: 55px; /* Adjust the height as needed */
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
}