:root {
    --primary: #0F172A;
    --accent: #2563EB;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
}

/* Base & Typography */
.wcsw-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    padding: 40px 20px;
    color: #334155;
    box-sizing: border-box;
    line-height: 1.6;
}

.wcsw-app * {
    box-sizing: border-box;
}

/* Friendly Guide Box */
.guide-box {
    background: #EFF6FF; /* Soft Blue */
    border: 1px solid #DBEAFE;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    color: #1E40AF;
}

.guide-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #1E3A8A;
}

.guide-box p {
    margin: 0;
    margin-bottom: 8px;
    font-size: 15px;
}

.guide-box p:last-child {
    margin-bottom: 0;
}

.guide-box.success-mode {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

/* Login */
.wcsw-center-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
}

.wcsw-login-card {
    background: var(--card);
    padding: 50px;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Dashboard */
.wcsw-dashboard-layout {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 80px;
}

.wcsw-status-box {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wcsw-status-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #E2E8F0;
    z-index: 0;
}

.status-step {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 8px 20px;
    border: 2px solid #CBD5E1;
    border-radius: 30px;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.status-step.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

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

.action-card {
    background: var(--card);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
    border: 1px solid #F1F5F9;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Submission Celebration */
.celebration-card {
    background: white;
    border: 2px solid #10B981;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.celebration-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Wizard Container */
.wcsw-wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    padding-bottom: 0;
}

.wcsw-wizard-header {
    background: #fff;
    padding: 30px 40px;
    border-bottom: 1px solid #F1F5F9;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Progress Bar */
.progress-track {
    background: #E2E8F0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.step-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.5px;
}

.step-labels span.active {
    color: var(--accent);
}

/* Steps */
.wcsw-step {
    display: none;
    padding: 40px;
    padding-bottom: 100px;
    animation: slideIn 0.3s ease-out;
}

.wcsw-step.active-step {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-intro {
    margin-bottom: 35px;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.step-intro h2 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 26px;
}

.step-intro p {
    margin: 0;
    color: #64748B;
    font-size: 16px;
}

/* Forms & Inputs */
.wcsw-field {
    margin-bottom: 25px;
    text-align: left;
}

.wcsw-field label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: #334155;
}

.wcsw-input,
.wcsw-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    color: #1E293B;
    transition: 0.2s;
    background: #F8FAFC;
    font-family: inherit;
}

.wcsw-input::placeholder,
.wcsw-textarea::placeholder {
    color: #94A3B8;
}

.wcsw-input:focus,
.wcsw-textarea:focus {
    border-color: var(--accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.wcsw-textarea {
    min-height: 120px;
    resize: vertical;
}

.wcsw-textarea.short {
    min-height: 80px;
}

.wcsw-row {
    display: flex;
    gap: 20px;
}

.wcsw-col {
    flex: 1;
}

/* Opening Hours Table */
.hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.hours-table td {
    padding: 5px;
    vertical-align: middle;
}

.hours-table .day-label {
    font-weight: 600;
    width: 100px;
    color: #475569;
}

.hours-table input {
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    width: 100%;
    background: #fff;
}

/* Color Repeater */
.color-repeater-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.color-input-swatch {
    width: 50px;
    height: 45px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.color-input-text {
    flex: 1;
}

.btn-remove-color {
    color: #EF4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

/* Design Section Style */
.design-prefs-box {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.design-prefs-box h3 {
    margin-top: 0;
    color: #0369A1;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Services Blocks */
.service-block {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 15px;
}

.block-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary);
}

.btn-icon-danger {
    background: #FEE2E2;
    border: none;
    color: #EF4444;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.2s;
}

.btn-icon-danger:hover {
    background: #EF4444;
    color: white;
}

/* Image Uploads */
.upload-zone {
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.2s;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: #F0F9FF;
}

.thumb-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    min-height: 10px;
}

.thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid #e2e8f0;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-del {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #EF4444;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.thumb-del:hover {
    background: #EF4444;
    color: white;
}

/* Review Page & Hover Edit */
.review-section {
    margin-bottom: 30px;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #E2E8F0;
}

.review-section h3 {
    margin-top: 0;
    font-size: 16px;
    color: var(--accent);
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-link {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    background: #DBEAFE;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.review-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    position: relative;
    transition: 0.2s;
}

.review-service-row:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.review-svc-name {
    font-weight: 600;
    color: #334155;
}

.review-svc-meta {
    font-size: 12px;
    color: #94A3B8;
    margin-right: 10px;
}

/* The Hover Edit Button */
.review-edit-btn {
    opacity: 0;
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: 0.2s;
    transform: translateX(10px);
}

.review-service-row:hover .review-edit-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E2E8F0;
}

.wcsw-btn {
    padding: 16px 30px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    width: 100%;
}

.btn-outline {
    background: white;
    border: 2px solid #E2E8F0;
    color: #475569;
}

.btn-secondary {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: #EFF6FF;
    color: var(--accent);
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    border: 1px dashed var(--accent);
    font-weight: 600;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.add-service-panel {
    background: #F1F5F9;
    padding: 30px;
    border-radius: 16px;
    border: 2px dashed #CBD5E1;
    text-align: center;
    margin-top: 40px;
}

#ai-loading {
    margin-top: 15px;
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .wcsw-app {
        padding: 10px;
        background: #fff;
    }

    .wcsw-wizard-header {
        padding: 15px 20px;
    }

    .review-edit-btn {
        opacity: 1;
        /* Always show edit button on mobile */
        transform: none;
        background: #EFF6FF;
        color: var(--accent);
    }

    .step-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid #E2E8F0;
        padding: 15px 20px;
        margin: 0;
        z-index: 999;
        backdrop-filter: blur(5px);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    }

    .wcsw-btn {
        width: 48%;
        padding: 12px;
        font-size: 14px;
    }

    .wcsw-wizard-container {
        padding-bottom: 70px; /* Space for fixed nav */
    }
}