/* Modern mobil uygulama stili - assets/css/style.css */

/* Tema değişkenleri */
:root {
    --primary: #0066ff;
    --primary-600: #0052cc;
    --accent: linear-gradient(135deg, #4f46e5, #06b6d4);
    --muted: #6b7280;
    --bg: #f3f6fb;
    --card: #ffffff;
    --glass: rgba(255, 255, 255, 0.6);
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-1: 0 6px 18px rgba(12, 20, 40, 0.08);
    --shadow-2: 0 10px 30px rgba(10, 12, 22, 0.12);
    --touch: 52px;
    /* minimum hedef boyutu */
}

/* Global */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: radial-gradient(1000px 400px at 10% 10%, rgba(99, 102, 241, 0.06), transparent),
        radial-gradient(900px 300px at 90% 90%, rgba(6, 182, 212, 0.04), transparent),
        var(--bg);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App shell main area should expand so footer is fixed */
main {
    flex: 1 1 auto;
    padding-bottom: calc(var(--touch) + 28px);
    /* alt menü yerini aç */
}

/* Header - sticky, ince, modern */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sticky-header h5 {
    font-weight: 600;
    margin: 0;
    font-size: 1.05rem;
}

/* Card style */
.card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    border: none;
    background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.98));
    padding: .75rem;
}

/* Prominent vehicle card */
.card .fw-semibold {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Form inputs - daha dokunmatik */
.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 14px;
    height: 44px;
    box-shadow: none;
    border: 1px solid rgba(12, 20, 40, 0.06);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(0, 102, 255, 0.9);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.08);
}

/* Buttons - mobile hedefleri büyütüldü */
.btn {
    border-radius: 10px;
    padding: .5rem .9rem;
    min-height: 44px;
}

/* Small helpers */
.small {
    font-size: .8rem;
}

/* Vehicles list adjustments */
#vehiclesList .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* touch target buttons inside cards */
.selectVehicleBtn,
.editVehicleBtn,
.deleteVehicleBtn {
    min-width: 44px;
    padding: .35rem .6rem;
}

/* Mileage section (form) */
#mileageSection {
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 0.98));
}

/* Footer area - old footer hidden, we'll use bottom-nav */
footer.sticky-footer {
    display: none;
    /* replaced by bottom nav */
}

/* Bottom navigation (mobile app style) */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-bottom, 0px) + 8px) 12px 12px;
    pointer-events: auto;
    background: transparent;
}

.bottom-nav .nav-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

/* glass container for nav */
.bottom-nav .nav-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(12, 20, 40, 0.06);
}

/* nav button */
.bottom-nav .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 6px 8px;
    min-width: 56px;
    min-height: 48px;
    transition: transform .12s ease, color .12s ease;
    font-size: .68rem;
}

.bottom-nav .nav-btn:active {
    transform: translateY(1px);
}

.bottom-nav .nav-btn .bi {
    font-size: 1.25rem;
    line-height: 1;
}

/* active state */
.bottom-nav .nav-btn.active {
    color: var(--primary);
}

.bottom-nav .nav-btn.active .bi {
    transform: translateY(-2px);
}

/* FAB (merkezde büyük buton) */
.bottom-nav .fab-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-top: -36px;
    /* yükselti */
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.28), 0 6px 18px rgba(6, 182, 212, 0.14);
    border: 3px solid rgba(255, 255, 255, 0.6);
    transition: transform .14s cubic-bezier(.22, 1, .36, 1), box-shadow .12s;
    font-size: 1.25rem;
}

.fab:active {
    transform: translateY(2px) scale(.99);
}

/* Floating labels under icons */
.bottom-nav .nav-btn span {
    display: block;
    line-height: 1;
}

/* Larger targets on forms and lists */
.list-group-item {
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(12, 20, 40, 0.04);
    background: linear-gradient(180deg, #fff, #fcfdff);
    padding: 12px;
}

/* Modal adjustments */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal .form-control {
    height: 44px;
}

/* Login page tweaks */
.container .card {
    margin-top: 24px;
    padding: 1.1rem;
}

#loginForm .form-control {
    height: 48px;
    padding: 12px 14px;
}

/* Responsive adjustments for larger screens */
@media(min-width:768px) {
    .bottom-nav {
        display: flex;
        justify-content: center;
    }

    .bottom-nav .nav-wrap {
        max-width: 720px;
    }

    .fab {
        width: 68px;
        height: 68px;
    }
}