/* ============================================
   BorroBridge - Custom Stylesheet
   File: assets/css/style.css
   ============================================ */

/* --- Root Variables --- */
:root {
    --bb-primary: #0d6efd;
    --bb-warning: #ffc107;
    --bb-dark: #1a1a2e;
    --bb-radius: 12px;
    --bb-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- Base --- */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* --- Navbar --- */
.navbar-brand {
    letter-spacing: -0.5px;
}

/* --- Hero Section (Homepage) --- */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 16px;
}

/* --- Product Cards --- */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: var(--bb-radius);
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
}

.product-card .card-body {
    padding: 16px;
}

.weekly-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--bb-primary);
}

.weekly-price span {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
}

.retail-price {
    font-size: 13px;
    color: #6c757d;
    text-decoration: line-through;
}

/* --- Category Badges --- */
.category-badge {
    background: #e7f1ff;
    color: var(--bb-primary);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
}

/* --- Feature Cards (How it works) --- */
.feature-card {
    background: white;
    border-radius: var(--bb-radius);
    padding: 30px 24px;
    border: 1px solid #e9ecef;
    height: 100%;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #e7f1ff;
    color: var(--bb-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

/* --- Lease Calculator Widget --- */
.calc-card {
    background: white;
    border-radius: var(--bb-radius);
    padding: 28px;
    border: 1px solid #e9ecef;
    box-shadow: var(--bb-shadow);
}

.calc-result {
    background: #e7f1ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.calc-result .big-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--bb-primary);
}

/* --- Apply Form --- */
.apply-form {
    background: white;
    border-radius: var(--bb-radius);
    padding: 36px;
    box-shadow: var(--bb-shadow);
    border: 1px solid #e9ecef;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-dot.active {
    background: var(--bb-primary);
    border-color: var(--bb-primary);
    color: white;
}

.step-dot.done {
    background: #198754;
    border-color: #198754;
    color: white;
}

/* --- Dashboard --- */
.stat-card {
    background: white;
    border-radius: var(--bb-radius);
    padding: 20px 24px;
    border: 1px solid #e9ecef;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

/* --- Lease Status Badges --- */
.status-active   { background: #d1e7dd; color: #0f5132; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-pending  { background: #fff3cd; color: #664d03; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-overdue  { background: #f8d7da; color: #842029; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-complete { background: #cff4fc; color: #055160; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }

/* --- Admin Sidebar --- */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--bb-dark);
    padding: 24px 0;
    position: fixed;
    left: 0;
    top: 0;
}

.admin-sidebar .brand {
    color: var(--bb-warning);
    font-size: 20px;
    font-weight: 700;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
}

/* --- Tables --- */
.bb-table {
    background: white;
    border-radius: var(--bb-radius);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.bb-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
}

.bb-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

/* --- Form Inputs --- */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* --- Buttons --- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-primary {
    background: var(--bb-primary);
    border-color: var(--bb-primary);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }

/* --- Section Headings --- */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
}

.section-sub {
    color: #6c757d;
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Trust bar --- */
.trust-bar {
    background: white;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section { padding: 50px 0; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; padding: 16px; }
    .section-title { font-size: 24px; }
}