/* ============================================================
   FinSight - Custom Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Variabel Warna */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.1);
    --radius: 16px;
}

/* Reset & Base */
* {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../images/finance-bg.jpg'); /* Ganti dengan path gambar Anda */
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 24px;
    padding: 80px 40px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Overlay gradient agar teks mudah dibaca */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgba(6, 182, 212, 0.85) 100%);
    z-index: 1;
}

/* Animasi lingkaran mengambang */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.btn-hero {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}
.btn-hero-primary {
    background: white;
    color: var(--primary);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-hero-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.feature-icon {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Steps */
.step-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Metric Cards */
.metric-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 5px solid var(--primary);
}
.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.progress {
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
}
.progress-bar {
    border-radius: 10px;
}

/* Gauge */
.score-gauge {
    width: 180px;
    height: 180px;
}

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    font-weight: 600;
    color: #64748b;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
}
.nav-tabs .nav-link.active {
    background: white;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* Form */
.border-dashed {
    border: 2px dashed #cbd5e1 !important;
    background: #f1f5f9;
    transition: all 0.3s;
}
.border-dashed:hover {
    border-color: var(--primary) !important;
    background: #f8fafc;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}
.footer a {
    color: #94a3b8;
    text-decoration: none;
}
.footer a:hover {
    color: white;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ============================================================
   TAMBAHAN WARNA UNTUK ANOMALI
   ============================================================ */
.alert-merah {
    background-color: #ffcccc;
    border-color: #ff6666;
    color: #990000;
}
.alert-oranye {
    background-color: #ffe0b2;
    border-color: #ff9800;
    color: #e65100;
}
.alert-kuning {
    background-color: #FFDF00;
    border-color: #fbc02d;
    color: #827717;
}

/* Perbaikan kecil untuk alert Bootstrap */
.alert {
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.alert strong {
    display: inline-block;
    margin-bottom: 0.25rem;
}