/* ============================================================
   RI Management System — Global Design System
   ============================================================ */

:root {
    /* Gerua (saffron) theme + related earth tones */
    --primary: #1c1410;
    --primary-soft: #2a211c;
    --primary-light: #3f342c;
    --accent: #c2410c;
    --accent-light: #ea580c;
    --accent-dark: #9a3412;
    --accent-glow: rgba(194, 65, 12, 0.28);
    --gerua: #c2410c;
    --gerua-light: #f97316;
    --gerua-soft: #fdba74;
    --gerua-deep: #7c2d12;
    --gold: #b45309;
    --gold-light: #d97706;
    --ink: #1c1410;
    --surface: #f7f3ee;
    --surface-card: #fffdf9;
    --pink: #be185d;
    --teal: #0f766e;
    --success: #15803d;
    --warning: #d97706;
    --danger: #dc2626;
    --sidebar-width: 270px;
    --header-height: 68px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(28, 20, 16, 0.06);
    --shadow-md: 0 4px 20px rgba(28, 20, 16, 0.08);
    --shadow-lg: 0 10px 40px rgba(28, 20, 16, 0.12);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, .app-body, .login-body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--surface);
    color: #3f342c;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LOGIN PAGE — 3D Scene
   ============================================================ */
.login-body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    background: #1a100c;
    color: #f5e6d3;
}

.login-scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 28px;
}

.login-scene-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(194, 65, 12, 0.42), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(180, 83, 9, 0.28), transparent 50%),
        linear-gradient(160deg, #1a100c 0%, #2a1810 45%, #3f2316 100%);
}

.login-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(600px) rotateX(58deg) scale(1.4);
    transform-origin: center 70%;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 70%, transparent);
    animation: loginGridDrift 18s linear infinite;
}

@keyframes loginGridDrift {
    from { background-position: 0 0; }
    to { background-position: 0 48px; }
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.login-orb-1 {
    width: 340px; height: 340px;
    top: -80px; left: -60px;
    background: #c2410c;
    animation: loginOrbFloat 10s ease-in-out infinite;
}

.login-orb-2 {
    width: 280px; height: 280px;
    bottom: 10%; right: -40px;
    background: #b45309;
    animation: loginOrbFloat 12s ease-in-out infinite 1.5s;
}

.login-orb-3 {
    width: 180px; height: 180px;
    top: 35%; left: 45%;
    background: #7c2d12;
    opacity: 0.35;
    animation: loginOrbFloat 9s ease-in-out infinite 0.8s;
}

@keyframes loginOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, -24px, 0) scale(1.08); }
}

.login-depth-layer {
    position: absolute;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(2px);
}

.login-depth-1 {
    width: min(920px, 90vw);
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(12deg) rotateY(-8deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.login-depth-2 {
    width: min(780px, 78vw);
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-48%, -42%) rotateX(18deg) rotateY(10deg);
    opacity: 0.5;
}

.login-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    perspective: 1400px;
}

.login-hero-3d {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.login-brand-block {
    text-align: center;
    transform: translateZ(40px);
    animation: loginBrandIn 0.9s ease both;
}

@keyframes loginBrandIn {
    from { opacity: 0; transform: translateZ(40px) translateY(24px); }
    to { opacity: 1; transform: translateZ(40px) translateY(0); }
}

.login-logo-3d {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    transform-style: preserve-3d;
    animation: loginLogoSpin 8s ease-in-out infinite;
}

@keyframes loginLogoSpin {
    0%, 100% { transform: rotateY(-12deg) rotateX(8deg); }
    50% { transform: rotateY(12deg) rotateX(-4deg); }
}

.login-logo-face {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    background: linear-gradient(145deg, #ea580c 0%, #c2410c 45%, #7c2d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.login-logo-3d.has-logo .login-logo-face {
    background: #fff;
    padding: 10px;
    color: #0f172a;
}

.login-logo-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.login-logo-shadow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -28px;
    height: 28px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(4px);
    z-index: 1;
}

.login-brand-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.login-brand-tagline {
    color: rgba(226, 232, 240, 0.72);
    font-size: 1.02rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.5;
}

.login-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    transform-style: preserve-3d;
}

.login-float-card i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(194, 65, 12, 0.95);
}

.login-float-b i { background: rgba(157, 23, 77, 0.92); }
.login-float-c i { background: rgba(15, 118, 110, 0.95); }

.login-float-a {
    top: 8%;
    left: 0;
    animation: loginFloatA 5.5s ease-in-out infinite;
}

.login-float-b {
    top: 22%;
    right: 0;
    animation: loginFloatB 6.5s ease-in-out infinite 0.4s;
}

.login-float-c {
    bottom: -6%;
    left: 12%;
    animation: loginFloatC 7s ease-in-out infinite 0.8s;
}

@keyframes loginFloatA {
    0%, 100% { transform: translate3d(0, 0, 60px) rotateY(-18deg); }
    50% { transform: translate3d(8px, -14px, 80px) rotateY(-10deg); }
}

@keyframes loginFloatB {
    0%, 100% { transform: translate3d(0, 0, 40px) rotateY(16deg); }
    50% { transform: translate3d(-10px, 12px, 70px) rotateY(8deg); }
}

@keyframes loginFloatC {
    0%, 100% { transform: translate3d(0, 0, 30px) rotateX(8deg); }
    50% { transform: translate3d(12px, -10px, 55px) rotateX(2deg); }
}

.login-card-3d {
    position: relative;
    transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.35s ease;
    animation: loginCardIn 0.85s ease both 0.15s;
}

@keyframes loginCardIn {
    from { opacity: 0; transform: perspective(1200px) rotateY(-18deg) translateY(30px); }
    to { opacity: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(4deg); }
}

.login-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.65), rgba(180, 83, 9, 0.4), rgba(124, 45, 18, 0.35));
    filter: blur(1px);
    opacity: 0.85;
    z-index: 0;
}

.login-card-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
    border-radius: 26px;
    padding: 36px 32px 28px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #334155;
}

.login-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c2410c;
    margin-bottom: 10px;
}

.login-form-header { margin-bottom: 28px; }

.login-form-header h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.login-form-header p { color: #64748b; font-size: 0.92rem; margin: 0; }

.form-floating-modern { margin-bottom: 18px; }
.form-floating-modern label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.input-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-modern > i:first-child {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 2;
}

.input-modern input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: 0.25s ease;
}

.input-modern input:focus {
    outline: none;
    border-color: #c2410c;
    background: white;
    box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15);
}

.input-modern input::placeholder { color: #cbd5e1; }

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

.toggle-password:hover { color: #c2410c; }

.btn-login-modern {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 55%, #9a3412 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
    margin-top: 8px;
    box-shadow: 0 12px 28px rgba(194, 65, 12, 0.4);
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(194, 65, 12, 0.5);
}

.btn-login-modern i { transition: transform 0.2s; }
.btn-login-modern:hover i { transform: translateX(4px); }

.login-form-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-credit {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    margin-top: 36px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(7, 17, 31, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(10px);
}

.login-credit p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.78);
}

.login-credit strong {
    color: #f8fafc;
    font-weight: 700;
}

@media (max-width: 960px) {
    .login-stage {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 460px;
    }

    .login-hero-3d {
        min-height: auto;
        padding: 12px 0 8px;
    }

    .login-float-card { display: none; }

    .login-card-3d,
    .login-card-3d:hover {
        transform: none !important;
    }

    .login-depth-1,
    .login-depth-2 { display: none; }

    .login-logo-3d {
        width: 88px;
        height: 88px;
        margin-bottom: 18px;
    }

    .login-brand-title { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .login-grid,
    .login-orb,
    .login-logo-3d,
    .login-float-card,
    .login-brand-block,
    .login-card-3d {
        animation: none !important;
    }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.sidebar-overlay.show { display: block; }

.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1c1410 0%, #3f2316 55%, #7c2d12 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent), #9a3412);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-logo.has-logo {
    background: #fff;
    padding: 3px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.sidebar-brand-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.3px;
}

.sidebar-brand-text small {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-section {
    padding: 16px 12px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link-item:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.nav-link-item.active {
    background: linear-gradient(135deg, rgba(194,65,12,0.2), rgba(154,52,18,0.15));
    color: white;
    box-shadow: inset 0 0 0 1px rgba(194,65,12,0.3);
}

.nav-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-link-item.active .nav-icon,
.nav-link-item:hover .nav-icon {
    background: rgba(255,255,255,0.1);
}

.nav-icon.purple { color: #fdba74; }
.nav-icon.pink   { color: #f9a8d4; }
.nav-icon.teal   { color: #5eead4; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #9a3412);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-info strong {
    display: block;
    font-size: 0.82rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info small {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}

.sidebar-logout {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-header {
    height: var(--header-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    width: 40px; height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover { background: #e2e8f0; }

.page-title-wrap h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.page-breadcrumb {
    font-size: 0.75rem;
    color: #94a3b8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.header-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #9a3412);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.header-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--accent-glow);
    color: white;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
    padding: 28px;
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #f7f3ee 0%, #fffdf9 100%);
}

.content-area:has(.dashboard-page) {
    background: linear-gradient(180deg, #fff7ed 0%, #f7f3ee 50%, #fffdf9 100%);
}

.page-enter {
    animation: pageEnter 0.4s ease;
}

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

/* ============================================================
   ALERTS
   ============================================================ */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-modern.alert-success { background: #ecfdf5; color: #065f46; }
.alert-modern.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-modern.alert-info    { background: #eff6ff; color: #1e40af; }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
}

.card-panel:hover { box-shadow: var(--shadow-md); }

.card-panel .card-header-custom {
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-light));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.card-panel .card-header-custom .btn-light {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.card-panel .card-header-custom .btn-light:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.card-panel .card-body-custom { padding: 24px; }

 .card-header-pink  { background: linear-gradient(135deg, #be185d, #9f1239) !important; }
 .card-header-teal  { background: linear-gradient(135deg, #0f766e, #115e59) !important; }
 .card-header-orange { background: linear-gradient(135deg, #ea580c, #c2410c) !important; }

/* ============================================================
   TABLES
   ============================================================ */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    vertical-align: middle;
    color: #475569;
}

.table-custom tbody tr {
    transition: background 0.15s;
}

.table-custom tbody tr:hover {
    background: #f8fafc;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive-custom {
    overflow-x: auto;
    max-height: 70vh;
    border-radius: var(--radius-md);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: white;
}

.btn-action {
    width: 34px; height: 34px;
    border-radius: 9px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-action.edit   { background: #fff7ed; color: #c2410c; }
.btn-action.delete { background: #fef2f2; color: #dc2626; }
.btn-action.view   { background: #fff7ed; color: #9a3412; }
.btn-action.view:hover { background: #c2410c; color: white; }
.btn-action.edit:hover { background: #c2410c; color: white; }

.btn-action:hover { transform: scale(1.08); }

/* Individual Detail Report */
.detail-report-wrap { max-width: 900px; margin: 0 auto; }

.detail-report-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.detail-report-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.detail-report-header {
    padding: 32px 28px;
    text-align: center;
    color: white;
}

.detail-report-header-teal {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #ea580c 100%);
}

.detail-report-header-pink {
    background: linear-gradient(135deg, #9f1239 0%, #be185d 50%, #c2410c 100%);
}

.detail-report-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.detail-report-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.detail-report-header h1 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.detail-report-meta {
    font-size: 0.88rem;
    opacity: 0.9;
    margin: 0;
}

.detail-report-body { padding: 28px; }

.detail-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

 .detail-section-title i { color: #c2410c; margin-right: 6px; }

 .detail-section-title-pink i { color: #be185d; }

.detail-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-field-item {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid #f1f5f9;
}

.detail-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.detail-field-value {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
    word-break: break-word;
}

.detail-action-list { display: flex; flex-direction: column; gap: 12px; }

.detail-action-item {
    padding: 14px 16px;
    background: #f0fdfa;
    border-radius: var(--radius-sm);
    border-left: 4px solid #14b8a6;
}

.detail-action-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 6px;
}

.detail-action-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.detail-no-actions {
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    text-align: center;
}

.detail-report-footer {
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .detail-fields-grid { grid-template-columns: 1fr; }
}

@media print {
    .detail-report-wrap { max-width: 100%; }
    .detail-report-card { box-shadow: none; border: none; }
    .detail-report-toolbar { display: none !important; }
}

.btn-outline-primary {
    border: 2px solid var(--accent) !important;
    color: var(--accent) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--accent) !important;
    color: white !important;
}

.btn-outline-secondary {
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-danger {
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control-custom {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    transition: var(--transition);
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--primary);
    background: #f8fafc;
}

.form-control-custom:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

select.form-control-custom {
    cursor: pointer;
    appearance: auto;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 80px;
}

/* ============================================================
   FILTER PANEL
   ============================================================ */
.filter-panel {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.filter-panel .form-label-custom {
    margin-bottom: 6px;
}

/* ============================================================
   ACTION TIMELINE
   ============================================================ */
.action-timeline {
    position: relative;
    padding-left: 28px;
}

.action-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), #e2e8f0);
    border-radius: 2px;
}

.action-item {
    position: relative;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.action-item:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.action-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--accent-light);
}

.action-item .action-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d9488;
}

.action-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-item-edit {
    padding-top: 4px;
}

.action-add-form .form-label-custom.small {
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.action-type-tabs .nav-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
}

.action-type-tabs .nav-link.active {
    background: var(--accent);
    color: white;
}

.action-title-group {
    margin-bottom: 16px;
}

.action-item-title {
    border-left: 4px solid #c2410c;
    background: #fff7ed;
}

.action-title-heading {
    font-weight: 700;
    color: #9a3412;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-sub-list {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px dashed #cbd5e1;
    margin-top: 10px;
}

.action-depth-2 { margin-left: 4px; }
.action-depth-3 { margin-left: 8px; }
.action-depth-4 { margin-left: 12px; }
.action-depth-5 { margin-left: 16px; }

.action-sub-item {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.action-sub-add-form {
    background: #ecfdf5;
    border: 1px dashed #6ee7b7;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 10px 0 10px 16px;
}

.detail-action-tree {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-action-title-group {
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fffbeb;
}

.detail-action-heading {
    font-weight: 700;
    font-size: 1rem;
    color: #b45309;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-action-title-note {
    color: #92400e;
    opacity: 0.85;
    margin-top: 6px;
}

.detail-action-children {
    margin: 0;
    padding: 12px 16px 12px 20px;
    border-top: 1px dashed #fcd34d;
    background: #fff;
}

.detail-action-sub {
    margin-bottom: 10px;
}

.detail-action-sub:last-child {
    margin-bottom: 0;
}

.detail-action-sub .detail-action-item {
    background: #f0fdfa;
    border-left: 4px solid #14b8a6;
}

.detail-action-depth-0 .detail-action-item {
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
}

.detail-action-children .detail-action-children {
    margin-top: 10px;
    padding: 10px 0 0 16px;
    border-top: none;
    border-left: 2px dashed #cbd5e1;
    background: transparent;
}

.detail-action-depth-2 { margin-left: 4px; }
.detail-action-depth-3 { margin-left: 8px; }
.detail-action-depth-4 { margin-left: 12px; }
.detail-action-depth-5 { margin-left: 16px; }

.detail-action-title {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0;
    margin: 0;
}

.detail-action-title .detail-action-text {
    font-weight: 600;
    color: #92400e;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
    display: block;
}

.empty-state h5 {
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p { margin-bottom: 20px; }

/* ============================================================
   MISC
   ============================================================ */
.select-checkbox {
    width: 18px; height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    border-radius: 4px;
}

.badge-custom {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.list-group-item {
    border-radius: var(--radius-sm) !important;
    margin-bottom: 4px;
    border: 1px solid #e2e8f0 !important;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border-color: transparent !important;
}

.list-group-item-action:hover {
    background: #f8fafc;
}

/* Stat cards (legacy) */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Print */
@media print {
    .sidebar, .top-header, .sidebar-overlay, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; background: white !important; }
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .header-date { display: none; }
    .page-breadcrumb { display: none; }
    .content-area { padding: 16px; }
}

/* ============================================================
   DASHBOARD (enhanced)
   ============================================================ */
.dashboard-page { animation: dashFadeIn 0.5s ease; }

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

@keyframes dashFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes dashPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.3; }
}

@keyframes dashWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.dash-hero {
    background: linear-gradient(135deg, #0f172a 0%, #7c2d12 50%, #c2410c 100%);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(194, 65, 12, 0.28);
}

.dash-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.dash-greeting { font-size: 0.95rem; color: rgba(255,255,255,0.75); font-weight: 500; }

.dash-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 4px 0 10px;
    letter-spacing: -0.5px;
}

.dash-hero-title .wave {
    display: inline-block;
    animation: dashWave 2s ease infinite;
    transform-origin: 70% 70%;
}

.dash-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    max-width: 520px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.dash-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; }

.dash-hero-meta span {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-hero-visual { position: relative; width: 120px; height: 120px; flex-shrink: 0; }

.dash-hero-circle { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,0.12); }
.dash-hero-circle-1 { width: 120px; height: 120px; top: 0; left: 0; animation: dashPulse 3s ease infinite; }
.dash-hero-circle-2 { width: 80px; height: 80px; top: 20px; left: 20px; animation: dashPulse 3s ease infinite 0.5s; }

.dash-hero-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    animation: dashFloat 3s ease infinite;
}

.dash-stat-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 140px;
}

.dash-stat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,0.15); }

.dash-stat-purple { background: linear-gradient(135deg, #c2410c, #9a3412); }
 .dash-stat-blue   { background: linear-gradient(135deg, #b45309, #92400e); }
 .dash-stat-pink   { background: linear-gradient(135deg, #be185d, #9f1239); }
 .dash-stat-teal   { background: linear-gradient(135deg, #0f766e, #115e59); }

.dash-stat-bg-icon { position: absolute; right: -10px; bottom: -15px; font-size: 5rem; opacity: 0.12; line-height: 1; }
.dash-stat-label { font-size: 0.82rem; opacity: 0.85; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-stat-value { font-size: 2.2rem; font-weight: 800; margin: 6px 0; line-height: 1.1; }
.dash-stat-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }

.dash-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
}

.dash-panel-full { display: flex; flex-direction: column; }
.dash-panel-full .dash-panel-body { flex: 1; }

.dash-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-panel-header h5 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.dash-panel-header h5 i { color: var(--accent); margin-right: 6px; }
.dash-panel-header p { margin: 2px 0 0; font-size: 0.82rem; color: #94a3b8; }
.dash-panel-body { padding: 24px; }

.dash-link-btn { color: var(--accent); text-decoration: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap; transition: color 0.2s; }
.dash-link-btn:hover { color: var(--accent-dark); }

.dash-donut-wrap { display: flex; justify-content: center; }

.dash-donut {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: conic-gradient(#c2410c calc(var(--progress) * 1%), #e2e8f0 calc(var(--progress) * 1%));
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-donut-inner {
    width: 120px; height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dash-donut-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.dash-donut-label { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }

.dash-finance-grid { display: flex; flex-direction: column; gap: 14px; }

.dash-finance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.dash-finance-item:hover { background: #f1f5f9; border-color: #e2e8f0; }

.dash-finance-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-finance-icon.fraud     { background: #fef2f2; color: #dc2626; }
.dash-finance-icon.recovered { background: #ecfdf5; color: #059669; }
.dash-finance-icon.pending   { background: #fffbeb; color: #d97706; }

.dash-finance-label { font-size: 0.78rem; color: #94a3b8; display: block; }
.dash-finance-amount { font-size: 1.15rem; font-weight: 700; color: var(--primary); }

.dash-progress-bar { height: 10px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.dash-progress-fill { height: 100%; background: linear-gradient(90deg, #c2410c, #9a3412); border-radius: 10px; transition: width 1.5s ease; }

.dash-quick-actions { display: flex; flex-direction: column; gap: 8px; }

.dash-quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    background: #f8fafc;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dash-quick-btn:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    transform: translateX(4px);
}

.dash-quick-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dash-quick-icon.purple { background: linear-gradient(135deg, #c2410c, #9a3412); }
 .dash-quick-icon.pink   { background: linear-gradient(135deg, #be185d, #9f1239); }
 .dash-quick-icon.teal   { background: linear-gradient(135deg, #0f766e, #115e59); }
 .dash-quick-icon.blue   { background: linear-gradient(135deg, #b45309, #92400e); }
 .dash-quick-icon.orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.dash-quick-icon.gray   { background: linear-gradient(135deg, #64748b, #475569); }

.dash-quick-arrow { margin-left: auto; color: #cbd5e1; font-size: 0.8rem; transition: color 0.2s; }
.dash-quick-btn:hover .dash-quick-arrow { color: var(--accent); }

.dash-section-title { margin-bottom: 20px; }
.dash-section-title h5 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: 0; }
.dash-section-title h5 i { color: var(--accent); margin-right: 6px; }
.dash-section-title p { font-size: 0.85rem; color: #94a3b8; margin: 2px 0 0; }

.dash-module-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.dash-module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.module-recovery { border-top-color: #c2410c; }
 .module-women    { border-top-color: #be185d; }
.module-cyber    { border-top-color: #14b8a6; }

.dash-module-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.dash-module-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.module-recovery .dash-module-icon { background: linear-gradient(135deg, #c2410c, #9a3412); }
 .module-women .dash-module-icon    { background: linear-gradient(135deg, #be185d, #9f1239); }
 .module-cyber .dash-module-icon    { background: linear-gradient(135deg, #0f766e, #115e59); }

.dash-module-count { font-size: 0.78rem; font-weight: 600; color: #94a3b8; background: #f1f5f9; padding: 4px 12px; border-radius: 20px; }
.dash-module-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.dash-module-card > p { font-size: 0.85rem; color: #94a3b8; line-height: 1.55; margin-bottom: 16px; }

.dash-module-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.dash-module-features li { font-size: 0.82rem; color: #64748b; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.dash-module-features li i { color: var(--success); font-size: 0.9rem; }

.dash-module-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-module-primary {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-module-primary:hover { color: white; box-shadow: 0 4px 15px var(--accent-glow); transform: translateY(-1px); }
 .btn-module-primary.pink { background: linear-gradient(135deg, #be185d, #9f1239); }
.btn-module-primary.pink:hover { box-shadow: 0 4px 15px rgba(236,72,153,0.35); }
 .btn-module-primary.teal { background: linear-gradient(135deg, #0f766e, #115e59); }
.btn-module-primary.teal:hover { box-shadow: 0 4px 15px rgba(20,184,166,0.35); }

.btn-module-outline {
    background: transparent;
    border: 2px solid #c2410c;
    color: #c2410c;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-module-outline:hover { background: #c2410c; color: white; }
 .btn-module-outline.pink { border-color: #be185d; color: #be185d; }
 .btn-module-outline.pink:hover { background: #be185d; color: white; }
.btn-module-outline.teal { border-color: #14b8a6; color: #14b8a6; }
.btn-module-outline.teal:hover { background: #14b8a6; color: white; }

@media (max-width: 768px) {
    .dash-hero { padding: 24px; }
    .dash-hero-content { flex-direction: column; text-align: center; }
    .dash-hero-title { font-size: 1.5rem; }
    .dash-hero-sub { font-size: 0.88rem; }
    .dash-hero-meta { justify-content: center; }
    .dash-hero-visual { display: none; }
    .dash-stat-value { font-size: 1.6rem; }
}

/* Export Buttons */
.export-btn-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-export-excel {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.btn-export-excel:hover:not(:disabled) {
    background: #059669;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-export:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.card-header-custom .btn-export {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.card-header-custom .btn-export-excel {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.card-header-custom .btn-export-excel:hover {
    background: rgba(255,255,255,0.35);
    color: white;
}

/* Recovery Summary Cards */
.recovery-summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.recovery-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.recovery-summary-card.fraud .recovery-summary-icon { background: #fef2f2; color: #dc2626; }
.recovery-summary-card.recovered .recovery-summary-icon { background: #ecfdf5; color: #059669; }
.recovery-summary-card.pending .recovery-summary-icon { background: #fffbeb; color: #d97706; }
.recovery-summary-card.rate .recovery-summary-icon { background: #eff6ff; color: #2563eb; }

.recovery-summary-card.fraud { border-left: 4px solid #dc2626; }
.recovery-summary-card.recovered { border-left: 4px solid #059669; }
.recovery-summary-card.pending { border-left: 4px solid #d97706; }
.recovery-summary-card.rate { border-left: 4px solid #2563eb; }

.recovery-summary-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 4px;
}

.recovery-summary-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

/* Portal Settings Preview */
.portal-preview-box {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px dashed #cbd5e1;
}

.portal-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.portal-preview-card {
    background: linear-gradient(135deg, #1c1410 0%, #7c2d12 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: white;
}

.portal-preview-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    overflow: hidden;
}

.portal-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.logo-upload-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
}

.logo-upload-preview {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.logo-upload-placeholder {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 8px;
}

.logo-upload-placeholder i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.logo-upload-controls {
    flex: 1;
    min-width: 220px;
}

.portal-preview-card h5 {
    font-weight: 800;
    margin-bottom: 4px;
}

.portal-preview-card p {
    opacity: 0.75;
    font-size: 0.88rem;
    margin: 0;
}

/* Import Page */
.import-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.import-info-box h5 {
    color: #c2410c;
    font-weight: 700;
    margin-bottom: 12px;
}

.import-info-box ul {
    margin-bottom: 16px;
    padding-left: 20px;
    color: #475569;
}

.import-info-box li { margin-bottom: 6px; }

.import-form {
    max-width: 560px;
}

.import-fields-preview h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.import-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.import-field-tag {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.status-pending { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.status-process { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-completed { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-closed { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.status-hold { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Recovery amount entries */
.recovery-amount-add-form {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px;
}

.recovery-amount-table tbody tr:hover {
    background: #f8fafc;
}

.amount-entry-view {
    border-bottom: 1px solid #f1f5f9;
}

.amount-entry-edit {
    background: #fffbeb;
    border-radius: 8px;
}

/* Pagination */
.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 36px;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.pagination-link:hover {
    border-color: #c2410c;
    color: #c2410c;
}

.pagination-link.active {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border-color: transparent;
    color: #fff;
}

.pagination-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 4px;
    color: #94a3b8;
}

