/* ══════════════════════════════════════════
   Cyrus Tache — Premium Design System
   Modern Aesthetics: Glassmorphism, Gradients,
   Vibrant Colors & Dynamic Interactions.
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Orange & Black Theme */
    --primary-gradient: linear-gradient(135deg, #FB7E10 0%, #FF9E40 100%);
    --secondary-gradient: linear-gradient(135deg, #333333 0%, #000000 100%);
    --accent-gradient: linear-gradient(135deg, #FFB444 0%, #FB7E10 100%);
    
    --bg-main: #fcfcfc;
    --sidebar-bg: #111111;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 70px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global ── */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ── Layout ── */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Premium Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.sidebar-header {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background: rgba(255,255,255,0.03);
}

.sidebar-header .logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.8rem 1.5rem;
    margin: 0.2rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(251, 126, 16, 0.3);
}

.sidebar-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Main Content & Navbar ── */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar {
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ── Premium Glass Cards ── */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.stat-card {
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    opacity: 0.03;
    border-radius: 50%;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
}

/* ── Tables & Lists ── */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    border: none;
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ── Buttons & Inputs ── */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(251, 126, 16, 0.2);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(251, 126, 16, 0.3);
}

.form-control {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: #FB7E10;
    box-shadow: 0 0 0 4px rgba(251, 126, 16, 0.1);
}

/* ── Overrides ── */
.text-primary { color: #FB7E10 !important; }
.bg-primary { background-color: #FB7E10 !important; }
.btn-primary { background: var(--primary-gradient) !important; border: none !important; }
.btn-outline-primary { border-color: #FB7E10 !important; color: #FB7E10 !important; }
.btn-outline-primary:hover { background-color: #FB7E10 !important; color: #fff !important; }

/* ── Badges ── */
.badge {
    padding: 0.5em 1em;
    border-radius: 100px;
    font-weight: 600;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -var(--sidebar-width);
        height: 100vh;
    }
    .sidebar.show {
        left: 0;
    }
}

/* -- Auth Wrapper -- */
.auth-wrapper {
    background: url('../img/login-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 0;
}

.auth-wrapper > * {
    position: relative;
    z-index: 1;
}

.auth-wrapper .card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4) !important;
}
