/* ==========================================================================
   Commercial Web-to-Print SaaS Frontend Design System — Modern & Colourful UI
   ========================================================================== */

:root {
    --saas-primary: #2563eb;
    --saas-primary-hover: #1d4ed8;
    --saas-primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --saas-secondary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --saas-accent-cyan: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --saas-accent-amber: linear-gradient(135deg, #f97316 0%, #d97706 100%);
    --saas-success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --saas-dark: #0f172a;
    --saas-navy: #1e1b4b;
    --saas-light-bg: #f8fafc;
    --saas-tinted-bg: #f1f5f9;
    --saas-border: #e2e8f0;
    --saas-text-main: #0f172a;
    --saas-text-muted: #64748b;
    --saas-radius: 14px;
    
    --saas-shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.04);
    --saas-shadow-md: 0 6px 20px rgba(37, 99, 235, 0.08);
    --saas-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
}

body {
    background-color: var(--saas-light-bg);
    background-image: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.03) 0px, transparent 50%);
    color: var(--saas-text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.012em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .fw-extrabold, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.025em;
}

/* Centered Container Bounds */
.container {
    max-width: 1240px;
}

/* Modern Gradient Navbar */
.navbar-brand {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.brand-emblem {
    background: var(--saas-primary-gradient);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Colorful Button Hierarchy System */
.btn-gradient-primary {
    background: var(--saas-primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    color: #ffffff !important;
}

.btn-gradient-secondary {
    background: var(--saas-secondary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transition: all 0.25s ease;
}

.btn-gradient-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
    color: #ffffff !important;
}

.btn-gradient-success {
    background: var(--saas-success-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}

.btn-gradient-warning {
    background: var(--saas-accent-amber) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

/* 50/50 Vibrant Colorful Hero Section */
.hero-saas-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #2563eb 50%, #7c3aed 100%);
    border-radius: 20px;
    padding: 4rem 3.5rem;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.hero-title {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Hero Vector CSS Book & Print Illustration */
.hero-visual-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero-book-stack {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 14px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.hero-book-graphic {
    width: 80px;
    border-radius: 6px 14px 14px 6px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.hero-book-graphic:hover {
    transform: translateY(-8px);
}

.hero-book-graphic.spine {
    border-left: 6px solid rgba(0, 0, 0, 0.25);
}

.hero-book-graphic.book-1 { height: 140px; background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%); }
.hero-book-graphic.book-2 { height: 120px; background: linear-gradient(180deg, #10b981 0%, #047857 100%); }
.hero-book-graphic.book-3 { height: 150px; background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }

/* Dynamic Category Identity Cards */
.category-card {
    border: 1.5px solid var(--saas-border);
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.category-card-blue:hover { border-color: #2563eb; }
.category-card-purple:hover { border-color: #7c3aed; }
.category-card-pink:hover { border-color: #ec4899; }
.category-card-orange:hover { border-color: #f97316; }
.category-card-green:hover { border-color: #10b981; }
.category-card-cyan:hover { border-color: #06b6d4; }

/* Product Cards */
.product-showcase-card {
    border-radius: 16px;
    border: 1px solid var(--saas-border);
    background: #ffffff;
    transition: all 0.3s ease;
}

.product-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    border-color: #3b82f6;
}

.product-showcase-card .card-img-top {
    transition: transform 0.4s ease;
}

.product-showcase-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Category Badges */
.badge-category-blue { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-category-purple { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.badge-category-pink { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
.badge-category-orange { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-category-green { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-category-cyan { background: #cffaff; color: #155e75; border: 1px solid #a5f3fc; }

/* Drag & Drop Upload Zone */
.upload-dropzone-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f3e8ff 100%);
    border: 2.5px dashed #0284c7;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.upload-dropzone-box:hover {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #ede9fe 100%);
    transform: scale(1.005);
}

/* Segmented Choice Selectors */
.select-choice-card {
    border: 2px solid var(--saas-border);
    border-radius: 14px;
    transition: all 0.25s ease;
    background: #ffffff;
}

.select-choice-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.select-choice-card.selected {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 4-Step Stepper Bubbles */
.stepper-bubble-active {
    background: var(--saas-primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.stepper-bubble-completed {
    background: var(--saas-success-gradient) !important;
    color: #ffffff !important;
}

/* Rotating Wheel Upload Spinner */
.upload-spinner-wheel {
    width: 64px;
    height: 64px;
    border: 6px solid #e0f2fe;
    border-top: 6px solid #2563eb;
    border-right: 6px solid #7c3aed;
    border-radius: 50%;
    animation: spinWheel 0.75s linear infinite;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

@keyframes spinWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Stepper Navigation Pills */
.wizard-step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.wizard-step-pill .step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.25s ease;
}

.wizard-step-pill.active {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.wizard-step-pill.active .step-circle {
    background: #2563eb;
    color: #ffffff;
}

.wizard-step-pill.completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.wizard-step-pill.completed .step-circle {
    background: #16a34a;
    color: #ffffff;
}

.hover-elevate {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-elevate:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 768px) {
    .wizard-step-pill {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .wizard-step-pill .step-circle {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
}

