/* RentCircle - Fintech UI (Monzo/Revolut inspired) */

:root {
    /* Custom Variables */
    --rc-primary: #1E3A8A;
    /* Royal Blue */
    --rc-primary-dark: #1e3a8a;
    --rc-accent: #10B981;
    /* Emerald */
    --rc-body-bg: #F8FAFC;
    /* Light Grey */
    --rc-text: #1F2937;
    /* Dark Slate */
    --rc-warning: #EF4444;
    /* Red */
    --rc-card-bg: #FFFFFF;
    --rc-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --rc-border-radius: 12px;

    /* Bootstrap Overrides */
    --bs-primary: #1E3A8A;
    --bs-primary-rgb: 30, 58, 138;
    --bs-success: #10B981;
    --bs-success-rgb: 16, 185, 129;
    --bs-danger: #EF4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-body-bg: #F8FAFC;
    --bs-body-color: #1F2937;
    --bs-link-color: #1E3A8A;
    --bs-link-hover-color: #1e3a8a;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-bottom: 90px;
    /* Ensure content clears bottom nav */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #111827;
}

.navbar-spacer {
    height: 56px;
}

/* Reduced mobile padding */
@media (max-width: 991.98px) {
    .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Bottom nav (mobile) */
.bottom-nav {
    padding: 0.5rem 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    z-index: 1040;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    color: #94a3b8;
    padding: 0.5rem 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.bottom-nav .nav-link:active {
    background-color: #f1f5f9;
}

.bottom-nav .nav-link i {
    font-size: 1.4rem;
    margin-bottom: 0.15rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav .nav-link:hover {
    color: var(--rc-primary);
}

.bottom-nav .nav-link.active {
    color: var(--rc-primary);
    font-weight: 600;
}

.bottom-nav .nav-link.active i {
    transform: translateY(-3px);
}

.bottom-nav-spacer {
    height: 80px;
}

/* Cards */
.card {
    background-color: var(--rc-card-bg);
    border: none;
    border-radius: var(--rc-border-radius);
    box-shadow: var(--rc-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Overview Cards */
.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--rc-primary);
    border-color: var(--rc-primary);
}

.btn-primary:hover {
    background-color: #172554;
    border-color: #172554;
}

/* Landing */
.hero-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

.features-section {
    padding: 4rem 0;
    background-color: #FFFFFF;
}

.pricing-section {
    padding: 4rem 0;
    background-color: #F8FAFC;
}

.pricing-card {
    border: 2px solid transparent;
}

.pricing-card.featured {
    border-color: var(--rc-primary);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--rc-accent);
    color: white;
    padding: 4px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Auth pages */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
}

/* Tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--rc-border-radius);
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

@media (min-width: 992px) {

    .bottom-nav,
    .bottom-nav-spacer {
        display: none !important;
    }

    .sidebar-desktop {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: 260px;
        padding: 2rem 1rem;
        box-shadow: 1px 0 0 rgba(0, 0, 0, 0.05);
        background-color: #FFFFFF;
        overflow-y: auto;
    }

    .sidebar-desktop .nav-link {
        color: #475569;
        font-weight: 500;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }

    .sidebar-desktop .nav-link:hover {
        background-color: #F1F5F9;
        color: var(--rc-primary);
    }

    .sidebar-desktop .nav-link.active {
        background-color: #EFF6FF;
        color: var(--rc-primary);
        font-weight: 600;
    }

    /* Push main content */
    main,
    .container {
        margin-left: 260px;
        max-width: calc(100% - 260px);
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .navbar-toggler {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}