/* ============================================================
 * Custom CSS — Beego Master Project
 * File ini adalah satu-satunya custom CSS yang diizinkan.
 * Untuk page normal (layout _base.html), WAJIB pakai Metronic classes.
 * Custom CSS hanya untuk halaman STANDALONE (login, dll).
 * ============================================================ */

/* ============================================================
 * Auth / Login Page
 * ============================================================ */
.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #071437;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.login-logo .brand {
    font-size: 26px;
    font-weight: 800;
    color: #071437;
    text-decoration: none;
}
.login-logo p {
    font-size: 13px;
    color: #99A1B7;
    margin: 6px 0 0;
}
.login-title {
    text-align: center;
    margin-bottom: 24px;
}
.login-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #071437;
    margin: 0 0 4px;
}
.login-title p {
    font-size: 13px;
    color: #99A1B7;
    margin: 0;
}
.login-input {
    position: relative;
    margin-bottom: 16px;
}
.login-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #B5B5C3;
    font-size: 18px;
}
.login-input input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid #E1E3EA;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border .2s;
    background: #FAFAFA;
    box-sizing: border-box;
}
.login-input input:focus {
    border-color: #1B84FF;
    background: #fff;
}
.login-input input::placeholder {
    color: #B5B5C3;
}
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #071437;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.login-btn:hover { background: #1B2559; }
.login-btn:active { transform: scale(.99); }
.login-btn.loading { opacity: .7; pointer-events: none; }
.login-error {
    background: #FFF5F8;
    border: 1px solid #F1416C;
    color: #F1416C;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
.login-success {
    background: #E8FFF3;
    border: 1px solid #17C653;
    color: #0BB746;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #99A1B7;
}
.login-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
}
.login-links a { color: #B5B5C3; text-decoration: none; }
.login-links a:hover { color: #1B84FF; }
.login-copy {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: #B5B5C3;
}

/* ============================================================
 * Sidebar Layout (Halaman Standalone dengan sidebar)
 * ============================================================ */
.billing-sidebar { width: 250px; min-height: 100vh; position: fixed; left: 0; top: 0; z-index: 50; }
.billing-main { margin-left: 250px; min-height: 100vh; }
@media (max-width: 991px) {
    .billing-sidebar { display: none !important; }
    .billing-sidebar.show { display: flex !important; }
    .billing-main { margin-left: 0; }
}

/* ============================================================
 * Setup page background
 * ============================================================ */
.setup-bg body { background-image: url('/static/img/bg.jpg'); }
[data-bs-theme="dark"] .setup-bg body { background-image: url('/static/img/bg.jpg'); }

/* ============================================================
 * Page Loader (dipakai oleh _base.html)
 * ============================================================ */
#loader {
    z-index: 999999;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/static/metronic/dist/assets/media/loader/Hourglass.gif) 50% 50% no-repeat #fff;
}

/* ============================================================
 * Landing Page (home.html - standalone, tidak pakai _base.html)
 * ============================================================ */
.landing-body { font-family: var(--bs-font-sans-serif); color: #1a1a2e; background: #fff; overflow-x: hidden; }
.landing-body a { text-decoration: none; color: inherit; }

/* Navbar */
.lp-navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all 0.3s; }
.lp-navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.lp-navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.lp-logo { display: flex; align-items: center; gap: 10px; }
.lp-logo img { height: 36px; border-radius: 8px; }
.lp-logo span { font-weight: 800; font-size: 1.3rem; color: #fff; }
.lp-navbar.scrolled .lp-logo span { color: #0a2647; }
.lp-nav-links { display: flex; align-items: center; gap: 24px; }
.lp-nav-links a { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.lp-navbar.scrolled .lp-nav-links a { color: #555; }
.lp-nav-links a:hover { color: #fff; }
.lp-navbar.scrolled .lp-nav-links a:hover { color: #0a2647; }
.lp-btn-login { padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 2px solid rgba(255,255,255,0.3); color: #fff; transition: all 0.2s; }
.lp-btn-login:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.lp-navbar.scrolled .lp-btn-login { border-color: #0d6d7d; color: #0d6d7d; }
.lp-navbar.scrolled .lp-btn-login:hover { background: #0d6d7d; color: #fff; }

/* Hero */
.lp-hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #0a2647 0%, #144272 35%, #0d6d7d 70%, #0a9396 100%); position: relative; overflow: hidden; }
.lp-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(13,109,125,0.3) 0%, transparent 70%); }
.lp-hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(10,147,150,0.2) 0%, transparent 70%); }
.lp-hero-inner { max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; width: 100%; }
.lp-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 6px 16px; color: #2dd4bf; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(10px); }
.lp-hero-badge::before { content: ''; width: 8px; height: 8px; background: #2dd4bf; border-radius: 50%; animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.lp-hero h1 { font-size: 3.2rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.lp-hero h1 .lp-accent { background: linear-gradient(135deg, #2dd4bf, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lp-hero p { color: rgba(255,255,255,0.7); font-size: 1.15rem; line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.lp-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: linear-gradient(135deg, #0d9488, #0d6d7d); color: #fff; border-radius: 10px; font-weight: 700; font-size: 1rem; transition: all 0.3s; border: none; cursor: pointer; }
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(13,109,125,0.4); }
.lp-btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border: 2px solid rgba(255,255,255,0.25); color: #fff; border-radius: 10px; font-weight: 600; font-size: 1rem; transition: all 0.3s; }
.lp-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Stats Panel */
.lp-stats-panel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 28px; backdrop-filter: blur(20px); }
.lp-stats-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.lp-stats-header .lp-dot { width: 8px; height: 8px; background: #2dd4bf; border-radius: 50%; }
.lp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-stat-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; text-align: center; transition: all 0.3s; }
.lp-stat-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.lp-stat-value { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.lp-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 6px; font-weight: 500; }

/* Landing Sections */
.lp-section { padding: 100px 24px; }
.lp-container { max-width: 1200px; margin: 0 auto; }
.lp-section-title { text-align: center; margin-bottom: 60px; }
.lp-section-title h2 { font-size: 2.4rem; font-weight: 800; color: #0a2647; margin-bottom: 16px; }
.lp-section-title p { color: #6b7280; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.lp-section-title .lp-highlight { color: #0d6d7d; }

/* Pain Cards */
.lp-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-pain-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 36px; text-align: center; transition: all 0.3s; }
.lp-pain-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: transparent; }
.lp-pain-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.lp-pain-icon-time { background: #fef2f2; }
.lp-pain-icon-search { background: #fef9c3; }
.lp-pain-icon-blind { background: #ede9fe; }
.lp-pain-icon-inner { font-size: 28px; }
.lp-pain-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.lp-pain-card p { color: #6b7280; font-size: 0.95rem; line-height: 1.6; }

/* Feature Cards */
.lp-features-section { background: linear-gradient(180deg, #f8fafb 0%, #fff 100%); }
.lp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-feature-card { display: flex; align-items: flex-start; gap: 16px; padding: 28px; border-radius: 16px; transition: all 0.3s; background: #fff; border: 1px solid #f0f0f0; }
.lp-feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.lp-feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; }
.lp-feature-icon-blue { background: #dbeafe; color: #2563eb; }
.lp-feature-icon-green { background: #d1fae5; color: #059669; }
.lp-feature-icon-yellow { background: #fef3c7; color: #d97706; }
.lp-feature-icon-pink { background: #fce7f3; color: #db2777; }
.lp-feature-icon-sky { background: #e0f2fe; color: #0284c7; }
.lp-feature-icon-purple { background: #f3e8ff; color: #7c3aed; }
.lp-feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.lp-feature-card p { color: #6b7280; font-size: 0.88rem; line-height: 1.5; }

/* Dual CTA */
.lp-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lp-dual-card { border-radius: 20px; padding: 48px; position: relative; overflow: hidden; }
.lp-dual-card-vendor { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.lp-dual-card-gov { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.lp-dual-badge { display: inline-block; padding: 4px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; }
.lp-dual-badge-vendor { background: #059669; color: #fff; }
.lp-dual-badge-gov { background: #2563eb; color: #fff; }
.lp-dual-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.lp-dual-card ul { list-style: none; margin-bottom: 28px; padding: 0; }
.lp-dual-card li { padding: 6px 0; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.lp-dual-card li::before { content: '\2713'; color: #0d9488; font-weight: 700; }
.lp-btn-cta { display: inline-flex; padding: 12px 28px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; transition: all 0.3s; }
.lp-btn-cta:hover { transform: translateY(-2px); }
.lp-btn-cta-vendor { background: #059669; color: #fff; }
.lp-btn-cta-gov { background: #2563eb; color: #fff; }

/* Final CTA */
.lp-final-cta { background: linear-gradient(135deg, #0a2647, #144272, #0d6d7d); text-align: center; padding: 100px 24px; }
.lp-final-cta h2 { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.lp-final-cta p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 550px; margin: 0 auto 32px; }
.lp-final-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lp-final-cta-note { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-top: 20px; }
.lp-final-cta-note a { color: #2dd4bf; font-weight: 600; }

/* Footer */
.lp-footer { background: #0a2647; padding: 40px 24px; }
.lp-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.lp-footer-links { display: flex; gap: 24px; }
.lp-footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.lp-footer-copy a { color: rgba(255,255,255,0.6); }

/* Responsive Landing */
@media (max-width: 768px) {
    .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; }
    .lp-hero h1 { font-size: 2.2rem; }
    .lp-pain-grid, .lp-features-grid { grid-template-columns: 1fr; }
    .lp-dual-grid { grid-template-columns: 1fr; }
    .lp-nav-links { display: none; }
}

/* ============================================================
 * Chart containers (diizinkan karena height perlu dinamis via JS)
 * ============================================================ */
.chart-container-350 { height: 350px; }
.chart-container-400 { height: 400px; }
.chart-container-450 { height: 450px; }

/* ============================================================
 * index.html - hero gradient dan komponen
 * ============================================================ */
.hero-gradient { background: linear-gradient(135deg, #0a2647 0%, #144272 40%, #0d6d7d 100%); }
.hero-gradient h1, .hero-gradient p { color: #fff; }
.hero-stat-card { transition: transform 0.2s; border: none; }
.hero-stat-card:hover { transform: translateY(-4px); }
.hero-stat-number { font-size: 2.2rem; font-weight: 800; }
.hero-feature-icon { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hero-step-number { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.hero-cta-section { background: linear-gradient(135deg, #144272 0%, #0d6d7d 100%); border-radius: 16px; }
.hero-accent-text { color: #2dd4bf; }
.hero-outline-btn { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero-outline-btn:hover { color: #fff; border-color: #fff; }
.hero-cta-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-cta-outline:hover { color: #fff; }
.hero-card-vendor { background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); }
.hero-card-gov { background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%); }
@keyframes lp-countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: lp-countUp 0.6s ease-out forwards; }

/* ============================================================
 * Setting page - AI context preview
 * ============================================================ */
.ai-context-preview { white-space: pre-wrap; font-size: 12px; font-family: 'Courier New', monospace; }
.ai-prompt-preview { white-space: pre-wrap; font-size: 11px; }

/* ============================================================
 * Dropdown align fix (dtable-btn)
 * ============================================================ */
.dtable-dropdown-right { display: flex; justify-content: flex-end; }
