/* ===== SIDEBAR COMPONENT - CLEAN CSS VARIABLES ONLY ===== */

/* ===== CORE SIDEBAR STRUCTURE ===== */
.sidebar {
    width: 32rem;
    border-left: 1px solid var(--otto-border);
    display: flex;
    flex-direction: column;
    background: var(--otto-bg);
}

.sidebar-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== DYNAMIC CONTENT AREA ===== */
#dynamic-content-area {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== PROFILE TABLE CONTAINER ===== */
.profile-table-container {
    border: 2px solid var(--otto-primary);
    border-radius: 6px;
    padding: 0;
    background: var(--otto-primary-light);
    margin-bottom: 12px;
}

.profile-table-header {
    background: var(--otto-primary-light);
    color: var(--otto-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px;
    border-bottom: 1px solid var(--otto-primary);
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.profile-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--otto-primary);
    font-size: 0.85rem;
}

.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table td:first-child {
    background: var(--otto-primary-light);
    color: var(--otto-primary);
    font-weight: 600;
    border-right: 1px solid var(--otto-primary);
    width: 40%;
}

.profile-table td:last-child {
    background: var(--otto-white);
}

/* ===== PROFILE VALUE STATES ===== */
.profile-value.specified {
    color: var(--otto-primary-text);
    font-weight: 600;
    font-style: normal;
}

.profile-value.unspecified {
    color: var(--otto-primary-text);
    font-weight: normal;
    font-style: italic;
}

/* ===== BUDGET SUMMARY SECTION ===== */
.budget-summary-section {
    background: var(--otto-primary-text);
    border: 2px solid var(--otto-primary);
    border-radius: 6px;
    padding: 0;
    margin-bottom: 12px;
}

.budget-summary-header {
    background: var(--otto-primary-text);
    color: var(--otto-primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-bottom: 1px solid var(--otto-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-edit-btn {
    background: var(--otto-primary);
    color: var(--otto-primary-light);
    border: none;
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.budget-edit-btn:hover {
    background: var(--otto-primary-light);
    color: var(--otto-primary-text);
}

.budget-summary-content {
    background: var(--otto-white);
    padding: 8px 12px;
    color: var(--otto-primary-text);
    font-size: 0.85rem;
}

/* Budget Summary Table Structure */
.budget-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.budget-summary-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--otto-primary);
}

.budget-summary-table tr:last-child td {
    border-bottom: none;
}

.budget-summary-table td:first-child {
    background: var(--otto-primary-text);
    color: var(--otto-primary-light);
    font-weight: 600;
    width: 40%;
    border-right: 1px solid var(--otto-primary);
}

.budget-summary-table td:last-child {
    background: var(--otto-white);
    color: var(--otto-primary-text);
}

/* ===== VEHICLE LINKS SECTION ===== */
.vehicle-links-section {
    background: var(--otto-primary);
    border: 2px solid var(--otto-primary-text);
    border-radius: 6px;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

.vehicle-links-header {
    background: var(--otto-primary);
    color: var(--otto-primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-bottom: 1px solid var(--otto-primary-text);
}

.vehicle-links-content {
    padding: 8px 8px;
    background: var(--otto-white);
}

.vehicle-link-enhanced {
    display: inline-block;
    padding: 4px 6px;
    background: var(--otto-primary);
    border: 1px solid var(--otto-primary-text);
    border-radius: 4px;
    color: var(--otto-primary-light);
    text-decoration: none;
    font-size: 0.77rem;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.vehicle-link-enhanced:hover {
    background: var(--otto-primary-hover);
    color: var(--otto-primary-light);
}

/* ===== CONFIDENCE METER (IF USED) ===== */
.confidence-meter {
    background: var(--otto-bg);
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.confidence-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--otto-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-bar {
    background: var(--otto-border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    background: linear-gradient(90deg, #ef4444 0%, var(--otto-primary) 50%, var(--otto-success) 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.confidence-percentage {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--otto-text);
    text-align: center;
    margin-top: 4px;
}

/* ===== PLACEHOLDERS ===== */
.sidebar-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: var(--otto-text-light);
}

.sidebar-placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.sidebar-placeholder p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        order: -1;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .sidebar-content {
        padding: 0.5rem;
    }
    
    .profile-table-header {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .profile-table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .profile-table td:first-child {
        width: 35%;
    }
    
    .budget-summary-header,
    .vehicle-links-header {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .budget-summary-content,
    .vehicle-links-content {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .budget-edit-btn {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}