/* assets/style.css - Modern, responsive styles for Loans Website */

:root {
    --theme-bg: #f8f5ff;
    --theme-text: #3f2a6f;
    --theme-primary: #6a1b9a;
    --theme-primary-dark: #4a148c;
    --theme-primary-soft: #efe7fb;
    --theme-secondary: #8e24aa;
    --theme-accent: #ff6f00;
    --theme-accent-soft: #fff0dc;
    --theme-white: #ffffff;
    --theme-shadow: rgba(74, 20, 140, 0.12);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--theme-bg);
    color: var(--theme-text);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}


.navbar {
    background: linear-gradient(90deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
}


.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 1px;
}

.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 14px 28px var(--theme-shadow);
}

.dropdown-item {
    font-weight: 600;
}


.hero {
    background: linear-gradient(120deg, rgba(106, 27, 154, 0.9) 58%, rgba(255, 111, 0, 0.82) 100%),
        url('https://images.unsplash.com/photo-1519125323398-675f0ddb6308?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: #fff;
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 20px;
}


.section {
    padding: 60px 0;
}

.section-soft {
    background: linear-gradient(180deg, var(--theme-primary-soft) 0%, var(--theme-white) 100%);
}

.section-title {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--theme-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(74, 20, 140, 0.08);
    transition: box-shadow 0.2s, border 0.2s;
    border-top: 4px solid var(--theme-primary);
}

.info-card {
    padding: 28px;
    height: 100%;
    background: #fff;
}

.info-card h3,
.info-card h5 {
    margin-bottom: 14px;
}

.page-hero {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-secondary) 58%, #ff8f00 100%);
    color: #fff;
    padding: 72px 0 56px;
}

.page-hero p {
    max-width: 760px;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.metric-item {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.metric-item strong {
    display: block;
    font-size: 1.25rem;
    color: #ffe0b2;
}

.feature-list,
.check-list,
.faq-list {
    padding-left: 1.1rem;
}

.feature-list li,
.check-list li,
.faq-list li {
    margin-bottom: 12px;
}

.link-card {
    display: block;
    padding: 24px;
    border-radius: 18px;
    background: var(--theme-white);
    color: var(--theme-text);
    border: 1px solid rgba(106, 27, 154, 0.12);
    box-shadow: 0 10px 24px rgba(106, 27, 154, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(106, 27, 154, 0.14);
}

.link-card .small-link {
    color: var(--theme-accent);
    font-weight: 700;
}

.timeline-step {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    background: var(--theme-white);
    height: 100%;
    border: 1px solid rgba(106, 27, 154, 0.14);
}

.timeline-step span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--theme-accent-soft);
    color: var(--theme-primary-dark);
    font-weight: 700;
}

.cta-panel {
    border-radius: 24px;
    padding: 36px;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.08) 0%, var(--theme-accent-soft) 100%);
    box-shadow: 0 16px 36px rgba(106, 27, 154, 0.08);
}

.contact-panel {
    padding: 28px;
    border-radius: 18px;
    background: var(--theme-white);
    box-shadow: 0 10px 28px var(--theme-shadow);
    height: 100%;
}

.emi-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.emi-result-item {
    padding: 16px;
    border-radius: 14px;
    background: #f7f1ff;
    border: 1px solid rgba(106, 27, 154, 0.12);
}

.emi-result-item span {
    display: block;
    font-size: 0.82rem;
    color: #6f6190;
    margin-bottom: 6px;
}

.emi-result-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--theme-primary-dark);
}

.emi-summary {
    color: #6f6190;
}

.admin-shell {
    min-height: calc(100vh - 220px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 22px;
    border-radius: 18px;
    background: var(--theme-white);
    box-shadow: 0 10px 28px var(--theme-shadow);
    border-top: 4px solid var(--theme-accent);
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--theme-primary-dark);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-table-wrap {
    background: var(--theme-white);
    border-radius: 20px;
    box-shadow: 0 12px 30px var(--theme-shadow);
    overflow: hidden;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    background: var(--theme-primary-dark);
    color: #fff;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: top;
    font-size: 0.95rem;
}

.admin-empty {
    padding: 42px 28px;
    text-align: center;
    color: #6f6190;
}

.admin-filter-form .form-control,
.admin-filter-form .form-select {
    min-height: 48px;
}

.admin-actions {
    min-width: 120px;
}

.btn-danger {
    background: #c62828;
    border: none;
    border-radius: 24px;
    color: #fff;
    font-weight: 700;
}

.btn-danger:hover {
    background: #8e1e1e;
    color: #fff;
}

.mono-small {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.88rem;
}

.card:hover {
    box-shadow: 0 6px 32px rgba(255,111,0,0.16);
    border-top: 4px solid var(--theme-accent);
}


.btn-primary {
    background: var(--theme-accent);
    border: none;
    border-radius: 24px;
    padding: 10px 32px;
    font-weight: 700;
    color: #fff;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(255,111,0,0.08);
}

.btn-primary:hover {
    background: var(--theme-primary);
    color: #fff;
}

.btn-outline-primary {
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
    background: var(--theme-white);
    border-radius: 24px;
    padding: 10px 32px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-primary:hover {
    background: var(--theme-primary);
    color: #fff;
}


.footer {
    background: linear-gradient(180deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
    color: #fff;
    padding: 24px 0;
    text-align: center;
    margin-top: 40px;
}

.footer h5,
.footer h6 {
    color: #fff;
}

.footer-copy,
.footer-note {
    color: rgba(255, 255, 255, 0.84);
}

.footer-links li + li {
    margin-top: 10px;
}

.footer-links a {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}


/* Highlight Badges and Accents */
.badge.bg-success {
    background: #ff9800 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    padding: 10px 18px;
}

/* Accordion and Card Accent */
.accordion-button:not(.collapsed) {
    background: var(--theme-accent-soft);
    color: var(--theme-primary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .page-hero {
        padding: 54px 0 40px;
    }

    .metric-strip {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .emi-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 32px 0;
    }
}

@media (max-width: 576px) {
    .metric-strip {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .emi-result-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel,
    .contact-panel,
    .info-card,
    .timeline-step,
    .link-card {
        padding: 22px;
    }
}
