/* Fuel Cost Calculator v2.0 — style.css */

.fcc-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

.fcc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.fcc-icon { font-size: 30px; line-height: 1; }
.fcc-title {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 0 2px !important; padding: 0 !important;
    border: none !important; color: #1a1a1a !important;
}
.fcc-subtitle { font-size: 13px; color: #777; margin: 0; }

.fcc-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

/* Toggle groups */
.fcc-toggle-group {
    display: flex;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
}
.fcc-toggle-group button {
    flex: 1;
    padding: 9px 8px;
    font-size: 13px;
    border: none;
    border-right: 1px solid #d8d8d8;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background .13s, color .13s;
    white-space: nowrap;
}
.fcc-toggle-group button:last-child { border-right: none; }
.fcc-toggle-group button:hover:not(.active) { background: #f4f4f4; }
.fcc-toggle-group button.active {
    background: #e8f0fe;
    color: #1a56db;
    font-weight: 600;
}

/* Input grid */
.fcc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 460px) { .fcc-grid { grid-template-columns: 1fr; } }

.fcc-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.fcc-input-wrap { position: relative; }

.fcc-input-wrap input[type="number"],
#fcc-app select {
    width: 100%; box-sizing: border-box;
    padding: 9px 44px 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.fcc-input-wrap input::-webkit-inner-spin-button,
.fcc-input-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; }
.fcc-input-wrap input:focus,
#fcc-app select:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.fcc-unit {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px; color: #999; pointer-events: none;
}
#fcc-app select {
    padding: 9px 12px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

/* Result */
.fcc-result {
    background: #f0f6ff;
    border: 1px solid #c2d8f8;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    animation: fcc-in .2s ease;
}
@keyframes fcc-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

.fcc-result-row { display: flex; align-items: center; }
.fcc-metric { flex: 1; text-align: center; }
.fcc-metric-sep { width: 1px; height: 44px; background: #c2d8f8; }
.fcc-metric-val { font-size: 21px; font-weight: 700; color: #0d2e6e; line-height: 1.2; }
.fcc-metric-lbl { font-size: 11px; color: #5a7ab5; margin-top: 3px; }
.fcc-summary {
    font-size: 13px; color: #3a5a9a;
    text-align: center; margin: 12px 0 0; line-height: 1.6;
}

/* Reset */
.fcc-reset {
    display: block; width: 100%;
    padding: 8px; font-size: 13px;
    color: #888; background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px; cursor: pointer;
    transition: background .13s, color .13s;
}
.fcc-reset:hover { background: #f5f5f5; color: #333; }
