/* BPRO Website - Main Stylesheet */
/* Theme: Apna Web brand color system */

:root {
    --primary-color:   #1A3A8F;   /* Apna Web navy */
    --secondary-color: #132d72;   /* Navy hover */
    --accent-color:    #00B4D8;   /* Apna Web cyan */
    --orange-color:    #0096C7;   /* Medium blue */
    --light-color:     #F0F6FF;   /* Light ice blue bg */
    --dark-color:      #1A1A2E;   /* Dark navy text */
    --success-color:   #22c55e;
    --warning-color:   #f59e0b;
    --danger-color:    #ef4444;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --gray-light:    #f0f6ff;
    --gray-medium:   #6b89b8;     /* Muted blue */
    --gray-dark:     #2d4a7a;
    --border-radius: 10px;
    --box-shadow:    0 0 6px 1px rgba(0,0,0,.07);
    --transition:    all 0.25s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Container */
.container-fluid {
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.text-muted {
    color: var(--gray-medium) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-menu {
    padding: 20px 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: var(--transition);
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
}

.sidebar-menu a i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .sidebar-menu span {
    display: none;
}

.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: var(--transition);
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Header */
.main-header {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px 25px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.page-header p {
    color: var(--gray-medium);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Cards */
.dashboard-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-icon.primary {
    background-color: rgba(26, 58, 143, 0.1);
    color: var(--primary-color);
}

.card-icon.success {
    background-color: rgba(75, 181, 67, 0.1);
    color: var(--success-color);
}

.card-icon.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.card-icon.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Form Cards */
.form-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

/* Chart Container */
.chart-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

/* Activity */
.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.activity-icon.primary {
    background-color: var(--primary-color);
}

.activity-icon.success {
    background-color: var(--success-color);
}

.activity-icon.warning {
    background-color: var(--warning-color);
}

/* Buttons */
.btn-bpro {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-bpro:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.2);
}

.btn-bpro-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-bpro-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 58, 143, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* Toggle Button */
.sidebar-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: rgba(26, 58, 143, 0.1);
}

/* Tables */
.table-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.table th {
    font-weight: 600;
    border-top: none;
    color: var(--gray-dark);
}

.table td {
    vertical-align: middle;
}

/* Business Preview */
.business-preview-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.business-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.business-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.business-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    bottom: -40px;
    left: 30px;
    border: 4px solid white;
    background-color: white;
    overflow: hidden;
}

/* Contact Details */
.contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.contact-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fb 0%, #e4e8f7 100%);
    padding: 20px;
}

.auth-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-body {
    padding: 30px;
}

.auth-footer {
    padding: 20px 30px;
    background-color: var(--gray-light);
    text-align: center;
    border-top: 1px solid #eee;
}

/* About Us */
.about-section {
    padding: 60px 0;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(26, 58, 143, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* ─────────────────────────────────────────
   Sidebar overlay (mobile)
───────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
    display: block;
}

/* ─────────────────────────────────────────
   Responsive Styles
───────────────────────────────────────── */

/* ── Tablet & small desktop (≤992px) ── */
@media (max-width: 992px) {
    /* Sidebar */
    .sidebar {
        margin-left: -260px;
        z-index: 1050;
    }
    .sidebar.mobile-open {
        margin-left: 0;
    }

    /* Main content */
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .main-content.mobile-expanded {
        margin-left: 0;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Form card */
    .form-card { padding: 20px; }

    /* Landing page hero */
    .landing-header {
        padding: 80px 0 60px;
    }

    /* Stats */
    .stat-number { font-size: 2rem; }

    /* Sections */
    .features-section { padding: 60px 0; }
    .cta-section       { padding: 60px 0; }
    .stats-section     { padding: 50px 0; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    /* Dashboard header row */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .user-profile { margin-top: 0; }

    /* Auth */
    .auth-card { max-width: 100%; }

    /* Landing hero */
    .landing-header { padding: 70px 0 50px; }
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    /* Stats */
    .stat-number { font-size: 1.8rem; }

    /* Testimonial cards full width */
    .testimonial-card { margin: 10px 0; }

    /* Tables scroll */
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* Cards */
    .dashboard-card { margin-bottom: 15px; }

    /* Feature icon smaller */
    .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* ── Small mobile (≤576px) ── */
@media (max-width: 576px) {
    .main-content { padding: 10px; }
    .page-header h1 { font-size: 1.5rem; }
    .form-card { padding: 15px; }

    /* Landing */
    .landing-header { padding: 60px 0 40px; }
    .landing-header h1 { font-size: 1.75rem; }
    .stat-number { font-size: 1.5rem; }
    .features-section { padding: 40px 0; }
    .cta-section { padding: 40px 0; }
    .stats-section { padding: 30px 0; }

    /* Auth card padding */
    .auth-body { padding: 20px 15px; }
    .auth-header { padding: 20px 15px; }

    /* Nav buttons stacked */
    .navbar-nav .btn { width: 100%; margin: 4px 0; }

    /* Sidebar header */
    .sidebar-header h3 { font-size: 1.2rem; }
}
}