/* CalWhat Calculator Platform - FuelConsumptionCalculator Specific Styles */
/* This file contains calculator-specific styles */

    .input-group-custom {
        margin-bottom: 12px;
    }

    .input-label {
        font-weight: 500;
        color: #4a5568;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        position: relative;
    }

    .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;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-weight: 400;
    }

        .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-wrapper {
        position: relative;
    }

    .form-input {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        font-family: 'Roboto Mono', monospace;
        transition: all 0.3s ease;
        background: #f0fff4;
    }

        .form-input:focus {
            outline: none;
            border-color: #38a169;
            box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
            transform: translateY(-2px);
        }

    .form-input.error {
        border-color: #ef4444;
        animation: shake 0.5s ease;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }

    .input-range {
        font-size: 0.75rem;
        color: #2d3748;
        margin-top: 4px;
    }

    .result-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    @media (min-width: 992px) {
        .result-card {
            position: sticky;
            top: 20px;
        }
    }

    .result-item {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

        .result-item:last-child {
            border-bottom: none;
        }

    .result-item-label {
        font-size: 0.95rem;
        opacity: 0.9;
    }

    .result-item-value {
        font-family: 'Roboto Mono', monospace;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .result-main {
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 15px;
    }

    .result-label {
        font-size: 1rem;
        opacity: 0.95;
        margin-bottom: 8px;
    }

    .result-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 2.5rem;
        font-weight: 700;
        animation: pulse 0.5s ease;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    .comparison-box {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

    .comparison-positive {
        color: #68d391;
    }

    .comparison-negative {
        color: #fc8181;
    }

   

    .chart-container {
        position: relative;
        height: 350px;
        margin: 20px 0;
    }

    .table-responsive {
        overflow-x: auto;
        margin-top: 15px;
    }

    .records-table {
        width: 100%;
        border-collapse: collapse;
    }

        .records-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .records-table th,
        .records-table td {
            padding: 12px;
            text-align: center;
            border-bottom: 1px solid #e2e8f0;
        }

        .records-table tbody tr:hover {
            background: #f7fafc;
        }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }

    .stat-box {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 15px;
        text-align: center;
    }

        .stat-box .stat-value {
            font-family: 'Roboto Mono', monospace;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .stat-box .stat-label {
            font-size: 0.85rem;
            opacity: 0.9;
        }

    .trend-badge {
        display: inline-block;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        margin-top: 10px;
    }

    .trend-improving {
        background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
        color: white;
    }

    .trend-stable {
        background: linear-gradient(135deg, #90cdf4 0%, #4299e1 100%);
        color: white;
    }

    .trend-declining {
        background: linear-gradient(135deg, #fbd38d 0%, #f6ad55 100%);
        color: white;
    }

    .info-box {
        background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
        border: 2px solid #4dd0e1;
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

        .info-box p {
            color: #006064;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.6;
        }

            .info-box p:last-child {
                margin-bottom: 0;
            }

    .warning-box {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        border: 2px solid #ffc107;
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

        .warning-box p {
            color: #856404;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.6;
        }

            .warning-box p:last-child {
                margin-bottom: 0;
            }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .result-value {
            font-size: 2rem;
        }

        .glass-card {
            padding: 15px;
        }

        .chart-container {
            height: 250px;
        }
    }