[v-cloak] { display: none; }

/* Front-end specific styles */
.front-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.front-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.front-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}
.front-logo a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.front-logo a:hover {
    color: var(--primary);
}
.nav-group {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link-item:hover {
    color: var(--primary);
}
.nav-button {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.nav-button:hover {
    background: var(--primary);
    color: white;
}
.front-main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}
.front-footer {
    background: #111827;
    color: #9CA3AF;
    padding: 60px 0 30px;
    margin-top: 60px;
    text-align: center;
}
.footer-lead-time {
    background: #1F2937;
    color: #FBBF24;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}
.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.footer-links a:hover {
    text-decoration: underline;
}
.calculator-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    width: 100%;
}
.form-row {
    display: flex;
    gap: 16px;
}
.half-width {
    flex: 1;
}
.p-4 {
    padding: 24px;
}
.text-center {
    text-align: center;
}
.btn-lg {
    padding: 14px 24px;
    font-size: 1.1rem;
}
.calc-form .form-group {
    margin-bottom: 24px;
}
.calc-form label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}
.calc-form select, .calc-form input[type="number"] {
    background-color: #F9FAFB;
}
.calc-form select:focus, .calc-form input[type="number"]:focus {
    background-color: white;
}

/* Utility Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-end { justify-content: flex-end; }
.flex-center { justify-content: center; }
.flex-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.no-print { }

/* Progress Tracker */
.progress-container {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.progress-header {
    margin-bottom: 20px;
}

.progress-message {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(165, 70, 229, 0.15);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    transition: 0.3s;
    text-transform: uppercase;
}

.step-item.active .step-label {
    color: var(--primary);
}

.step-item.completed .step-label {
    color: var(--text-main);
}

/* Connection Lines */
.stepper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

/* Responsiveness Classes */
.calculator-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.wizard-layout {
    display: flex;
}

.wizard-sidebar {
    width: 250px;
    background: #F9FAFB;
    padding: 24px;
    border-right: 1px solid var(--border);
}

.wizard-main {
    flex: 1;
    padding: 32px;
}

.dimensions-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.dimensions-visual {
    flex: 1;
    min-width: 400px;
}

.dimensions-config {
    flex: 1;
    min-width: 350px;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.material-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    text-align: center;
}

.material-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.material-card.selected {
    border-color: var(--primary);
    background: #F5F3FF;
    box-shadow: 0 0 0 1px var(--primary);
}

.material-card img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin: auto;
}

.result-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.result-room-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Color Selection Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.color-card-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.color-card-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.color-card-item.selected {
    border-color: var(--primary);
    background: #F5F3FF;
    box-shadow: 0 0 0 1px var(--primary);
}

.color-card-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

.color-swatch-box {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.color-card-item:hover .color-swatch-box img {
    transform: scale(1.1);
}

.color-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    line-height: 1.3;
    padding: 0 4px 4px;
}

/* Mobile Media Queries */
@media (max-width: 1200px) {
    .material-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .front-container {
        padding: 0 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .nav-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-link-item {
        justify-content: center;
    }

    .calculator-wrapper {
        padding: 0 15px;
    }

    .wizard-layout {
        flex-direction: column;
    }

    .wizard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px;
    }

    .wizard-main {
        padding: 20px 15px;
    }

    .dimensions-visual {
        min-width: 100%;
    }

    .dimensions-config {
        min-width: 100%;
        max-height: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .material-grid, .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    /* Result state mobile */
    .result-card {
        padding: 20px 15px;
    }

    .result-room-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-room-row > div:first-child {
        width: 100% !important;
        max-width: 200px;
        margin-bottom: 20px;
    }

    .result-room-row table {
        font-size: 0.8rem;
    }

    /* Tracking view adjustments */
    .tracking-form {
        flex-direction: column;
    }
    
    .tracking-order-summary {
        grid-template-columns: 1fr !important;
    }

    /* Stepper Vertical */
    .stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stepper::before {
        left: 16px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
    }
    
    .step-item {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .step-circle {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-label {
        text-align: left;
        font-size: 0.85rem;
    }

    .progress-container {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .front-logo {
        font-size: 1.25rem;
    }
    
    .front-logo img {
        height: 30px !important;
    }

    .calculator-card {
        padding: 20px 15px;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wizard-steps {
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 10px;
    }
    
    .wizard-steps > div {
        flex-shrink: 0;
        font-size: 0.8rem;
    }
}

