/* TExporter PHP — Estilos personalizados */

:root {
    --sidebar-width: 240px;
    --sidebar-bg: #1a1d21;
    --sidebar-hover: #2d3138;
    --accent: #0088cc;
}

/* ── Layout ───────────────────────────────────────── */
body {
    background: #f0f2f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

#wrapper {
    min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────── */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #2d3138;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand h6 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.sidebar-brand small {
    color: #6c757d;
    font-size: 0.72rem;
}

.sidebar-section {
    padding: 1rem 0.75rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
}

.sidebar-nav .nav-link {
    color: #adb5bd;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    margin: 1px 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    transition: all 0.15s;
}

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

.sidebar-nav .nav-link.active {
    background: var(--accent);
    color: #fff;
}

.sidebar-nav .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Page content ─────────────────────────────────── */
#page-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar .page-title {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    margin: 0;
}

.topbar .session-badge {
    margin-left: auto;
    font-size: 0.78rem;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
}

/* ── Cards ────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.15s;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

/* ── Tables ───────────────────────────────────────── */
.table-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.table-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table > :not(caption) > * > * {
    padding: 0.6rem 1rem;
}

/* ── Forms ────────────────────────────────────────── */
.form-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
}

.form-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

/* ── Steps (auth wizard) ──────────────────────────── */
.step-indicator {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #adb5bd;
}

.step.active {
    color: var(--accent);
    font-weight: 600;
}

.step.done {
    color: #198754;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step.active .step-num {
    background: var(--accent);
    color: white;
}

.step.done .step-num {
    background: #198754;
    color: white;
}

/* ── Progress ─────────────────────────────────────── */
.progress-tall {
    height: 24px;
    border-radius: 12px;
}

/* ── Badges ───────────────────────────────────────── */
.badge-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* ── Member table ─────────────────────────────────── */
.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    #sidebar {
        width: 60px;
    }
    .sidebar-brand h6,
    .sidebar-brand small,
    .sidebar-section,
    .sidebar-nav .nav-link span {
        display: none;
    }
    .sidebar-nav .nav-link {
        justify-content: center;
        padding: 0.7rem;
    }
}
