/* ==========================================================
   Vehicle Fuel Tracker — Front-End Theme
   ========================================================== */

.vft-front-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e2530;
    box-sizing: border-box;
    padding: 10px 4px;
}

.vft-front-wrap * {
    box-sizing: border-box;
}

.vft-front-wrap h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #14213d;
}

.vft-front-wrap h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #14213d;
}

/* ---------------- Navigation ---------------- */
.vft-front-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e3e6ea;
    padding-bottom: 0;
}

.vft-front-nav a {
    padding: 10px 18px;
    text-decoration: none;
    background: transparent;
    color: #5a6474;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.vft-front-nav a:hover {
    color: #1863dc;
}

.vft-front-nav a.vft-front-nav-active {
    color: #1863dc;
    border-bottom: 3px solid #1863dc;
}

/* ---------------- Notices ---------------- */
.vft-front-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

.vft-front-notice ul {
    margin: 0;
    padding-left: 18px;
}

.vft-front-success {
    background: #eafaf0;
    border: 1px solid #34c471;
    color: #146c3a;
}

.vft-front-error {
    background: #fdecec;
    border: 1px solid #e5484d;
    color: #8a1f22;
}

.vft-front-warning {
    background: #fff7e6;
    border: 1px solid #f2ad4e;
    color: #8a5a00;
}

/* ---------------- Buttons ---------------- */
.vft-front-btn {
    display: inline-block;
    background: #1863dc;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.05s ease;
}

.vft-front-btn:hover {
    background: #124fb0;
}

.vft-front-btn:active {
    transform: scale(0.98);
}

.vft-front-btn-secondary {
    background: #eef0f3;
    color: #33394a !important;
}

.vft-front-btn-secondary:hover {
    background: #dde1e7;
}

/* ---------------- Forms ---------------- */
.vft-front-form {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 24px;
    max-width: 560px;
    box-shadow: 0 1px 3px rgba(20, 33, 61, 0.05);
}

.vft-front-form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #33394a;
}

.vft-front-form input,
.vft-front-form select,
.vft-front-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6dae0;
    border-radius: 8px;
    font-size: 14px;
    background: #fbfbfc;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.vft-front-form input:focus,
.vft-front-form select:focus,
.vft-front-form textarea:focus {
    outline: none;
    border-color: #1863dc;
    background: #fff;
}

.vft-front-form p em {
    color: #7a8290;
    font-size: 13px;
}

.vft-front-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
}

/* ---------------- Vehicle picker ---------------- */
.vft-front-vehicle-picker {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vft-front-vehicle-picker label {
    font-weight: 600;
    font-size: 14px;
}

.vft-front-vehicle-picker select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d6dae0;
    font-size: 14px;
    background: #fff;
}

/* ---------------- Tables ---------------- */
.vft-front-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 33, 61, 0.05);
}

.vft-front-table th,
.vft-front-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
}

.vft-front-table thead {
    background: #f5f7fa;
}

.vft-front-table thead th {
    font-weight: 700;
    color: #33394a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vft-front-table tbody tr:hover {
    background: #fafbfd;
}

.vft-front-table tbody tr:last-child td {
    border-bottom: none;
}

.vft-front-table a {
    color: #1863dc;
    text-decoration: none;
    font-weight: 600;
}

.vft-front-table a:hover {
    text-decoration: underline;
}

/* ---------------- Dashboard cards ---------------- */
.vft-front-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.vft-front-card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(20, 33, 61, 0.05);
    transition: box-shadow 0.15s ease;
}

.vft-front-card:hover {
    box-shadow: 0 4px 14px rgba(20, 33, 61, 0.08);
}

.vft-front-card p {
    margin: 6px 0;
    font-size: 14px;
    color: #444c5a;
}

.vft-front-card strong {
    color: #14213d;
}

/* ---------------- Mobile: stack tables like cards ---------------- */
@media (max-width: 700px) {
    .vft-front-table thead {
        display: none;
    }
    .vft-front-table, .vft-front-table tbody, .vft-front-table tr, .vft-front-table td {
        display: block;
        width: 100%;
    }
    .vft-front-table tr {
        margin-bottom: 12px;
        border: 1px solid #eef0f3;
        border-radius: 10px;
        padding: 10px 4px;
    }
    .vft-front-table td {
        border: none;
        padding: 6px 12px;
    }
    .vft-front-table td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: #7a8290;
    }
    .vft-front-summary td::before {
        content: "";
    }
    .vft-front-form {
        padding: 16px;
    }
}
