/**
 * GRAPHIC VIEW — Master Design System Stylesheet
 * Brand Direction: Dark Navy Blue (#0B1B3D), Bright Lime Green (#10B981, #22C55E), Crisp White
 * Mobile-First SaaS Layout, Elevated Cards, Bottom Navigation, Touch Targets
 * Developed by: Web Era Solutions | Made with ❤️ by Web Era Solutions
 */

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

:root {
    --gv-navy-dark: #0B1B3D;
    --gv-navy-surface: #0F224A;
    --gv-navy-card: #152A58;
    --gv-green-lime: #10B981;
    --gv-green-accent: #22C55E;
    --gv-green-tint: rgba(16, 185, 129, 0.12);
    --gv-green-glow: rgba(16, 185, 129, 0.25);
    
    --gv-bg-body: #F8FAFC;
    --gv-bg-card: #FFFFFF;
    --gv-border: #E2E8F0;
    --gv-border-light: #F1F5F9;
    
    --gv-text-main: #0F172A;
    --gv-text-muted: #64748B;
    --gv-text-light: #94A3B8;
    
    --gv-radius-sm: 8px;
    --gv-radius-md: 14px;
    --gv-radius-lg: 20px;
    --gv-radius-pill: 9999px;
    
    --gv-shadow-sm: 0 1px 3px rgba(11, 27, 61, 0.05);
    --gv-shadow-md: 0 4px 16px -2px rgba(11, 27, 61, 0.07);
    --gv-shadow-lg: 0 12px 32px -4px rgba(11, 27, 61, 0.12);
    --gv-shadow-green: 0 8px 24px -4px rgba(16, 185, 129, 0.35);

    --gv-sidebar-width: 260px;
    --gv-header-height: 70px;
}

/* Base Setup */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gv-bg-body);
    color: var(--gv-text-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    color: var(--gv-navy-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--gv-green-lime);
}

/* Buttons */
.btn-gv-primary {
    background: linear-gradient(135deg, var(--gv-green-lime) 0%, var(--gv-green-accent) 100%);
    color: #FFFFFF !important;
    border: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--gv-radius-pill);
    box-shadow: var(--gv-shadow-green);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-gv-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.45);
    color: #FFFFFF !important;
}

.btn-gv-navy {
    background-color: var(--gv-navy-dark);
    color: #FFFFFF !important;
    border: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--gv-radius-pill);
    box-shadow: var(--gv-shadow-md);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-gv-navy:hover {
    background-color: var(--gv-navy-surface);
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

.btn-gv-outline {
    background-color: transparent;
    color: var(--gv-navy-dark);
    border: 1.5px solid var(--gv-border);
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--gv-radius-pill);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-gv-outline:hover {
    border-color: var(--gv-green-lime);
    color: var(--gv-green-lime);
    background-color: var(--gv-green-tint);
}

/* Cards */
.gv-card {
    background: var(--gv-bg-card);
    border-radius: var(--gv-radius-lg);
    border: 1px solid var(--gv-border);
    box-shadow: var(--gv-shadow-sm);
    padding: 24px;
    transition: all 0.25s ease;
    position: relative;
}
.gv-card:hover {
    box-shadow: var(--gv-shadow-md);
    border-color: #CBD5E1;
}

/* Layout: Dashboard Sidebar & Main Area */
.gv-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.gv-sidebar {
    width: var(--gv-sidebar-width);
    background-color: #FFFFFF;
    border-right: 1px solid var(--gv-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gv-sidebar-brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gv-border-light);
}

.gv-sidebar-brand .logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gv-navy-dark) 0%, var(--gv-navy-surface) 100%);
    color: var(--gv-green-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: var(--gv-shadow-sm);
}

.gv-nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gv-text-light);
    padding: 16px 24px 6px;
}

.gv-nav-list {
    list-style: none;
    padding: 0 12px;
    margin: 0;
    flex-grow: 1;
}

.gv-nav-item {
    margin-bottom: 3px;
}

.gv-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--gv-radius-md);
    color: var(--gv-text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gv-nav-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.gv-nav-link:hover {
    color: var(--gv-navy-dark);
    background-color: #F1F5F9;
}

.gv-nav-link.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--gv-navy-dark) 0%, var(--gv-navy-surface) 100%);
    box-shadow: 0 4px 12px rgba(11, 27, 61, 0.15);
}

.gv-nav-link.active i {
    color: var(--gv-green-lime);
}

.gv-main-content {
    margin-left: var(--gv-sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--gv-bg-body);
    transition: margin 0.3s ease;
}

.gv-topbar {
    height: var(--gv-header-height);
    background: #FFFFFF;
    border-bottom: 1px solid var(--gv-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 990;
}

.gv-content-body {
    padding: 32px;
    flex-grow: 1;
}

/* Usage Meter Component */
.gv-usage-meter {
    background: #FFFFFF;
    border: 1px solid var(--gv-border);
    border-radius: var(--gv-radius-md);
    padding: 14px 18px;
    margin-bottom: 12px;
}
.gv-usage-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--gv-text-muted);
    margin-bottom: 6px;
}
.gv-usage-progress {
    height: 8px;
    border-radius: var(--gv-radius-pill);
    background-color: #E2E8F0;
    overflow: hidden;
}
.gv-usage-bar {
    height: 100%;
    border-radius: var(--gv-radius-pill);
    background: linear-gradient(90deg, var(--gv-green-lime), var(--gv-green-accent));
    transition: width 0.4s ease;
}
.gv-usage-bar.danger {
    background: #EF4444;
}

/* Storefront Mobile First UI (REF-003, REF-006, REF-007) */
.gv-store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.gv-store-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--gv-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.gv-category-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--gv-radius-md);
    background: #FFFFFF;
    border: 1px solid var(--gv-border);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 76px;
}
.gv-category-pill.active, .gv-category-pill:hover {
    border-color: var(--gv-green-lime);
    background-color: var(--gv-green-tint);
    color: var(--gv-navy-dark);
}
.gv-category-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--gv-radius-pill);
    background-color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--gv-navy-dark);
}
.gv-category-pill.active .gv-category-icon {
    background-color: var(--gv-green-lime);
    color: #FFFFFF;
}

/* Product Card */
.gv-product-card {
    background: #FFFFFF;
    border-radius: var(--gv-radius-lg);
    border: 1px solid var(--gv-border);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.gv-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gv-shadow-md);
    border-color: #CBD5E1;
}
.gv-product-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #F8FAFC;
}
.gv-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gv-navy-dark);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--gv-radius-pill);
    letter-spacing: 0.05em;
    z-index: 2;
}
.gv-product-badge.sale {
    background: #EF4444;
}
.gv-product-badge.bestseller {
    background: #F59E0B;
}

/* Mobile Sticky Bottom Navigation Bar */
.gv-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #FFFFFF;
    border-top: 1px solid var(--gv-border);
    box-shadow: 0 -4px 16px rgba(11, 27, 61, 0.08);
    z-index: 1050;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.gv-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gv-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
}

.gv-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.gv-bottom-nav-item.active {
    color: var(--gv-green-lime);
}

.gv-bottom-nav-center {
    width: 52px;
    height: 52px;
    border-radius: var(--gv-radius-pill);
    background: linear-gradient(135deg, var(--gv-green-lime) 0%, var(--gv-green-accent) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: -24px;
    box-shadow: var(--gv-shadow-green);
    border: 3px solid #FFFFFF;
    text-decoration: none;
}
.gv-bottom-nav-center:hover {
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .gv-sidebar {
        transform: translateX(-100%);
    }
    .gv-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 30px rgba(0,0,0,0.3);
    }
    .gv-main-content {
        margin-left: 0;
    }
    .gv-content-body {
        padding: 20px 16px 80px; /* Space for bottom nav */
    }
    .gv-topbar {
        padding: 0 16px;
    }
    .gv-bottom-nav {
        display: flex;
    }
}
