/* Roofing Calculator Styles */

.roof-diagram {
    min-height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.roof-diagram svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.dimension-line {
    stroke: #052c65;
    stroke-width: 1.5;
    marker-end: url(#arrowhead);
}

.dimension-text {
    fill: #052c65;
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.annotation-text {
    fill: #dc3545;
    font-size: 10px;
    font-weight: 600;
}

/* Tab styles */
#pitchAngleTabs .nav-link {
    color: #052c65;
    border: 1px solid #dee2e6;
    margin-right: 5px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
}

#pitchAngleTabs .nav-link.active {
    background-color: #052c65;
    color: white;
    border-color: #052c65;
}

#pitchAngleTabs .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
}

/* Dark mode support */
[data-bs-theme="dark"] .roof-diagram {
    background: linear-gradient(135deg, #1a1d23 0%, #2d3748 100%);
}

[data-bs-theme="dark"] .dimension-line {
    stroke: #90cdf4;
}

[data-bs-theme="dark"] .dimension-text {
    fill: #90cdf4;
}

[data-bs-theme="dark"] #pitchAngleTabs .nav-link {
    color: #90cdf4;
    border-color: #4a5568;
    background-color: #2d3748;
}

[data-bs-theme="dark"] #pitchAngleTabs .nav-link.active {
    background-color: #3182ce;
    color: white;
    border-color: #3182ce;
}

[data-bs-theme="dark"] #pitchAngleTabs .nav-link:hover:not(.active) {
    background-color: #374151;
}

/* Results table styling */
.table-bordered td {
    padding: 0.4rem;
}

.table-bordered tbody tr:nth-child(4n) {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .table-bordered tbody tr:nth-child(4n) {
    background-color: rgba(255, 255, 255, 0.02);
}

