/* AirCompressorFillTimeCalculator.css - Calculator-specific styles only */
/* DO NOT redefine global classes: .glass-card, .form-input, .btn-custom, .btn-sponsor */

/* Tooltip styles */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    font-size: 0.7rem;
    cursor: help;
    margin-left: 5px;
    position: relative;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: opacity 0.3s;
    min-width: 150px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

/* Input unit display */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-wrapper .form-input {
    flex: 1;
    max-width: 150px;
}

.input-unit {
    color: #718096;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Section description */
.section-desc {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Result card styling */
.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.result-card .card-title {
    color: white !important;
}

.result-main {
    text-align: center;
    padding: 20px 0;
}

.result-main .result-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-main .result-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.2;
}

.result-main .result-value small {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 5px;
}

.result-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.result-item-label i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.result-item-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
}

/* Health status display */
.health-status-display {
    display: flex;
    align-items: center;
    height: 42px;
}

.health-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #e2e8f0;
    color: #718096;
}

.health-badge.healthy {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.health-badge.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
}

.health-badge.critical {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: white;
}

.health-result {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.health-ratio {
    font-size: 1rem;
    margin-bottom: 10px;
}

.health-ratio strong {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    color: #667eea;
}

.health-advice {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Unit converter */
.converter-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.converter-input .form-input:first-child {
    flex: 1;
}

.converter-input .form-input:last-child {
    width: 120px;
}

.converter-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.converter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.converter-item.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.converter-label {
    color: #718096;
    font-size: 0.85rem;
}

.converter-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    color: #2d3748;
}

/* Pressure table */
.pressure-table {
    overflow-x: auto;
}

.pressure-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pressure-table th,
.pressure-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.pressure-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.pressure-table tr:last-child td {
    border-bottom: none;
}

.pressure-table tr:hover td {
    background: #f7fafc;
}

/* Formula box in SEO section */
.formula-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
}

.formula-box p {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.formula-box ul {
    margin: 0;
    padding-left: 20px;
}

.formula-box li {
    margin-bottom: 5px;
    color: #4a5568;
}

/* Input row for two columns */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-row .input-group-custom {
    flex: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .input-row {
        flex-direction: column;
        gap: 10px;
    }

    .result-main .result-value {
        font-size: 2.5rem;
    }

    .converter-results {
        grid-template-columns: 1fr;
    }

    .converter-item.highlight {
        grid-column: span 1;
    }

    .converter-input {
        flex-direction: column;
    }

    .converter-input .form-input:last-child {
        width: 100%;
    }
}
