/* Acxelerate QR & Barcode Studio — Brand Theme (Extracted from Acxelerate Reference) */
:root {
    --acx-navy: #020B28;
    --acx-navy-mid: #001A3F;
    --acx-navy-light: #083868;
    --acx-gold: #C89018;
    --acx-gold-bright: #E0B838;
    --acx-gold-highlight: #F8D810;
    --acx-gold-soft: #F7ECCD;
    --acx-bg: #FAF7F0;
    --acx-cream: #FCEDD6;
    --acx-surface: #FFFFFF;
    --acx-charcoal: #2B303A;
    --acx-muted: #5D697F;
    --acx-border: #E5D6B3;
    --acx-shadow-sm: 0 2px 10px rgba(2, 11, 40, 0.05);
    --acx-shadow-md: 0 10px 30px rgba(2, 11, 40, 0.09);
    --acx-shadow-lg: 0 18px 45px rgba(2, 11, 40, 0.14);
    --acx-sidebar-w: 268px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background-color: var(--acx-bg);
    color: var(--acx-charcoal);
    margin: 0;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #F3EDE0; }
::-webkit-scrollbar-thumb { background: #C8B58A; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--acx-gold); }

/* Brand Gradient & Pill Elements */
.acx-navy-gradient {
    background: linear-gradient(135deg, var(--acx-navy) 0%, var(--acx-navy-mid) 55%, var(--acx-navy-light) 100%) !important;
    color: #FFFFFF !important;
}

.acx-gold-gradient {
    background: linear-gradient(135deg, var(--acx-gold) 0%, var(--acx-gold-bright) 100%) !important;
}

.acx-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--acx-navy) 0%, var(--acx-navy-light) 100%);
    color: var(--acx-gold-highlight);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(224, 184, 56, 0.45);
}

/* Buttons */
.btn-acx-navy {
    --bs-btn-color: #FFFFFF;
    --bs-btn-hover-color: var(--acx-gold-highlight);
    --bs-btn-active-color: var(--acx-gold-highlight);
    --bs-btn-disabled-color: #FFFFFF;
    background: linear-gradient(135deg, var(--acx-navy) 0%, var(--acx-navy-light) 100%);
    color: #FFFFFF;
    border: 1px solid var(--acx-navy);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-acx-navy:hover, .btn-acx-navy:focus, .btn-acx-navy:active {
    background: linear-gradient(135deg, var(--acx-navy-mid) 0%, #0A4682 100%);
    color: var(--acx-gold-highlight);
    border-color: var(--acx-gold);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 11, 40, 0.22);
}

.btn-acx-gold {
    --bs-btn-color: var(--acx-navy);
    --bs-btn-hover-color: var(--acx-navy);
    --bs-btn-active-color: var(--acx-navy);
    --bs-btn-disabled-color: var(--acx-navy);
    background: linear-gradient(135deg, var(--acx-gold-bright) 0%, var(--acx-gold) 100%);
    color: var(--acx-navy);
    border: 1px solid var(--acx-gold);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-acx-gold:hover, .btn-acx-gold:focus, .btn-acx-gold:active {
    background: linear-gradient(135deg, var(--acx-gold-highlight) 0%, var(--acx-gold-bright) 100%);
    color: var(--acx-navy);
    border-color: var(--acx-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 144, 24, 0.28);
}

.btn-acx-outline {
    background: #FFFFFF;
    color: var(--acx-navy);
    border: 1px solid var(--acx-border);
    font-weight: 600;
    transition: all 0.18s ease;
}
.btn-acx-outline:hover {
    background: var(--acx-gold-soft);
    border-color: var(--acx-gold);
    color: var(--acx-navy);
}

/* Auth Layout */
.acx-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(224, 184, 56, 0.14), transparent 45%),
        radial-gradient(circle at bottom left, rgba(8, 56, 104, 0.10), transparent 45%),
        var(--acx-bg);
    display: flex;
    flex-direction: column;
}

.acx-auth-card {
    background: var(--acx-surface);
    border: 1px solid var(--acx-border);
    border-radius: 18px;
    box-shadow: var(--acx-shadow-lg);
    overflow: hidden;
}

.acx-auth-brand-banner {
    background: linear-gradient(135deg, var(--acx-navy) 0%, var(--acx-navy-mid) 60%, var(--acx-navy-light) 100%);
    border-bottom: 3px solid var(--acx-gold);
    padding: 28px 28px 24px;
    text-align: center;
}

.acx-logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.acx-logo-pill img {
    max-height: 46px;
    width: auto;
    display: block;
}

/* Dashboard Shell */
.acx-shell {
    display: flex;
    min-height: 100vh;
}

.acx-sidebar {
    width: var(--acx-sidebar-w);
    background: linear-gradient(180deg, var(--acx-navy) 0%, var(--acx-navy-mid) 70%, #01204E 100%);
    color: #E8ECF4;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    border-right: 2px solid rgba(200, 144, 24, 0.35);
    transition: transform 0.25s ease;
}

.acx-sidebar-brand {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.acx-sidebar-brand .acx-logo-box {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(224, 184, 56, 0.6);
}

.acx-sidebar-brand .acx-logo-box img {
    max-height: 36px;
    width: auto;
}

.acx-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.acx-nav-group-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(224, 184, 56, 0.78);
    font-weight: 700;
    padding: 10px 12px 5px;
}

.acx-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 3px;
    border-radius: 10px;
    color: #DCE3F0;
    font-size: 0.90rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.16s ease;
}

.acx-nav-link i {
    font-size: 1.05rem;
    color: var(--acx-gold-bright);
    width: 20px;
    text-align: center;
}

.acx-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.acx-nav-link.active {
    background: linear-gradient(90deg, rgba(200, 144, 24, 0.24) 0%, rgba(8, 56, 104, 0.55) 100%);
    color: #FFFFFF;
    font-weight: 600;
    border-color: rgba(224, 184, 56, 0.55);
    box-shadow: inset 3px 0 0 var(--acx-gold-highlight);
}

.acx-nav-link.active i {
    color: var(--acx-gold-highlight);
}

.acx-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.acx-main {
    flex: 1;
    margin-left: var(--acx-sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.acx-topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--acx-border);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.acx-content {
    padding: 24px;
    flex: 1;
}

/* Cards & Surfaces */
.acx-card {
    background: var(--acx-surface);
    border: 1px solid var(--acx-border);
    border-radius: 14px;
    box-shadow: var(--acx-shadow-sm);
}

.acx-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #F0E7D4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.acx-stat-card {
    background: var(--acx-surface);
    border: 1px solid var(--acx-border);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--acx-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acx-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--acx-shadow-md);
}

.acx-stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--acx-navy), var(--acx-gold));
}

.acx-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--acx-navy) 0%, var(--acx-navy-light) 100%);
    color: var(--acx-gold-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.acx-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--acx-navy);
    line-height: 1.15;
}

/* Preview Stage */
.acx-preview-stage {
    background:
        linear-gradient(45deg, #F6F2E8 25%, transparent 25%),
        linear-gradient(-45deg, #F6F2E8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #F6F2E8 75%),
        linear-gradient(-45deg, transparent 75%, #F6F2E8 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-color: #FFFFFF;
    border: 1px dashed var(--acx-gold);
    border-radius: 14px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.acx-preview-frame {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--acx-shadow-md);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.acx-preview-frame canvas,
.acx-preview-frame img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* QR Frame Styles (visual & export matched) */
.acx-frame-classic_navy {
    border: 4px solid var(--acx-navy);
    background: #FFFFFF;
    padding: 14px;
    border-radius: 16px;
}
.acx-frame-gold_badge {
    border: 4px solid var(--acx-gold);
    background: #FFFFFF;
    padding: 14px;
    border-radius: 16px;
}
.acx-frame-scan_me_bottom {
    border: 3px solid var(--acx-navy);
    background: #FFFFFF;
    padding: 14px 14px 10px;
    border-radius: 16px;
}
.acx-frame-enterprise_card {
    border: 2px solid var(--acx-gold);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F0 100%);
    padding: 16px;
    border-radius: 18px;
}

/* Type Selector Grid */
.acx-type-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid var(--acx-border);
    background: #FFFFFF;
    color: var(--acx-charcoal);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}
.acx-type-chip:hover {
    border-color: var(--acx-gold);
    background: var(--acx-bg);
}
.acx-type-chip.active {
    background: linear-gradient(135deg, var(--acx-navy) 0%, var(--acx-navy-light) 100%);
    color: #FFFFFF;
    border-color: var(--acx-navy);
}
.acx-type-chip.active i {
    color: var(--acx-gold-highlight);
}

/* Design Gallery Cards */
.acx-design-card {
    border: 1px solid var(--acx-border);
    border-radius: 14px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.acx-design-card:hover {
    box-shadow: var(--acx-shadow-md);
    border-color: var(--acx-gold);
}
.acx-design-thumb {
    background: #FAF7F0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-bottom: 1px solid #F0E7D4;
    cursor: pointer;
}
.acx-design-thumb img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--acx-gold);
    box-shadow: 0 0 0 0.2rem rgba(200, 144, 24, 0.2);
}

select.form-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 1.4;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--acx-navy);
}

/* Responsive */
@media (max-width: 767.98px) {
    .acx-sidebar {
        transform: translateX(-100%);
    }
    .acx-sidebar.open {
        transform: translateX(0);
    }
    .acx-main {
        margin-left: 0;
    }
    .acx-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(2, 11, 40, 0.55);
        z-index: 1025;
    }
    .acx-sidebar-backdrop.show {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .acx-content {
        padding: 14px;
    }
    .acx-topbar {
        padding: 10px 14px;
    }
}
