:root {
    --color-primary: #FDB813;
    --color-secondary: #1A1A1A;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;
    --color-accent: #059669;
    /* Emerald for sustainability */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    background-color: var(--color-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.config-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.config-header {
    background: var(--color-white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.config-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 40px;
}

.main-content {
    flex: 1;
    padding: 3rem 0;
}

/* Card Container */
.glass-panel {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), #fbbf24, #f59e0b);
}

/* Typography */
h1 {
    font-weight: 800;
    color: var(--color-secondary);
    letter-spacing: -0.025em;
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.text-muted {
    color: var(--color-text-light);
}

/* Info Box - Production Analysis */
.analysis-card {
    background: #F0F9FF;
    /* Light Blue */
    border: 1px solid #BAE6FD;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.analysis-icon {
    background: #0EA5E9;
    /* Sky 500 */
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.analysis-content h3 {
    margin: 0 0 0.5rem 0;
    color: #0369A1;
    font-size: 1.125rem;
}

.data-highlight {
    font-weight: 800;
    color: #0369A1;
}

.panel-recommendation {
    margin-top: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #E0F2FE;
}

.panel-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.panel-option:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: #0EA5E9;
    font-weight: bold;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.selection-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.selection-card:hover {
    border-color: #fbbf24;
    /* Amber-ish */
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.selection-card.selected {
    border-color: var(--color-primary);
    background: #FFFBEB;
    /* Amber 50 */
    box-shadow: 0 0 0 2px var(--color-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.card-title {
    font-weight: 700;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Sub-selection (Pergola) */
.sub-selection-container {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    animation: slideDown 0.3s ease-out;
}

.custom-select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--color-secondary);
    background-color: white;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.2);
}

/* Actions */
.actions-bar {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 9999px;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #eaca14;
}

.btn-primary:disabled {
    background-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .selection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .analysis-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Summary Table Spacing */
#summary-table-body td {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e2e8f0;
}

#summary-table-body tr:last-child td {
    border-bottom: none;
}