/* =========================================
   1. Variables & Base Styles (from mockup.html)
   ========================================= */
:root {
    --primary: #10b981; /* Emerald 500 */
    --accent: #f43f5e;  /* Rose 500 */
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* =========================================
   2. Ambient Background Animation
   ========================================= */
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); animation-delay: 0s; }
.blob-2 { bottom: 20%; right: -10%; width: 400px; height: 400px; background: #3b82f6; animation-delay: -2s; }
.blob-3 { top: 40%; left: 30%; width: 300px; height: 300px; background: var(--accent); animation-delay: -4s; opacity: 0.2; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 40px) scale(1.1); }
}

/* =========================================
   3. Glassmorphism Utilities
   ========================================= */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

/* =========================================
   4. Typography & Text Gradients
   ========================================= */
.text-gradient {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-brand {
    background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   5. Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0)
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* =========================================
   6. Specific UI Elements (Uiverse.io)
   ========================================= */

/* Button Style: https://uiverse.io/mrtqzbek11/moody-bulldog-15 */
.btn-uiverse {
    width: 165px;
    height: 62px;
    cursor: pointer;
    color: #fff;
    font-size: 17px;
    border-radius: 1rem;
    border: none;
    position: relative;
    background: #100720;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
}

.btn-uiverse::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient( circle farthest-corner at 10% 20%,  rgba(255,94,247,1) 17.8%, rgba(2,245,255,1) 100.2% );
    filter: blur(15px);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
}

.btn-uiverse:active {
    transform: scale(0.9) rotate(3deg);
    background: radial-gradient( circle farthest-corner at 10% 20%,  rgba(255,94,247,1) 17.8%, rgba(2,245,255,1) 100.2% );
    transition: 0.5s;
}

/* Input Style: https://uiverse.io/CodeM7710/new-dolphin-33 */
.input-group-uiverse {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%; /* Adjusted from fixed width */
    border-radius: 10px;
    border: 2px solid #5e5757;
    padding: 15px 8px 15px 10px;
    text-align: left;
    box-shadow: 20px 20px 60px #0f172a, -20px -20px 60px #1e293b; /* Adjusted shadows for dark theme */
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1.5rem;
}

.input-group-uiverse .search_bar {
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: white; /* Changed from gray to white for better contrast */
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-group-uiverse .search_bar::placeholder {
    color: #64748b;
}

/* =========================================
   7. Internal Pages Utilities
   ========================================= */

/* Layout */
.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 8rem; /* Space for fixed navbar */
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.glass-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-gray);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-table td {
    padding: 1rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-table tr:last-child td {
    border-bottom: none;
}

/* Forms */
.form-label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Navigation */
.nav-link-active {
    color: var(--primary) !important;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.bg-dark { background-color: var(--bg-dark); }

.hidden { display: none !important; }

/* Tailwind-like utilities needed if not using CDN everywhere or for specific overrides */
.w-full { width: 100%; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-6 { padding: 1.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
