.wall-visualization-container {
    height: 300px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.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;
}

.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;
}

.stress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.stress-bar {
    width: 20px;
    height: 100px;
    background: linear-gradient(to top, #28a745, #dc3545);
    margin-right: 10px;
    border-radius: 3px;
    position: relative;
}

.stress-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}

.stress-value {
    position: absolute;
    right: -40px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stress-value.max {
    top: 0;
    color: #dc3545;
}

.stress-value.min {
    bottom: 0;
    color: #28a745;
}

.stress-value.limit {
    position: absolute;
    left: -40px;
    color: #ffc107;
    font-weight: 600;
}

.reinforcement-diagram {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.be-section {
    position: absolute;
    background-color: #5a7d9a;
    border: 1px solid #3a5d7a;
}

.wall-section {
    position: absolute;
    background-color: #8c7b6b;
    border: 1px solid #6c5b4b;
}

.rebar {
    position: absolute;
    background-color: #ff0000;
    border-radius: 50%;
}

.rebar.vertical {
    width: 8px;
    height: 12px;
}

.rebar.horizontal {
    width: 12px;
    height: 8px;
}

.rebar.boundary {
    background-color: #00ff00;
    width: 10px;
    height: 10px;
}

.link {
    position: absolute;
    border: 2px solid #0000ff;
    border-radius: 5px;
}

.design-summary-card {
    background-color: #f8f9fa;
    border-left: 4px solid #0dcaf0;
    padding: 1rem;
    border-radius: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #495057;
}

.summary-value {
    font-weight: 600;
    color: #0d6efd;
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
    
    .wall-visualization-container {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

/* Flow regime indicators */
.wall-type-squat {
    color: #28a745 !important;
}

.wall-type-intermediate {
    color: #ffc107 !important;
}

.wall-type-slender {
    color: #dc3545 !important;
}

/* CSV Export Notification */
.csv-export-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.csv-export-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced table styling for CSV data representation */
.csv-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
    font-family: monospace;
}

.csv-data-table th {
    background-color: #f8f9fa;
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #dee2e6;
}

.csv-data-table td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.csv-data-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.csv-data-table tr:hover {
    background-color: #e9ecef;
}

/* Ensure all action buttons are visible */
.action-buttons .btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific styling for preview button */
.btn-outline-info {
    color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    background-color: transparent !important;
}

.btn-outline-info:hover {
    color: #000 !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

/* Force show any hidden buttons */
#previewCSV {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Step-by-step calculation styling */
.calculation-step {
    background-color: #f8f9fa;
    border-left: 4px solid #0dcaf0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #0dcaf0;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

.step-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.step-formula {
    font-family: 'Courier New', monospace;
    background-color: #e9ecef;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

.step-result {
    font-weight: 500;
    color: #0d6efd;
    margin-top: 0.5rem;
}

/* Add to your CSS file */
.canvas-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.canvas-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.dimension-line {
    stroke: #007bff;
    stroke-width: 1;
    stroke-dasharray: 5, 3;
}

.dimension-text {
    font-size: 12px;
    fill: #333;
    text-anchor: middle;
}

.rebar-horizontal {
    stroke: #dc3545;
    stroke-width: 3;
}

.rebar-vertical {
    stroke: #007bff;
    stroke-width: 3;
}

.rebar-boundary {
    stroke: #28a745;
    stroke-width: 3;
}

.section-fill {
    fill: #8c7b6b;
    opacity: 0.8;
}

.section-stroke {
    stroke: #5a4a42;
    stroke-width: 2;
    fill: none;
}

/* Add to your CSS file */
.model-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.collaboration-tools {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.compliance-status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.compliance-pass {
    background-color: #d4edda;
    color: #155724;
}

.compliance-fail {
    background-color: #f8d7da;
    color: #721c24;
}

.optimization-suggestion {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.tutorial-highlight {
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.5) !important;
    transition: box-shadow 0.3s ease;
}

.chart-container-advanced {
    height: 300px;
    position: relative;
    margin-bottom: 20px;
}

.real-time-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
}

/* Animation for stress visualization */
@keyframes stress-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.stress-high {
    animation: stress-pulse 2s infinite;
    fill: #dc3545 !important;
}

.stress-medium {
    fill: #ffc107 !important;
}

.stress-low {
    fill: #28a745 !important;
}