/* ── Rendeu Dashboard — Custom Styles ─────────────────────────────────────── */

:root {
    --navy: #0D1B2A;
    --coral: #FF6B4A;
    --coral-light: #FF8B70;
    --sidebar-width: 240px;
    --sidebar-bg: #0D1B2A;
    --sidebar-text: rgba(255,255,255,0.75);
    --sidebar-active: #FF6B4A;
    --top-navbar-height: 56px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f6fb;
    color: #1a2233;
}

.text-navy { color: var(--navy) !important; }
.text-coral { color: var(--coral) !important; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar-brand {
    text-decoration: none;
    padding: 0 1rem;
}

.sidebar-link {
    color: var(--sidebar-text);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    margin-bottom: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-link.active {
    background: var(--coral);
    color: #fff;
    font-weight: 600;
}

#content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-navbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    height: var(--top-navbar-height);
    position: sticky;
    top: 0;
    z-index: 99;
}

.main-content {
    padding: 1.5rem 2rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-coral {
    background-color: var(--coral);
    border-color: var(--coral);
    color: #fff;
    font-weight: 600;
}
.btn-coral:hover, .btn-coral:focus {
    background-color: var(--coral-light);
    border-color: var(--coral-light);
    color: #fff;
}
.btn-coral:active {
    background-color: #e55a3b;
    border-color: #e55a3b;
    color: #fff;
}
.btn-outline-coral {
    color: var(--coral);
    border-color: var(--coral);
    font-weight: 600;
}
.btn-outline-coral:hover {
    background-color: var(--coral);
    color: #fff;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge-coral {
    background-color: var(--coral);
    color: #fff;
}

/* ── Stat Cards ──────────────────────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: 12px;
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem 0.5rem;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* ── Password Display Modal ──────────────────────────────────────────────── */
.swal2-password-display {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.25em;
    background: #f4f6fb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: inline-block;
    color: var(--navy);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #content-wrapper {
        margin-left: 0;
    }
    .wrapper.sidebar-toggled #sidebar {
        margin-left: 0;
    }
    .main-content {
        padding: 1rem;
    }
}

/* ── DataTables overrides ─────────────────────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.35rem 0.75rem;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
}
