/* ── Retrotrafo Form Modern Styles ── */
:root {
    --dash-radius: 16px;
    --dash-shadow: 0 4px 24px rgba(0,0,0,.06);
    --dash-shadow-hover: 0 12px 36px rgba(0,0,0,.12);
    --brand: #b33a3a;
    --brand-2: #f57c45;
    --ink: #1a1a2e;
    --muted: #5a6170;
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e9eef5 50%, #f4f2f7 100%);
    min-height: 100vh;
}

/* ── Navbar modern ── */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    padding: 10px 20px;
}

.navbar.bg-light {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.navbar-light .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .03em;
}

.navbar-light .navbar-nav .nav-link {
    color: #c4b5d1 !important;
    font-weight: 500;
    font-size: .9rem;
    transition: color .2s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-light .navbar-text {
    color: #e0d8f0 !important;
}

/* ── Section labels ── */
.section-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #8a8fa0;
    margin: 24px 0 12px 4px;
    font-weight: 700;
}

/* ── Dashboard header ── */
.dashboard-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1030 100%);
    color: #fff;
    border-radius: var(--dash-radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--dash-shadow-hover);
    position: relative;
    overflow: hidden;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245,124,69,.15) 0%, transparent 70%);
    top: -60px;
    right: -40px;
    border-radius: 50%;
}

.dashboard-header h2 {
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #fff, #ffb088);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dashboard-header .user-info {
    position: relative;
    z-index: 1;
    color: #c4b5d1;
    font-size: .88rem;
    margin-top: 4px;
}

/* ── Modern cards ── */
.dash-card {
    border: none;
    border-radius: var(--dash-radius);
    background: #fff;
    box-shadow: var(--dash-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    overflow: visible;
    position: relative;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--dash-radius) var(--dash-radius) 0 0;
    pointer-events: none;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dash-shadow-hover);
}

.dash-card .card-body {
    position: relative;
    z-index: 1;
    padding: 20px 14px 18px;
}

.dash-card .icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dash-card .card-title {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 2px;
    color: #1a1a2e;
}

.dash-card .card-text {
    font-size: .78rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.dash-card .btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: .78rem;
    padding: 6px 10px;
    white-space: nowrap;
    transition: all .25s ease;
}

.dash-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* ── Card accent colors ── */
.accent-green::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.accent-teal::before   { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.accent-amber::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.accent-blue::before   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.accent-red::before    { background: linear-gradient(90deg, #ef4444, #f87171); }
.accent-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.accent-slate::before  { background: linear-gradient(90deg, #475569, #64748b); }
.accent-cyan::before   { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.accent-rose::before   { background: linear-gradient(90deg, #e11d48, #fb7185); }

.icon-green  { background: #d1fae5; color: #059669; }
.icon-teal   { background: #ccfbf1; color: #0d9488; }
.icon-amber  { background: #fef3c7; color: #d97706; }
.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-red    { background: #fee2e2; color: #dc2626; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-slate  { background: #e2e8f0; color: #475569; }
.icon-cyan   { background: #cffafe; color: #0891b2; }
.icon-rose   { background: #ffe4e6; color: #e11d48; }

/* ── Modern forms ── */
.modern-form {
    background: #fff;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    padding: 28px;
    border: none;
}

.modern-form h2, .modern-form h3 {
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
}

.modern-form .form-control {
    border-radius: 10px;
    border: 1px solid #e2e6ed;
    padding: 10px 14px;
    font-size: .92rem;
    transition: border-color .25s, box-shadow .25s;
}

.modern-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(179,58,58,.12);
}

.modern-form label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.modern-form .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all .25s;
}

.modern-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* ── Modern tables ── */
.modern-table {
    background: #fff;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
}

.modern-table thead th {
    background: linear-gradient(180deg, #f8f9fc, #eef1f7);
    border-bottom: 2px solid #e2e6ed;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    padding: 8px 12px;
}

.modern-table tbody td {
    padding: 7px 12px;
    font-size: .82rem;
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: #f8f9fc;
}

/* ── Login / Auth cards ── */
.auth-card {
    background: #fff;
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow-hover);
    padding: 36px 32px;
    max-width: 440px;
    margin: 60px auto;
    border: none;
}

.auth-card h2 {
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-card .subtitle {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 22px;
}

.auth-card .form-control {
    border-radius: 10px;
    border: 1px solid #e2e6ed;
    padding: 10px 14px;
    font-size: .92rem;
}

.auth-card .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(179,58,58,.12);
}

.auth-card .btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 20px;
    transition: all .25s;
}

.auth-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* ── Admin cards ── */
.admin-card {
    border: none;
    border-radius: var(--dash-radius);
    background: #fff;
    box-shadow: var(--dash-shadow);
    transition: all .3s ease;
}

.admin-card:hover {
    box-shadow: var(--dash-shadow-hover);
}

/* ── Alerts modern ── */
.alert {
    border: none;
    border-radius: 12px;
    font-size: .9rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
    }
    .dashboard-header h2 {
        font-size: 1.35rem;
    }
    .dash-card .card-body {
        padding: 18px 14px;
    }
    .modern-form {
        padding: 18px;
    }
    .auth-card {
        margin: 24px 12px;
        padding: 24px 18px;
    }
}
