/* ============================================================
   vreau.co - Stiluri principale
   ============================================================ */

:root {
    --sidebar-width: 260px;
    --navbar-height: 56px;
    --primary: #1a56db;
    --sidebar-bg: #1e2a3a;
    --sidebar-hover: rgba(255,255,255,0.08);
    --sidebar-active: rgba(255,255,255,0.15);
    --sidebar-text: rgba(255,255,255,0.75);
    --transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 14px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { background: #f1f5f9; }

.auth-bg {
    position: fixed; inset: 0; z-index: -1;
    background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
    opacity: 0.06;
}

.auth-card {
    border-radius: 16px;
    animation: fadeSlideUp 0.4s ease;
}

.auth-logo {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.wrapper { min-height: 100vh; padding-top: var(--navbar-height); }

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--sidebar-bg);
    z-index: 100;
    overflow: hidden;
    transition: transform var(--transition);
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}

.sidebar-inner { height: 100%; }

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    transition: margin-left var(--transition);
}

/* Overlay mobil */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    padding: 6px 12px 4px;
    list-style: none;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.sidebar-link i { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,86,219,0.4);
}

.sidebar-user { min-height: 64px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#topNav { height: var(--navbar-height); background: var(--primary) !important; }

/* Notificari */
.notif-unread { background: #eff6ff !important; }
.notif-dot { display: inline-block; }

/* ============================================================
   AVATARE
   ============================================================ */
.avatar-circle, .avatar-circle-sm, .avatar-circle-xs, .avatar-circle-xl {
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 700;
    background: linear-gradient(135deg, #1a56db, #6366f1);
    color: #fff;
    flex-shrink: 0;
}
.avatar-circle    { width: 42px; height: 42px; font-size: 18px; }
.avatar-circle-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-circle-xs { width: 28px; height: 28px; font-size: 11px; }
.avatar-circle-xl { width: 72px; height: 72px; font-size: 28px; }

/* ============================================================
   CARDS & STATS
   ============================================================ */
.card { border-radius: 12px; }

.stat-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; }

.stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.stat-icon  { display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { max-width: 1400px; }

/* Detalii randuri */
.detail-row { margin-bottom: 4px; }
.detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; font-weight: 600; margin-bottom: 2px; }
.detail-value { font-size: 14px; font-weight: 500; color: #1e293b; }

/* ============================================================
   TABELE
   ============================================================ */
.table { font-size: 13.5px; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.table td { vertical-align: middle; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    border-color: #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.input-group .form-control,
.input-group .input-group-text {
    border-radius: 0;
}
.input-group .form-control:first-child,
.input-group .input-group-text:first-child { border-radius: 8px 0 0 8px; }
.input-group .form-control:last-child,
.input-group .input-group-text:last-child  { border-radius: 0 8px 8px 0; }
.input-group .form-control:only-child       { border-radius: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { border-radius: 8px; font-weight: 500; font-size: 13.5px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #1648c5; border-color: #1648c5; }

/* ============================================================
   BADGES STATUS
   ============================================================ */
.badge-status-pending   { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-status-approved  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-status-rejected  { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-status-cancelled { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* ============================================================
   FLATPICKR
   ============================================================ */
.flatpickr-calendar { font-family: 'Inter', sans-serif; border-radius: 12px !important; box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important; }
.flatpickr-day.selected { background: var(--primary) !important; border-color: var(--primary) !important; }
.flatpickr-day:hover { background: #eff6ff !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0,0,0,0.2);
    }
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .page-content { padding: 12px !important; }
    .stat-value { font-size: 22px; }
    .card-body { padding: 16px !important; }
}

/* ============================================================
   ANIMATII
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.card { animation: fadeIn 0.3s ease; }

/* ============================================================
   SCROLLBAR personalizata
   ============================================================ */
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .sidebar, #topNav, .btn, .alert { display: none !important; }
    .main-content { margin: 0 !important; }
}

/* Logo vreau.co: cuvant + punct portocaliu (soarele din logo) */
.brand-word { font-weight: 800; letter-spacing: -0.02em; }
.brand-dot { color: #f59e0b; }
#topNav .brand-dot { color: #fbbf24; }
