/* Inflatable PSI Calculator Styles - Using Your Marine Color Scheme */
.inflatable-psi-calculator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
}

.inflatable-psi-calculator-container * {
    box-sizing: border-box;
}

/* Header Styles */
.inflatable-psi-calculator-header {
    background: linear-gradient(135deg, #07385D, #096D6D) !important;
    border-bottom: 3px solid #1A202C;
}

.inflatable-psi-calculator-header-text {
    color: #ffffff !important;
    margin: 0;
    font-weight: 600;
}

/* Card Styles */
.inflatable-psi-calculator-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(7, 56, 93, 0.1);
}

.inflatable-psi-calculator-body {
    background: #ffffff;
    color: #1A202C;
    padding: 2rem;
}

/* Text Colors */
.inflatable-psi-calculator-text-primary {
    color: #07385D !important;
    font-weight: 600;
}

.inflatable-psi-calculator-text-secondary {
    color: #096D6D !important;
    font-weight: 600;
}

/* Form Elements */
.inflatable-psi-calculator-label {
    color: #1A202C !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.inflatable-psi-calculator-form-text {
    color: #096D6D !important;
    font-size: 0.875em;
    opacity: 0.8;
}

.inflatable-psi-calculator-select,
.inflatable-psi-calculator-input {
    color: #1A202C !important;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.inflatable-psi-calculator-select:focus,
.inflatable-psi-calculator-input:focus {
    border-color: #07385D;
    box-shadow: 0 0 0 0.2rem rgba(7, 56, 93, 0.15);
    outline: none;
}

.inflatable-psi-calculator-input-text {
    background-color: #e9ecef;
    color: #1A202C !important;
    border-color: #dee2e6;
    font-weight: 500;
}

/* Button Styles */
.inflatable-psi-calculator-btn-primary {
    background: linear-gradient(135deg, #07385D, #096D6D);
    color: #ffffff !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inflatable-psi-calculator-btn-primary:hover {
    background: linear-gradient(135deg, #096D6D, #07385D);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(7, 56, 93, 0.3);
    color: #ffffff !important;
}

.inflatable-psi-calculator-btn-primary:active {
    transform: translateY(0);
}

/* Output Panels */
.inflatable-psi-calculator-output-panel {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.inflatable-psi-calculator-output-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 56, 93, 0.15);
}

.inflatable-psi-calculator-highlight-panel {
    background: linear-gradient(135deg, #e8f4f8, #d4e9f2) !important;
    border-color: #07385D !important;
    border-width: 2px !important;
}

.inflatable-psi-calculator-output-value {
    background: linear-gradient(45deg, #07385D, #096D6D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #07385D !important;
    font-weight: 700;
}

.inflatable-psi-calculator-output-label {
    color: #096D6D !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inflatable-psi-calculator-output-unit {
    color: #6c757d !important;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Border Styles */
.inflatable-psi-calculator-border-end {
    border-right: 2px solid #e9ecef !important;
}

.inflatable-psi-calculator-border-bottom {
    border-bottom: 2px solid #e9ecef !important;
}

/* Results Container */
.inflatable-psi-calculator-results {
    background: #ffffff;
    color: #1A202C;
    border-radius: 8px;
}

/* Details Panel */
.inflatable-psi-calculator-details-panel {
    background: #f8f9fa !important;
    color: #1A202C;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.inflatable-psi-calculator-recommendations-panel {
    background: #ffffff !important;
    color: #1A202C;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.inflatable-psi-calculator-small-text {
    font-size: 0.875em;
    color: #1A202C !important;
    line-height: 1.5;
}

.inflatable-psi-calculator-recommendation {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #07385D;
    background-color: #f8f9fa;
    border-radius: 0 6px 6px 0;
    color: #1A202C !important;
    transition: all 0.3s ease;
}

.inflatable-psi-calculator-recommendation:hover {
    background-color: #e9ecef;
    transform: translateX(2px);
}

/* Alert Styles */
.inflatable-psi-calculator-alert {
    background-color: #f8e8e8;
    border-color: #f5c6c6;
    color: #1A202C !important;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.inflatable-psi-calculator-alert.alert-info {
    background-color: #e8f4f8;
    border-color: #b8e1f2;
    color: #1A202C !important;
    border-left: 4px solid #07385D;
}

.inflatable-psi-calculator-alert.alert-success {
    background-color: #e8f6ef;
    border-color: #b8e6c9;
    color: #1A202C !important;
    border-left: 4px solid #28a745;
}

.inflatable-psi-calculator-alert.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #1A202C !important;
    border-left: 4px solid #ffc107;
}

/* Loading Styles */
.inflatable-psi-calculator-spinner {
    color: #07385D !important;
    width: 3rem;
    height: 3rem;
}

.inflatable-psi-calculator-loading-text {
    color: #096D6D !important;
    font-weight: 500;
}

/* Background Elements */
.inflatable-psi-calculator-container .bg-light {
    background-color: #f8f9fa !important;
    color: #1A202C;
    border-radius: 6px;
}

/* Chart Container */
.inflatable-psi-calculator-comparison-container {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
    padding: 15px;
}

/* Form Section Headers */
.inflatable-psi-calculator-container h5,
.inflatable-psi-calculator-container h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.inflatable-psi-calculator-container h5 {
    color: #096D6D !important;
}

.inflatable-psi-calculator-container h6 {
    color: #07385D !important;
}

/* Configuration Container */
.inflatable-psi-calculator-configuration-container {
    background: #f8f9fa !important;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Progress Bar Styles */
.inflatable-psi-calculator-progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
}

.inflatable-psi-calculator-progress-bar {
    background: linear-gradient(135deg, #07385D, #096D6D);
    transition: width 0.5s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .inflatable-psi-calculator-container {
        padding: 15px;
    }
    
    .inflatable-psi-calculator-body {
        padding: 1.5rem;
    }
    
    .inflatable-psi-calculator-border-end {
        border-right: none !important;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .inflatable-psi-calculator-output-panel {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .inflatable-psi-calculator-container {
        padding: 10px;
    }
    
    .inflatable-psi-calculator-body {
        padding: 1rem;
    }
    
    .inflatable-psi-calculator-btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .inflatable-psi-calculator-btn-primary,
    .inflatable-psi-calculator-form {
        display: none;
    }
    
    .inflatable-psi-calculator-results {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .inflatable-psi-calculator-container {
        padding: 0;
        margin: 0;
    }
}

/* Ensure no external style leakage */
.inflatable-psi-calculator-container {
    isolation: isolate;
}

/* Custom scrollbar for webkit browsers */
.inflatable-psi-calculator-container ::-webkit-scrollbar {
    width: 6px;
}

.inflatable-psi-calculator-container ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.inflatable-psi-calculator-container ::-webkit-scrollbar-thumb {
    background: #07385D;
    border-radius: 3px;
}

.inflatable-psi-calculator-container ::-webkit-scrollbar-thumb:hover {
    background: #096D6D;
}
/* Chart.js */
#psiChart {
    width: 100% !important;
    height: 100% !important;
}

/* Progress Bar Color Fix */
.progress-bar.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
}

/* Alert Icon Colors */
.alert-success .bi-check-circle {
    color: #28a745;
}

.alert-warning .bi-exclamation-triangle {
    color: #ffc107;
}

.alert-danger .bi-exclamation-octagon {
    color: #dc3545;
}

.alert-info .bi-info-circle {
    color: #07385D;
}

/* Responsive Chart */
@media (max-width: 768px) {
    .inflatable-psi-calculator-comparison-container {
        height: 250px !important;
        padding: 10px;
    }
    
    #psiChart {
        height: 230px !important;
    }
}