/* ============================================
   QRCASH.NET V2 - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --accent: #00c853;
    --accent-dark: #00a844;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --white: #ffffff;
    --warning: #ffc107;
    --danger: #dc3545;
    --success: #198754;
    --info: #0dcaf0;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---- NAVBAR ---- */
.navbar-qrcash {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-qrcash .navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.navbar-qrcash .navbar-brand span { color: var(--accent); }
.navbar-qrcash .nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 8px 16px !important;
    font-size: 15px;
}
.navbar-qrcash .nav-link:hover { color: var(--primary); }

/* ---- HERO SECTION ---- */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,200,83,0.15) 0%, transparent 70%);
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}
.hero-section h1 .text-accent { color: var(--accent); }
.hero-section p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* ---- BUTTONS ---- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: 10px 24px; transition: var(--transition); font-size: 15px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); border: none; color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---- CARDS ---- */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }

/* ---- STAT CARDS ---- */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { font-size: 13px; color: var(--secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- SECTION ---- */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-title p { color: var(--secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---- HOW IT WORKS ---- */
.step-card {
    text-align: center;
    padding: 30px 20px;
}
.step-card .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}
.step-card h4 { margin-bottom: 10px; }
.step-card p { color: var(--secondary); font-size: 14px; }

/* ---- FEATURES ---- */
.feature-item {
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}
.feature-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* ---- CAMPAIGN CARD ---- */
.campaign-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 24px;
}
.campaign-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.campaign-card .campaign-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    position: relative;
}
.campaign-card .campaign-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.campaign-card .campaign-body { padding: 20px; }
.campaign-card .campaign-brand { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.campaign-card .campaign-title { font-size: 1.1rem; font-weight: 700; margin: 6px 0 10px; }
.campaign-card .campaign-rate {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}
.campaign-card .campaign-meta { font-size: 13px; color: var(--secondary); }

/* ---- SIDEBAR ---- */
.sidebar {
    background: var(--dark);
    height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar .sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar .sidebar-brand a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}
.sidebar .sidebar-brand span { color: var(--accent); }
.sidebar .nav-item { margin: 2px 12px; }
.sidebar .nav-link {
    color: rgba(255,255,255,0.6);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.sidebar .nav-link i { width: 20px; text-align: center; font-size: 16px; }
.sidebar .sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 12px 24px;
}
.sidebar .sidebar-heading {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px 6px;
    font-weight: 600;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f0f2f5;
}
.main-content .topbar {
    background: var(--white);
    padding: 12px 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}
.main-content .content-wrapper { padding: 30px; }
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 1.6rem; font-weight: 700; }

/* ---- TABLES ---- */
.table-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table { margin: 0; font-size: 14px; }
.table th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
    padding: 14px 16px;
}
.table td { padding: 14px 16px; vertical-align: middle; }

/* ---- BADGES ---- */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-active { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-paused { background: #cce5ff; color: #004085; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-completed { background: #e2e3e5; color: #383d41; }

/* ---- FORMS ---- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    padding: 10px 16px;
    font-size: 15px;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}
.form-label { font-weight: 600; font-size: 14px; color: var(--dark); margin-bottom: 6px; }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer h5 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 14px;
}

/* ---- QR CODE DISPLAY ---- */
.qr-display {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.qr-display img {
    max-width: 250px;
    border: 3px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

/* ---- PROOF UPLOAD ---- */
.proof-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.proof-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}
.proof-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hero-section h1 { font-size: 2rem; }
    h1 { font-size: 1.8rem; }
}
@media (max-width: 576px) {
    .hero-section { padding: 60px 0 40px; }
    .stat-card .stat-value { font-size: 1.4rem; }
    .section-padding { padding: 50px 0; }
    .main-content .content-wrapper { padding: 16px; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ---- UTILITY ---- */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.fw-800 { font-weight: 800; }
.gap-3 { gap: 1rem; }
.rounded-lg { border-radius: var(--radius); }