/* Variables are defined within the main container to avoid global scope issues */
.fcc-calculator-container {
    --fcc-primary-color: #2c3e50;
    --fcc-secondary-color: #34495e;
    --fcc-accent-color-green: #2ecc71;
    --fcc-accent-color-orange: #e67e22;
    --fcc-text-color: #ecf0f1;
    --fcc-gauge-background: #444;
    --fcc-card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --fcc-border-radius: 12px;
    
    background-color: var(--fcc-secondary-color);
    padding: 2.5rem;
    border-radius: var(--fcc-border-radius);
    box-shadow: var(--fcc-card-shadow);
    width: 100%;
    max-width: 750px;
    text-align: center;
    margin: 2rem auto; /* Center the calculator on the page */
    color: var(--fcc-text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fcc-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.fcc-input-fields {
    flex: 2;
    min-width: 300px;
}

.fcc-fuel-price-panel {
    flex: 1;
    min-width: 180px;
    background-color: var(--fcc-primary-color);
    padding: 1.5rem;
    border-radius: var(--fcc-border-radius);
}

.fcc-calculator-container h1 {
    margin-bottom: 2rem;
    color: var(--fcc-accent-color-green);
    font-size: 2.5rem;
}

.fcc-calculator-container h3 {
    color: var(--fcc-text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.fcc-fuel-price-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.fcc-fuel-price-item {
    background-color: var(--fcc-secondary-color);
    border: 2px solid transparent;
    padding: 0.75rem 0.5rem;
    border-radius: var(--fcc-border-radius);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.fcc-fuel-price-item:hover {
    border-color: var(--fcc-accent-color-orange);
}

.fcc-fuel-price-item.active {
    border-color: var(--fcc-accent-color-green);
    background-color: #4a637c;
}

.fcc-fuel-price-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--fcc-accent-color-orange);
}

.fcc-fuel-name {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
}

.fcc-fuel-price {
    font-size: 0.8rem;
    color: #bdc3c7;
}

.fcc-input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.fcc-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fcc-accent-color-orange);
}

.fcc-calculator-container input[type="number"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid transparent;
    border-radius: var(--fcc-border-radius);
    background-color: var(--fcc-primary-color);
    color: var(--fcc-text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.fcc-calculator-container input[type="number"]:focus {
    outline: none;
    border-color: var(--fcc-accent-color-green);
}

.fcc-calculate-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--fcc-border-radius);
    background-color: var(--fcc-accent-color-green);
    color: var(--fcc-primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fcc-calculate-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
}

.fcc-results-container {
    margin-top: 2rem;
    display: none;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.fcc-result-card {
    background-color: var(--fcc-primary-color);
    padding: 1.5rem;
    border-radius: var(--fcc-border-radius);
    flex: 1;
    min-width: 220px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.fcc-result-card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--fcc-accent-color-orange);
}

.fcc-gauge-container {
    width: 180px;
    height: 90px;
    position: relative;
    margin: 1.5rem auto 1rem;
    overflow: hidden;
}

.fcc-gauge-dial {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    background: conic-gradient(from -90deg, var(--fcc-gauge-background) 0deg, var(--fcc-gauge-background) 180deg);
    transition: background 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.fcc-gauge-needle {
    width: 4px;
    height: 75px;
    background-color: #fff;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 2px 2px 0 0;
    z-index: 2;
}

.fcc-gauge-center {
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: -7.5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.fcc-consumption-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--fcc-text-color);
}
.fcc-cost-per-km {
    font-size: 0.9rem;
    color: #bdc3c7; /* A lighter, secondary text color */
    margin-top: 0.5rem;
}

.fcc-result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--fcc-accent-color-green);
    margin-top: 0.5rem;
}