/* PREMIUM ACOUSTIC ASSISTANT STYLES */
:root {
    --as-primary: #2563eb;
    --as-primary-hover: #1d4ed8;
    --as-dark: #0f172a;
    --as-light: #f8fafc;
    --as-border: #e2e8f0;
    --as-text: #334155;
    --as-radius: 12px;
    --as-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body {
    background-color: #f1f5f9;
}

#assistant-app {
    padding-top: 100px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

/* CONTAINER */
.as-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER BAR (BREADCRUMBS) */
.as-top-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--as-radius);
    box-shadow: var(--as-shadow);
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}
.as-step-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.as-step-indicator.active {
    color: var(--as-primary);
}
.as-step-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* LAYOUT WITH SIDEBAR */
.as-layout {
    display: flex;
    gap: 2rem;
    flex: 1;
}
.as-main {
    flex: 1;
    background: white;
    border-radius: var(--as-radius);
    padding: 3rem;
    box-shadow: var(--as-shadow);
    display: flex;
    flex-direction: column;
}
.as-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.as-sidebar-sticky {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: var(--as-radius);
    padding: 2rem;
    box-shadow: var(--as-shadow);
}

/* TYPOGRAPHY */
.as-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--as-dark);
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
}
.as-subtitle {
    font-size: 1.1rem;
    color: var(--as-text);
    margin-bottom: 3rem;
    line-height: 1.6;
}
.as-question {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--as-dark);
    margin-bottom: 2rem;
}

/* CARDS */
.as-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.as-card {
    background: var(--as-light);
    border: 2px solid transparent;
    border-radius: var(--as-radius);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.as-card:hover {
    border-color: #bfdbfe;
    background: white;
    box-shadow: var(--as-shadow);
    transform: translateY(-2px);
}
.as-card.selected {
    border-color: var(--as-primary);
    background: #eff6ff;
}
.as-card i {
    font-size: 3rem;
    color: var(--as-primary);
}
.as-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--as-dark);
    margin: 0;
}
.as-card p {
    font-size: 0.9rem;
    color: var(--as-text);
    margin: 0;
    line-height: 1.5;
}

/* HORIZONTAL CARDS (e.g. for severity) */
.as-card-hz {
    background: var(--as-light);
    border: 2px solid transparent;
    border-radius: var(--as-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}
.as-card-hz:hover { border-color: #bfdbfe; background: white; }
.as-card-hz.selected { border-color: var(--as-primary); background: #eff6ff; }
.as-card-hz h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: var(--as-dark); }
.as-card-hz p { margin: 0; font-size: 0.9rem; color: var(--as-text); }

/* INPUTS */
.as-input-group {
    margin-bottom: 2rem;
}
.as-input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--as-dark);
    margin-bottom: 0.8rem;
}
.as-input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--as-dark);
    border: 2px solid var(--as-border);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.as-input:focus {
    border-color: var(--as-primary);
}

/* BUTTONS */
.as-btn {
    background: var(--as-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.as-btn:hover { background: var(--as-primary-hover); }
.as-btn:disabled { background: #94a3b8; cursor: not-allowed; }

.as-btn-outline {
    background: transparent;
    color: var(--as-primary);
    border: 2px solid var(--as-primary);
}
.as-btn-outline:hover {
    background: #eff6ff;
}
.as-btn-secondary {
    background: #e2e8f0;
    color: var(--as-dark);
}
.as-btn-secondary:hover { background: #cbd5e1; }

.as-actions {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--as-border);
}

/* PROGRESS BAR */
.as-progress-wrapper {
    margin-bottom: 1.5rem;
}
.as-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--as-dark);
    margin-bottom: 0.5rem;
}
.as-progress-track {
    width: 100%;
    height: 12px;
    background: var(--as-border);
    border-radius: 6px;
    overflow: hidden;
}
.as-progress-fill {
    height: 100%;
    background: var(--as-primary);
    transition: width 0.3s ease, background 0.3s ease;
}
.as-progress-msg {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--as-text);
}

/* BUILDER LIST */
.as-builder-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.as-builder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--as-light);
    border: 1px solid var(--as-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}
.as-builder-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.as-builder-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: white;
}
.as-builder-desc h4 { margin: 0 0 0.3rem 0; font-size: 1rem; color: var(--as-dark); font-weight: 800; }
.as-builder-desc p { margin: 0; font-size: 0.8rem; color: var(--as-text); }
.as-builder-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.as-qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.as-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--as-border);
    background: white;
    border-radius: 4px;
    font-weight: 800;
    color: var(--as-dark);
    cursor: pointer;
}
.as-qty-btn:hover { background: #f1f5f9; }
.as-qty-val {
    font-weight: 800;
    color: var(--as-dark);
    min-width: 30px;
    text-align: center;
}
.as-item-price { font-weight: 900; font-size: 1.1rem; color: var(--as-dark); width: 80px; text-align: right; }
.as-item-remove { color: #ef4444; cursor: pointer; border: none; background: transparent; font-size: 1.2rem; }

/* SIDEBAR WIDGET */
.as-widget-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--as-dark);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--as-dark);
    padding-bottom: 0.5rem;
}
.as-widget-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.as-widget-label { color: var(--as-text); font-weight: 600; }
.as-widget-val { color: var(--as-dark); font-weight: 800; }
.as-widget-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--as-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.as-widget-total-label { font-size: 1.1rem; font-weight: 900; color: var(--as-dark); }
.as-widget-total-val { font-size: 1.8rem; font-weight: 900; color: var(--as-primary); }

/* MOBILE BOTTOM BAR */
.as-mobile-bar {
    display: none;
}

@media (max-width: 900px) {
    .as-layout { flex-direction: column; }
    .as-sidebar { width: 100%; display: none; }
    .as-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: white;
        border-top: 1px solid var(--as-border);
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }
    .as-main { padding: 1.5rem; }
    .as-builder-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .as-builder-controls { width: 100%; justify-content: space-between; }
}
