/* style.css - Premium Glassmorphism Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --dark-bg: #0f0f23;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.08);
    /* Navbar */
    --text-muted: rgba(255, 255, 255, 0.6);
}

body {
    background-color: var(--dark-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Background Animation Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(17, 153, 142, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Navbar */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.navbar-brand {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: 0.3s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Form Controls */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: white;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Tables */
.table {
    color: rgba(255, 255, 255, 0.8);
}

.table thead th {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.table td {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-hover tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Stats */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Login Page specific */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        border: 1px solid var(--card-border);
    }

    .glass-card {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    /* Responsive Table Wrapper */
    .table-responsive {
        border-radius: 8px;
    }

    th,
    td {
        white-space: nowrap;
    }

    /* Optional: Card view for table rows on very small screens could be added here */
}