/* ===== Petrol Takip — büyük punto, sade tema ===== */
html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;               /* büyük temel punto */
}

a, .btn-link { color: #006bb7; }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Girişler ve butonlar biraz büyük */
.form-control, .form-select { font-size: 1.05rem; padding: .5rem .75rem; }
.form-control-lg, .form-select-lg { font-size: 1.2rem; }
.btn { font-size: 1.05rem; }
label.form-label { font-weight: 600; font-size: 1rem; }
table { font-size: 1.02rem; }
h1 { font-size: 2rem; font-weight: 700; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content { padding-top: 1.1rem; }
h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* ===== Layout ===== */
.page { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; flex-shrink: 0;
    background: linear-gradient(180deg, #1b3a5b 0%, #14293f 100%);
    color: #fff;
}
main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top-row {
    height: 64px; background: #fff; border-bottom: 1px solid #e3e3e3;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.content { padding: 1.25rem 1.5rem; }

/* ===== NavMenu ===== */
.nav-scrollable { padding: 1rem 0; }
.nav-baslik {
    color: #9db8d4; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
    padding: 1rem 1.25rem .25rem; margin-top: .25rem;
}
.nav-link {
    color: #dbe7f3 !important; font-size: 1.05rem; padding: .6rem .75rem !important;
    border-radius: 8px;
}
.nav-link:hover { background: rgba(255,255,255,.10); color: #fff !important; }
.nav-link.active { background: #2b6cb0; color: #fff !important; font-weight: 600; }

/* ===== Login ===== */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1b3a5b 0%, #14293f 100%); padding: 1rem;
}
.login-card {
    background: #fff; border-radius: 16px; padding: 2.5rem 2rem;
    width: 100%; max-width: 430px; box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.login-logo { font-size: 3.2rem; color: #1b6ec2; }
.login-baslik { font-size: 1.9rem; font-weight: 700; margin: .3rem 0 0; }
.login-logo-img { width: 62%; max-width: 210px; height: auto; display: inline-block; }
.login-etiket { width: 150px; flex: 0 0 150px; justify-content: flex-start; font-weight: 600; background: #f1f4f8; white-space: nowrap; font-size: 0.85rem !important; }

/* ===== Kartlar (dashboard) ===== */
.ozet-kart .card-body { padding: 1rem 1.25rem; }
.ozet-kart h2 { font-size: 2rem; margin: 0; font-weight: 700; }

.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "Bir hata oluştu."; }

.menu-toggle { color: #1b3a5b; font-size: 1.8rem; line-height: 1; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1040; }

/* ===== Mobil (yan menü hamburger'a katlanır) ===== */
@media (max-width: 991.98px) {
    html, body { font-size: 17px; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 1050;
        transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto;
    }
    .page.menu-acik .sidebar { transform: translateX(0); box-shadow: 2px 0 12px rgba(0,0,0,.35); }
    main { width: 100%; }
    .content { padding: 1rem; }
    .top-row { padding-left: .75rem; padding-right: .75rem; }

    /* Geniş tablolar taşmasın -> yatay kaydırılabilir */
    .table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Modallar küçük ekranda kenar boşlukları */
    .modal-dialog { margin: .5rem; }
}

