.engine-power-estimator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
}

.engine-power-estimator-container * {
    box-sizing: border-box;
}

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

.engine-power-estimator-header-text {
    color: #ffffff !important;
    margin: 0;
    font-weight: 600;
}

/* Card Styles */
.engine-power-estimator-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(26, 83, 92, 0.1);
}

.engine-power-estimator-body {
    background: #ffffff;
    color: #1A202C;
    padding: 2rem;
}

/* Text Colors */
.engine-power-estimator-text-primary {
    color: #1a535c !important;
    font-weight: 600;
}

.engine-power-estimator-text-secondary {
    color: #4ecdc4 !important;
    font-weight: 600;
}

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

.engine-power-estimator-form-text {
    color: #4ecdc4 !important;
    font-size: 0.875em;
    opacity: 0.8;
}

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

.engine-power-estimator-select:focus,
.engine-power-estimator-input:focus {
    border-color: #1a535c;
    box-shadow: 0 0 0 0.2rem rgba(26, 83, 92, 0.15);
    outline: none;
}

.engine-power-estimator-input-text {
    background-color: #e9ecef;
    color: #1A202C !important;
    border-color: #dee2e6;
    font-weight: 500;
}

/* Button Styles */
#calculateBtn,
.engine-power-estimator-btn-primary,
.btn.engine-power-estimator-btn-primary {
    background: linear-gradient(135deg, #1a535c, #4ecdc4) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    width: 100% !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#calculateBtn:hover,
.engine-power-estimator-btn-primary:hover,
.btn.engine-power-estimator-btn-primary:hover {
    background: linear-gradient(135deg, #4ecdc4, #1a535c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(26, 83, 92, 0.3) !important;
    color: #ffffff !important;
}

#calculateBtn:active,
.engine-power-estimator-btn-primary:active {
    transform: translateY(0) !important;
}

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

.engine-power-estimator-output-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 83, 92, 0.15);
}

.engine-power-estimator-highlight-panel {
    background: linear-gradient(135deg, #e8f4f8, #d4e9f2) !important;
    border-color: #1a535c !important;
    border-width: 2px !important;
}

.engine-power-estimator-output-value {
    background: linear-gradient(45deg, #1a535c, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #1a535c !important;
    font-weight: 700;
}

.engine-power-estimator-output-label {
    color: #4ecdc4 !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.engine-power-estimator-output-unit {
    color: #6c757d !important;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Border Styles */
.engine-power-estimator-border-end {
    border-right: 2px solid #e9ecef !important;
}

.engine-power-estimator-border-bottom {
    border-bottom: 2px solid #e9ecef !important;
}

/* Results Container */
.engine-power-estimator-results {
    background: #ffffff;
    color: #1A202C;
    border-radius: 8px;
}

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

.engine-power-estimator-recommendations-panel {
    background: #ffffff !important;
    color: #1A202C;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.engine-power-estimator-small-text {
    font-size: 0.875em;
    color: #1A202C !important;
    line-height: 1.5;
}

.engine-power-estimator-recommendation {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #1a535c;
    background-color: #f8f9fa;
    border-radius: 0 6px 6px 0;
    color: #1A202C !important;
    transition: all 0.3s ease;
}

.engine-power-estimator-recommendation:hover {
    background-color: #e9ecef;
    transform: translateX(2px);
}

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

.engine-power-estimator-alert-info {
    background-color: #e8f4f8;
    border-color: #b8e1f2;
    color: #1A202C !important;
    border-left: 4px solid #1a535c;
}

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

.engine-power-estimator-alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #1A202C !important;
    border-left: 4px solid #ffc107;
}

/* Loading Styles */
.engine-power-estimator-spinner {
    color: #1a535c !important;
    width: 3rem;
    height: 3rem;
}

.engine-power-estimator-loading-text {
    color: #4ecdc4 !important;
    font-weight: 500;
}

/* Background Elements */
.engine-power-estimator-bg-light {
    background-color: #f8f9fa !important;
    color: #1A202C;
    border-radius: 6px;
}

/* Chart Container */
.engine-power-estimator-comparison-container {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
    padding: 15px;
    min-height: 280px;
    position: relative;
    width: 100%;
}

/* Ensure chart canvas fills container */
#powerChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

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

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

.engine-power-estimator-progress-bar {
    background: linear-gradient(135deg, #1a535c, #4ecdc4);
    transition: width 0.5s ease !important;
}

/* Status Colors */
.engine-power-estimator-status-excellent {
    color: #28a745 !important;
    font-weight: 600;
}

.engine-power-estimator-status-good {
    color: #20c997 !important;
    font-weight: 600;
}

.engine-power-estimator-status-fair,
.engine-power-estimator-status-marginal {
    color: #ffc107 !important;
    font-weight: 600;
}

.engine-power-estimator-status-poor,
.engine-power-estimator-status-undersized {
    color: #fd7e14 !important;
    font-weight: 600;
}

.engine-power-estimator-status-critical,
.engine-power-estimator-status-oversized {
    color: #dc3545 !important;
    font-weight: 600;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: white !important;
}

/* State Management */
#engine-power-estimator-loading {
    display: none;
}

#engine-power-estimator-loading.d-none {
    display: none !important;
}

#engine-power-estimator-loading:not(.d-none) {
    display: block !important;
}

#engine-power-estimator-results.d-none {
    display: none !important;
}

#engine-power-estimator-results:not(.d-none) {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .engine-power-estimator-container {
        padding: 15px;
    }

    .engine-power-estimator-body {
        padding: 1.5rem;
    }

    .engine-power-estimator-border-end {
        border-right: none !important;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .engine-power-estimator-output-panel {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .engine-power-estimator-container {
        padding: 10px;
    }

    .engine-power-estimator-body {
        padding: 1rem;
    }

    #calculateBtn,
    .engine-power-estimator-btn-primary,
    .btn.engine-power-estimator-btn-primary {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }

    .engine-power-estimator-comparison-container {
        height: 250px !important;
        padding: 10px;
    }
}

/* Print Styles */
@media print {

    .engine-power-estimator-btn-primary,
    .engine-power-estimator-form,
    #calculateBtn {
        display: none;
    }

    .engine-power-estimator-results {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .engine-power-estimator-container {
        padding: 0;
        margin: 0;
    }

    .engine-power-estimator-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .engine-power-estimator-output-value {
        -webkit-text-fill-color: #1a535c !important;
        background: none !important;
    }
}