/* Engine Horsepower to Boat Size Ratio Advisor Styles */

/* Variables - Consistent with previous plugins */
:root {
    --hp-ratio-primary: #096D6D;
    --hp-ratio-secondary: #07385D;
    --hp-ratio-text-color: #1A202C;
    --hp-ratio-success: #28a745;
    --hp-ratio-danger: #dc3545;
    --hp-ratio-warning: #ffc107;
    --hp-ratio-info: #17a2b8;
    --hp-ratio-light-bg: #f8f9fa;
}

/* General styles */
.hp-ratio-calculator-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--hp-ratio-text-color);
}

/* Card styling */
.hp-ratio-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hp-ratio-header {
    background: linear-gradient(135deg, var(--hp-ratio-secondary) 0%, var(--hp-ratio-primary) 100%);
    color: #fff !important;
    padding-left: 1.5rem;
    border-bottom: 3px solid var(--hp-ratio-primary);
}

.hp-ratio-header h4 {
    font-weight: 600;
    margin: 0;
}

/* Input styles */
.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hp-ratio-primary);
    box-shadow: 0 0 0 0.2rem rgba(9, 109, 109, 0.25);
}

.input-group-sm .form-control,
.input-group-sm .form-select {
    height: calc(1.8125rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.input-group-text {
    background-color: #e9ecef;
    border: 1px solid #d1d5db;
}

/* Button styles */
.hp-ratio-btn-primary {
    background: linear-gradient(135deg, var(--hp-ratio-primary) 0%, var(--hp-ratio-secondary) 100%);
    border: none;
    color: #fff !important;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.hp-ratio-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 56, 93, 0.4);
    color: #fff !important;
}

.hp-ratio-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.hp-ratio-btn-loading {
    position: relative;
    color: transparent !important;
}

.hp-ratio-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: hp-ratio-spin 0.8s linear infinite;
}

@keyframes hp-ratio-spin {
    to { transform: rotate(360deg); }
}

/* Text colors */
.hp-ratio-text-primary { color: var(--hp-ratio-primary) !important; }
.hp-ratio-text-secondary { color: var(--hp-ratio-secondary) !important; }

/* Results styling */
.hp-ratio-output-panel {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hp-ratio-highlight-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--hp-ratio-primary) !important;
    box-shadow: 0 4px 15px rgba(9, 109, 109, 0.15);
}

.hp-ratio-output-value {
    background: linear-gradient(135deg, var(--hp-ratio-primary) 0%, var(--hp-ratio-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

/* Power gauge visualization */
.power-gauge-container {
    border: 1px solid #dee2e6;
}

.gauge-scale {
    border: 1px solid #e9ecef;
}

.gauge-bar {
    background: linear-gradient(90deg, #dc3545 0%, #28a745 50%, #ffc107 100%);
}

.current-power-indicator {
    background: var(--hp-ratio-primary) !important;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--hp-ratio-primary);
}

.power-markers span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hp-ratio-text-color);
}

/* Chart container */
.chart-container {
    background: var(--hp-ratio-light-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

/* Form text */
.form-text {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Message box */
#hp-ratio-message {
    border-radius: 0.5rem;
    border: none;
}

/* Loading spinner */
.spinner-border.hp-ratio-text-primary {
    color: var(--hp-ratio-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
    
    .hp-ratio-output-value {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 768px) {
    .hp-ratio-output-value {
        font-size: 2.5rem;
    }
}