/* Refrigerant Charge Calculator Styles */

.refrigerant-diagram-container {
    min-height: 220px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refrigerant-diagram-container svg {
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.15));
    max-width: 100%;
    height: auto;
}

.outdoor-unit {
    fill: #f3f4f6;
    stroke: #9ca3af;
    stroke-width: 2;
}

.indoor-unit {
    fill: #fef3c7;
    stroke: #d97706;
    stroke-width: 2;
}

.compressor-icon {
    fill: #ef4444;
    stroke: #991b1b;
    stroke-width: 2;
}

.liquid-line {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.suction-line {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.diagram-label {
    fill: #374151;
    font-size: 10px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Input groups styling */
.input-group .form-control {
    flex: 1 1 auto;
}

.input-group .form-select {
    flex: 0 0 auto;
    min-width: 80px;
}

/* Results styling */
#refrigerantResults .card-header {
    background: linear-gradient(135deg, #052c65 0%, #0a4c99 100%);
}

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

[data-bs-theme="dark"] .outdoor-unit {
    fill: #374151;
    stroke: #6b7280;
}

[data-bs-theme="dark"] .indoor-unit {
    fill: #451a03;
    stroke: #ea580c;
}

[data-bs-theme="dark"] .compressor-icon {
    fill: #dc2626;
    stroke: #7f1d1d;
}

[data-bs-theme="dark"] .diagram-label {
    fill: #d1d5db;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .refrigerant-diagram-container {
        min-height: 200px;
        margin-top: 20px;
    }
    
    .refrigerant-diagram-container svg {
        max-height: 220px;
    }
}
