/* 🔹 Barkod modalı */
.barcode-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barcode-dialog {
    width: 90%;
    max-width: 420px;
    background: #0b1120;
    color: #e5e7eb;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .barcode-dialog video {
        width: 100%;
        border-radius: 10px;
        background: #000;
    }

.barcode-header {
    font-size: 13px;
    text-align: center;
    margin-bottom: 4px;
}

/* Blazor default hata barını tamamen gizle */
#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 🔹 Tarayıcı default margin’i iptal – YAPALIM */
body {
    margin: 0;
}

/* 🔹 Footer yüksekliği (tüm layout buraya bakacak) */
:root {
    /* FooterNavbarComponent’in toplam yüksekliğine göre ayarla */
    --vo-footer-height: 80px;
}

/* Tüm sayfayı saran ana iskelet */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sayfa içeriği (Navbar ile Footer arasında kalan alan) */
.app-content {
    flex: 1 0 auto;
    padding-bottom: calc(var(--vo-footer-height) + 24px + env(safe-area-inset-bottom)) !important;
}

/* İstersen üst navbar için de kullanabilirsin
.app-content {
    padding-top: 8px;
    padding-bottom: calc(var(--vo-footer-height) + 16px + env(safe-area-inset-bottom));
}
*/

/* 🔹 Barkod popup alt butonları */
.barcode-footer {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

    .barcode-footer .btn-cancel {
        border-radius: 999px;
        border: none;
        padding: 4px 10px;
        font-size: 12px;
    }

/* 🔹 Eğer footer CSS'ini component’e ayrı yazmadıysan, globalden yönet: */
.footer-navbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--vo-footer-height);
    background-color: #09205a;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 1030;
    display: flex;
    align-items: center;
}


:root {
    --vo-navbar-height: 56px;
    --vo-footer-height: 80px;
    --site-module-max-width: 1180px;
    --site-module-radius: 16px;
    --site-module-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    --site-module-font-size: 0.86rem;
}

html, body {
    min-height: 100%;
    background: linear-gradient(180deg, #f4f7fb 0%, #edf3ff 100%);
}

body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1 0 auto;
    box-sizing: border-box;
    width: 100%;
    padding-top: calc(var(--vo-navbar-height) + 20px) !important;
    padding-bottom: calc(var(--vo-footer-height) + 40px + env(safe-area-inset-bottom)) !important;
}

.site-module-page {
    width: 100%;
    padding: 6px 12px 0;
    font-size: var(--site-module-font-size);
    line-height: 1.4;
}

.site-module-container {
    width: 100%;
    max-width: var(--site-module-max-width);
    margin: 0 auto;
}

.site-module-page h1,
.site-module-page h2,
.site-module-page h3 {
    margin-bottom: .75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}

.site-module-page > .site-module-container > h3:first-child,
.site-module-page > .site-module-container > h2:first-child {
    margin-top: 0;
    padding: 14px 18px;
    border-radius: var(--site-module-radius);
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    box-shadow: var(--site-module-shadow);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.site-module-page .card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--site-module-radius);
    box-shadow: var(--site-module-shadow);
    overflow: hidden;
}

.site-module-page .card-header {
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-weight: 700;
}

.site-module-page .card-body {
    padding: 0.85rem;
}

.site-module-page .table-responsive {
    border-radius: 18px;
}

.site-module-page .table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.76rem;
    border-bottom-width: 1px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.site-module-page .table tbody td {
    font-size: 0.82rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.site-module-page .table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.site-module-page .alert {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-module-page .btn {
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
}

.site-module-page .form-control,
.site-module-page .form-select {
    min-height: 38px;
    border-radius: 10px;
    border-color: #cbd5e1;
    font-size: 0.82rem;
}

.site-module-page textarea.form-control {
    min-height: 96px;
}

.site-module-page .form-control:focus,
.site-module-page .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14);
}

.site-module-page .sm-shell {
    max-width: none;
    margin: 0;
    padding: 0;
}

.site-module-page .sm-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    border-radius: var(--site-module-radius);
    padding: 14px 16px;
    box-shadow: var(--site-module-shadow);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.site-module-page .sm-head h3 {
    margin-bottom: 0.2rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    font-size: 1.08rem;
}

.site-module-page .sm-kicker {
    font-size: .68rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-module-page .sm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.site-module-page .sm-card {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%, #60a5fa 100%);
    color: #fff;
    padding: 14px;
    min-height: 98px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.site-module-page .sm-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.site-module-page .sm-card span {
    font-size: 1.2rem;
    line-height: 1;
}

.site-module-page .sm-card strong {
    font-size: .86rem;
    line-height: 1.2;
}

.site-module-page .sm-card small {
    opacity: .92;
    font-size: .72rem;
    line-height: 1.3;
}


.site-module-page .form-label,
.site-module-page .small,
.site-module-page small,
.site-module-page .text-muted {
    font-size: 0.78rem;
}

.site-module-page .badge {
    font-size: 0.72rem;
    padding: 0.4em 0.65em;
}

.site-module-page h1,
.site-module-page .site-module-title {
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
}

.site-module-page h2 {
    font-size: clamp(1.02rem, 1.2vw, 1.2rem);
}

.site-module-page h3 {
    font-size: clamp(0.96rem, 1vw, 1.08rem);
}

@media (max-width: 768px) {
    .app-content {
        padding-top: calc(var(--vo-navbar-height) + 16px) !important;
        padding-bottom: calc(var(--vo-footer-height) + 32px + env(safe-area-inset-bottom)) !important;
    }

    .site-module-page {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.88rem;
    }

    .site-module-page .card-body {
        padding: 0.9rem;
    }

    .site-module-page .sm-head {
        padding: 16px;
    }

    .site-module-page .sm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .site-module-page .sm-card {
        padding: 14px;
        min-height: 104px;
    }

    .site-module-page .sm-card span {
        font-size: 1.2rem;
    }

    .site-module-page .sm-card strong {
        font-size: 0.88rem;
    }

    .site-module-page .sm-card small {
        font-size: 0.72rem;
    }
}

.site-tahsilat-page {
    font-size: 0.82rem;
}

.site-tahsilat-page h1,
.site-tahsilat-page h2,
.site-tahsilat-page h3 {
    font-size: 1.5em;
}

.site-tahsilat-page .card-header,
.site-tahsilat-page .btn,
.site-tahsilat-page .form-label,
.site-tahsilat-page .form-control,
.site-tahsilat-page .form-select,
.site-tahsilat-page .table,
.site-tahsilat-page .alert {
    font-size: 1em;
}

.site-tahsilat-page .small {
    font-size: 0.92em !important;
}

@media (max-width: 768px) {
    .app-content,
    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .site-module-page {
        padding-top: 8px !important;
        margin-top: 0 !important;
    }

    .site-module-container {
        padding-top: 0 !important;
    }
}


