.fire-extinguisher-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1A202C;
}

.fire-extinguisher-calculator-header {
    background: linear-gradient(135deg, #07385D, #096D6D) !important;
    border-bottom: 3px solid #1A202C;
}

.fire-extinguisher-calculator-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.fire-extinguisher-calculator-text-primary {
    color: #096D6D !important;
}

.fire-extinguisher-calculator-text-secondary {
    color: #07385D !important;
}

.fire-extinguisher-calculator-btn-primary {
    background: linear-gradient(135deg, #096D6D, #07385D);
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fire-extinguisher-calculator-btn-primary:hover {
    background: linear-gradient(135deg, #07385D, #096D6D);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 56, 93, 0.3);
}

.fire-extinguisher-calculator-output-panel {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6 !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #1A202C;
}

.fire-extinguisher-calculator-output-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fire-extinguisher-calculator-highlight-panel {
    background: linear-gradient(135deg, #e8f4f8, #d4e9f2) !important;
    border-color: #096D6D !important;
}

.fire-extinguisher-calculator-output-value {
    background: linear-gradient(45deg, #096D6D, #07385D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Risk Meter */
.risk-meter .meter-bar {
    background: linear-gradient(90deg, #07385D 0%, #096D6D 25%, #1A202C 50%, #096D6D 75%, #07385D 100%) !important;
    height: 25px;
    border-radius: 12px;
}

.risk-meter .current-risk {
    width: 6px;
    height: 35px;
    top: -5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 3px;
    background: #1A202C;
}

.risk-markers span {
    font-size: 10px;
    transform: translateX(-50%);
    top: 5px;
    color: #1A202C;
    font-weight: 600;
}

.scale-labels span {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    padding:0px 2px;
}

/* Safety Status */
.safety-status {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.safety-status-excellent { background-color: #096D6D; color: white; }
.safety-status-good { background-color: #07385D; color: white; }
.safety-status-adequate { background-color: #1A202C; color: white; }
.safety-status-warning { background-color: #07385D; color: white; }
.safety-status-danger { background-color: #1A202C; color: white; }

/* Extinguisher Cards */
.extinguisher-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    color: #1A202C;
    background: white;
}

.extinguisher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 56, 93, 0.15);
}

.extinguisher-recommended {
    border: 2px solid #096D6D;
    background: linear-gradient(135deg, #f0f9ff, #e6f3ff);
}

.extinguisher-abc { border-left: 4px solid #096D6D; }
.extinguisher-bc { border-left: 4px solid #07385D; }
.extinguisher-co2 { border-left: 4px solid #1A202C; }
.extinguisher-clean-agent { border-left: 4px solid #096D6D; }
.extinguisher-water { border-left: 4px solid #07385D; }
.extinguisher-foam { border-left: 4px solid #1A202C; }

.extinguisher-recommendation {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 4px solid #096D6D;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
    color: #1A202C;
}

/* Loading Animation */
.fire-extinguisher-calculator-btn-loading {
    position: relative;
    color: transparent !important;
}

.fire-extinguisher-calculator-btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fire-extinguisher-calculator-spinner 0.8s ease infinite;
}

@keyframes fire-extinguisher-calculator-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Form Styles */
.form-select:focus, .form-control:focus {
    border-color: #096D6D;
    box-shadow: 0 0 0 0.2rem rgba(9, 109, 109, 0.25);
}

.form-label {
    color: #1A202C;
    font-weight: 600;
}

.form-text {
    color: #07385D;
}

.form-select, .form-control {
    color: #1A202C;
    border: 1px solid #dee2e6;
}

/* Alert Styles */
.alert-info {
    background-color: #e8f4f8;
    border-color: #b8e1f2;
    color: #1A202C;
}

.alert-danger {
    background-color: #f8e8e8;
    border-color: #f5c6c6;
    color: #1A202C;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #1A202C;
}

.alert-success {
    background-color: #e8f6f0;
    border-color: #c3e6cb;
    color: #1A202C;
}

/* Badge Styles */
.badge {
    font-size: 11px;
    font-weight: 600;
}

.badge.bg-success {
    background-color: #096D6D !important;
    color: white;
}

/* Text elements */
h4, h5, h6, p, span, div, small {
    color: #1A202C;
}

.text-muted {
    color: #6c757d !important;
}

.text-uppercase {
    color: #1A202C;
}

/* Card body and general text */
.card-body {
    color: #1A202C;
    background: white;
}

.card-header h4 {
    color: white !important;
}

.small {
    color: #1A202C;
}

.mb-0, .mb-1, .mb-2, .mb-3, .mb-4 {
    color: #1A202C;
}

.fw-bold, .fw-bolder {
    color: #1A202C;
}

.display-6 {
    color: #1A202C;
}

/* Background elements */
.bg-light {
    background-color: #f8f9fa !important;
    color: #1A202C;
}

.bg-white {
    background-color: white !important;
    color: #1A202C;
}

/* Border colors */
.border {
    border-color: #dee2e6 !important;
}

.border-end {
    border-color: #dee2e6 !important;
}

.border-bottom {
    border-color: #dee2e6 !important;
}

/* Input group */
.input-group-text {
    background-color: #e9ecef;
    color: #1A202C;
    border-color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fire-extinguisher-calculator-container {
        padding: 10px;
    }
    
    .fire-extinguisher-calculator-output-panel {
        margin-bottom: 1rem;
    }
    
    .risk-meter {
        margin: 1rem 0;
    }
    
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .fire-extinguisher-calculator-btn-primary,
    .fire-extinguisher-calculator-form {
        display: none;
    }
    
    .fire-extinguisher-calculator-results {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Additional contrast fixes */
.bg-secondary {
    background-color: #6c757d !important;
}

.bg-opacity-25 {
    opacity: 0.25;
}

/* Ensure no dark text on dark backgrounds */
.fire-extinguisher-calculator-header * {
    color: white !important;
}

.fire-extinguisher-calculator-btn-primary * {
    color: white !important;
}

.safety-status * {
    color: white !important;
}

/* Chart container background */
.strength-chart-container,
.distribution-chart-container {
    background: white;
}

/* Meter background */
.meter-scale {
    background: white !important;
}