/**
 * Smart Digital - Premium Online Printing & Digital Branding Stylesheet
 * Custom Design System: Luxury Light Theme Edition
 * Author: Rongtuli Graphics Center
 */

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

:root {
    --primary-bg: #f8fafc;
    /* Soft Slate 50 */
    --secondary-bg: #ffffff;
    /* Pure White */
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --accent-primary: #8400bd;
    /* Logo Purple */
    --accent-secondary: #fd7132;
    /* Logo Orange */
    --gradient-accent: linear-gradient(135deg, #8400bd 0%, #fd7132 100%);
    --gradient-gold: linear-gradient(135deg, #fd7132 0%, #f97316 100%);
    --text-white: #0f172a;
    /* Overridden: White text classes now resolve to Deep Slate 900 */
    --text-muted: #64748b;
    /* Muted Text: Slate 500 */
    --glow-shadow: 0 10px 30px rgba(132, 0, 189, 0.08);
    --gold-glow: 0 10px 30px rgba(253, 113, 50, 0.12);
}

body {
    background-color: var(--primary-bg);
    color: #334155;
    /* Slate 700 main body text */
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image:
        radial-gradient(circle at 5% 15%, rgba(132, 0, 189, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 95% 85%, rgba(253, 113, 50, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    /* Deep Slate 900 */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* Slate 300 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Global Bootstrap Classes Overrides to enforce Light Mode instantly */
.text-white,
.text-light {
    color: #0f172a !important;
    /* Slate 900 */
}

.text-secondary {
    color: #64748b !important;
    /* Slate 500 */
}

.text-teal {
    color: #8400bd !important;
    /* Logo Purple */
}

.italic {
    font-style: italic;
}

/* Custom backgrounds overrides */
.bg-dark,
.bg-slate {
    background-color: #ffffff !important;
}

.bg-opacity-50,
.bg-opacity-40,
.bg-opacity-70 {
    background-color: #ffffff !important;
    /* Keep input containers fully opaque white */
}

.bg-slate-dark {
    background-color: #f1f5f9 !important;
}

.border-secondary {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Premium Header and Sticky Navigation */
.premium-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.premium-navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(132, 0, 189, 0.15);
}

.nav-link {
    color: #334155 !important;
    /* Slate 700 */
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 32px);
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Override Dark dropdown menus to Light crystal style */
.dropdown-menu-dark {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.dropdown-menu-dark .dropdown-header {
    color: #64748b !important;
    font-weight: 600;
}

.dropdown-menu-dark .dropdown-item {
    color: #334155 !important;
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--accent-primary) !important;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Premium Buttons - Retaining White Text */
.btn-premium {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glow-shadow);
}

.btn-premium:hover {
    background: #6a0099 !important;
    /* Elegant Solid Dark Purple Hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(132, 0, 189, 0.35);
}

.btn-premium-outline {
    background: transparent;
    color: var(--accent-primary) !important;
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Hero Section */
.hero-slider-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.badge-offer {
    background: rgba(132, 0, 189, 0.08);
    border: 1px solid rgba(132, 0, 189, 0.2);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* Category Grid & Animated Cards */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(132, 0, 189, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), var(--glow-shadow);
}

.category-card {
    padding: 24px;
    text-align: center;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background-color: #f1f5f9;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border) !important;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.account-page .list-group-item {
    color: #334155 !important;
}

.account-page .list-group-item:hover {
    color: #8400bd !important;
}

.account-auth-page {
    min-height: calc(100vh - 180px);
    padding: 90px 0 120px;
    background: radial-gradient(circle at 10% 10%, rgba(132, 0, 189, 0.08) 0%, transparent 30%), radial-gradient(circle at 90% 90%, rgba(253, 113, 50, 0.08) 0%, transparent 35%);
}

.account-auth-panel {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    padding: 40px;
}

.account-auth-panel .form-control {
    border-color: #d2d6dc !important;
}

/* Form inputs & inputs inside glass panels */
.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    /* Slate 300 */
    color: #1e293b !important;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(132, 0, 189, 0.2) !important;
    color: #0f172a !important;
}

.form-control[readonly] {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

/* Pricing Options & Configuration forms */
.form-check-card {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.form-check-card:hover {
    border-color: var(--accent-primary);
    background: #f8fafc;
}

/* Footer link icons and spacing */
.footer-links-list {
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    list-style: none;
    margin: 8px 0;
}
.footer-links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.12s ease;
}
.footer-links-list li a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}
.footer-link-icon {
    color: rgba(132, 0, 189, 0.95);
    font-size: 0.9rem;
    width: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.form-check-input:checked+.form-check-card {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.08);
}

/* Custom Upload artwork system */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--accent-primary);
    background: rgba(132, 0, 189, 0.03);
}

/* Stepper Printing Workflow */
.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--glow-shadow);
    border: 3px solid #ffffff;
}

.process-step h5 {
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
}

/* Live WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.whatsapp-float i {
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none !important;
}

/* Order Pipeline Tracker */
.tracker-container {
    position: relative;
    padding: 20px 0;
}

.tracker-progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    /* Slate 200 */
    z-index: 1;
    transform: translateY(-50%);
}

.tracker-progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tracker-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.tracker-node {
    text-align: center;
    background: var(--primary-bg);
    padding: 0 10px;
}

.tracker-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #ffffff;
    margin: 0 auto 10px auto;
    transition: all 0.4s ease;
}

.tracker-node.completed .tracker-dot {
    background: #10b981;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.tracker-node.active .tracker-dot {
    background: var(--accent-primary);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(132, 0, 189, 0.4);
    transform: scale(1.2);
}

.tracker-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.tracker-node.active .tracker-label,
.tracker-node.completed .tracker-label {
    color: #0f172a;
}

/* Elegant Table Adjustments */
.table-premium {
    color: #334155 !important;
}

.table-premium th {
    background-color: #f1f5f9 !important;
    /* Slate 100 */
    border-bottom: 2px solid #e2e8f0 !important;
    color: var(--accent-primary) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.table-premium td {
    background-color: transparent !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 12px;
    vertical-align: middle;
}

.table-premium tr:hover td {
    background-color: #f8fafc !important;
}

/* Accordion FAQs overrides */
.faq-accordion .accordion-item {
    background: #ffffff !important;
    border: 1px solid var(--card-border) !important;
    margin-bottom: 12px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.faq-accordion .accordion-button {
    background: transparent !important;
    color: #1e293b !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: none !important;
    box-shadow: none !important;
    padding: 20px;
}

.faq-accordion .accordion-button::after {
    filter: none;
    /* Keep standard chevron icons dark */
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--accent-primary) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.faq-accordion .accordion-body {
    padding: 20px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Custom Styles */
.premium-footer {
    background-color: #f1f5f9;
    /* Light Grey Slate 100 */
    border-top: 1px solid var(--card-border);
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-logo-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.8rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #475569;
    /* Slate 600 */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--accent-primary);
    padding-left: 6px;
}

/* Cart badge pulse */
.badge-cart-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 4px 6px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: bold;
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Diagnostic / alert custom overrides */
.alert-premium {
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.alert-premium .alert-heading {
    font-weight: 700;
}

.option-card {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.option-card:hover {
    border-color: var(--accent-primary);
    background: #f8fafc;
}

.option-card.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.badge-premium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.btn-close-white {
    filter: none !important;
    /* Keep alert dismiss buttons visible */
}

/* User & Admin list-group active highlights */
.list-group-item.text-teal.fw-bold,
.list-group-item.text-warning.fw-bold {
    background-color: rgba(132, 0, 189, 0.04) !important;
    border-radius: 8px;
    padding-left: 12px !important;
}

.list-group-item.hover-teal:hover {
    color: var(--accent-primary) !important;
    padding-left: 8px !important;
    transition: all 0.2s ease;
}

.hover-teal:hover {
    color: var(--accent-primary) !important;
}