.driveway-visualization-container {
    height: 250px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.tips-list {
    font-size: 0.9rem;
    padding-left: 20px;
    margin-bottom: 0;
}

.tips-list li {
    margin-bottom: 8px;
    color: #495057;
}

.chart-container {
    height: 250px;
    position: relative;
}

.advanced-options {
    transition: all 0.3s ease;
}

.advanced-toggle {
    cursor: pointer;
    user-select: none;
}

.advanced-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.advanced-content.show {
    max-height: 500px;
}

.calculation-note {
    font-size: 0.85rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

.result-highlight {
    background-color: #e9f7ff;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0dcaf0;
}

/* Shape preview styles */
.shape-previews {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    flex-wrap: wrap;
}

.shape-preview {
    width: 60px;
    height: 45px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.shape-preview.active {
    border-color: #0d6efd;
    background-color: #e9f7ff;
}

.shape-preview:hover {
    border-color: #0d6efd;
}

.shape-preview.rectangle {
    background: linear-gradient(to right, #6c757d 80%, #6c757d 80%);
}

.shape-preview.lshape {
    background: 
        linear-gradient(to right, #6c757d 60%, transparent 60%),
        linear-gradient(to bottom, #6c757d 40%, transparent 40%);
    background-position: left top, left top;
    background-size: 100% 60%, 60% 100%;
    background-repeat: no-repeat;
}

.shape-preview.ushape {
    background: 
        linear-gradient(to right, #6c757d 20%, transparent 20%, transparent 80%, #6c757d 80%),
        linear-gradient(to bottom, #6c757d 70%, transparent 70%);
    background-position: left top, left top;
    background-size: 100% 30%, 100% 100%;
    background-repeat: no-repeat;
}

.shape-preview.curved {
    background: radial-gradient(ellipse at center, #6c757d 50%, transparent 50%);
}

/* Material color samples */
.material-samples {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.material-sample {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.material-sample.active {
    border-color: #495057;
    transform: scale(1.1);
}

.material-sample.standard { background-color: #a9a9a9; }
.material-sample.high_strength { background-color: #8c8c8c; }
.material-sample.premium { background-color: #707070; }
.material-sample.fiber_reinforced { background: linear-gradient(45deg, #a9a9a9, #8c8c8c); }
.material-sample.stamped { background: radial-gradient(circle, #a9a9a9 40%, #8c8c8c 60%); }
.material-sample.exposed_aggregate { background: linear-gradient(45deg, #a9a9a9, #8c8c8c, #a9a9a9); }
.material-sample.colored { background-color: #5a5c69; }

/* Cost indicators */
.cost-low {
    color: #28a745 !important;
}

.cost-medium {
    color: #ffc107 !important;
}

.cost-high {
    color: #dc3545 !important;
}

/* Visualization controls */
.visualization-controls {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.visualization-controls button {
    flex: 1;
    min-width: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
    
    .driveway-visualization-container {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .shape-previews {
        justify-content: center;
        gap: 10px;
    }
    
    .shape-preview {
        width: 50px;
        height: 40px;
    }
    
    .material-samples {
        justify-content: center;
    }
}

/* Loading animation for 3D visualization */
.loading-visualization {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.loading-visualization .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-right: 10px;
}

/* Custom range slider for advanced options */
.range-slider {
    width: 100%;
    margin: 10px 0;
}

.range-value {
    font-weight: 600;
    color: #0d6efd;
    margin-left: 10px;
}

/* Highlight important results */
.highlight-result {
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin: 10px 0;
}

/* Tooltip styles */
.info-tooltip {
    cursor: help;
    border-bottom: 1px dotted #6c757d;
    color: #6c757d;
    margin-left: 5px;
}