﻿/* ============================================================
   compact-override.css  v3
   Sneat teması üzerine Phoenix benzeri kompakt görünüm
   ============================================================ */

/* ── 1. GLOBAL FONT & BASE ──────────────────────────────── */
html {
    font-size: 13.5px;
}

body, .menu, .layout-wrapper, .content-wrapper,
.container-fluid, .container-xxl {
    font-size: 0.8125rem;
}

/* ── 2. SIDEBAR / MENU ──────────────────────────────────── */
.layout-menu.menu-vertical {
    width: 220px !important;
}

.app-brand {
    padding: 0.5rem 1rem !important;
    min-height: 46px !important;
}

    .app-brand .app-brand-text {
        font-size: 0.82rem !important;
    }

.menu-inner {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

.menu-header {
    padding: 0.5rem 1rem 0.15rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em;
}

.menu-link {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
}

.menu-icon {
    font-size: 1.05rem !important;
    margin-right: 0.5rem !important;
    width: 1.1rem !important;
}

.menu-sub .menu-link {
    padding: 0.32rem 1rem 0.32rem 2.4rem !important;
    font-size: 0.78rem !important;
}

.menu-toggle::after {
    font-size: 0.8rem !important;
}

/* ── 3. NAVBAR ──────────────────────────────────────────── */
.layout-navbar {
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-nav .nav-link {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.5rem !important;
}

.navbar-nav .nav-item .dropdown-toggle {
    font-size: 0.8rem !important;
}

.navbar-nav .d-flex .fw-semibold {
    font-size: 0.8rem !important;
}

.navbar-nav .d-flex .text-muted.small,
.navbar-nav .d-flex small {
    font-size: 0.7rem !important;
}

.navbar-nav .avatar, .navbar-nav .avatar img {
    width: 32px !important;
    height: 32px !important;
}

.navbar-nav .bx, .navbar-nav i.bx {
    font-size: 1.2rem !important;
}

/* ── 4. CONTENT WRAPPER ─────────────────────────────────── */
.content-wrapper > .container-xxl,
.content-wrapper > .container-fluid {
    padding: 0.75rem 1.25rem !important;
}

/* ── 5. SAYFA BAŞLIĞI ───────────────────────────────────── */
h3, h4, h4.fw-bold, .page-title {
    font-size: 1rem !important;
}

h5 {
    font-size: 0.9rem !important;
}

h6 {
    font-size: 0.82rem !important;
}

.breadcrumb {
    font-size: 0.75rem !important;
    margin-bottom: 0.4rem !important;
}

/* ── 6. CARD ────────────────────────────────────────────── */
.card {
    border-radius: 6px !important;
}

.card-header {
    padding: 0.55rem 1rem !important;
    font-size: 0.82rem !important;
}

.card-body {
    padding: 0.75rem 1rem !important;
}

.card-footer {
    padding: 0.45rem 1rem !important;
    font-size: 0.78rem !important;
}

.card-title {
    font-size: 0.88rem !important;
    margin-bottom: 0.5rem !important;
}

/* ── 7. TABLO ───────────────────────────────────────────── */
.table {
    font-size: 0.8rem !important;
}

    .table th {
        font-size: 0.72rem !important;
        padding: 0.4rem 0.75rem !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .table td {
        padding: 0.4rem 0.75rem !important;
        vertical-align: middle;
    }

.table-sm th, .table-sm td {
    padding: 0.28rem 0.55rem !important;
}

/* ── 8. FORM ────────────────────────────────────────────── */
.form-control, .form-select {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
    height: auto !important;
    min-height: 30px !important;
}

.form-label {
    font-size: 0.78rem !important;
    margin-bottom: 0.18rem !important;
}

.input-group-text {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
}

.form-check-label {
    font-size: 0.8rem !important;
}

.form-group {
    margin-bottom: 0.45rem !important;
}

.select2-container--bootstrap-5 .select2-selection {
    font-size: 0.8rem !important;
    min-height: 30px !important;
    padding: 0.25rem 0.6rem !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    font-size: 0.8rem !important;
    padding: 0.28rem 0.6rem !important;
}

/* ── 9. BUTONLAR ────────────────────────────────────────── */
.btn {
    font-size: 0.78rem !important;
    padding: 0.32rem 0.8rem !important;
    border-radius: 5px !important;
}

.btn-sm {
    font-size: 0.72rem !important;
    padding: 0.22rem 0.55rem !important;
}

.btn-lg {
    font-size: 0.9rem !important;
    padding: 0.45rem 1rem !important;
}

.btn i.bx, .btn i.bi {
    font-size: 0.95rem !important;
    vertical-align: -2px;
}

/* ── 10. BADGE ──────────────────────────────────────────── */
.badge {
    font-size: 0.68rem !important;
    padding: 0.25em 0.5em !important;
}

/* ── 11. MODAL ──────────────────────────────────────────── */
.modal-header {
    padding: 0.6rem 1rem !important;
}

.modal-title {
    font-size: 0.9rem !important;
}

.modal-body {
    padding: 0.75rem 1rem !important;
    font-size: 0.8rem !important;
}

.modal-footer {
    padding: 0.5rem 1rem !important;
}

/* ── 12. DROPDOWN ───────────────────────────────────────── */
.dropdown-menu {
    font-size: 0.78rem !important;
    padding: 0.2rem 0 !important;
}

.dropdown-item {
    padding: 0.32rem 0.85rem !important;
    font-size: 0.78rem !important;
}

.dropdown-header {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.85rem !important;
}

/* ── 13. ALERT & PAGINATION ─────────────────────────────── */
.alert {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
}

.page-link {
    font-size: 0.78rem !important;
    padding: 0.28rem 0.55rem !important;
}

/* ── 14. TABS ───────────────────────────────────────────── */
.nav-tabs .nav-link {
    font-size: 0.8rem !important;
    padding: 0.38rem 0.8rem !important;
}

.nav-pills .nav-link {
    font-size: 0.78rem !important;
    padding: 0.32rem 0.75rem !important;
}

/* ── 15. BOOTSTRAP SPACING OVERRIDE ────────────────────── */
.mb-3 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 0.7rem !important;
}

.mb-5 {
    margin-bottom: 0.9rem !important;
}

.mt-3 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 0.7rem !important;
}

.py-3 {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ── 16. ROW / GRID GAP ─────────────────────────────────── */
.row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.35rem;
}

.g-3, .gx-3, .gy-3 {
    --bs-gutter-x: 0.55rem !important;
    --bs-gutter-y: 0.45rem !important;
}

.g-4, .gx-4, .gy-4 {
    --bs-gutter-x: 0.7rem !important;
    --bs-gutter-y: 0.55rem !important;
}

.g-2, .gx-2, .gy-2 {
    --bs-gutter-x: 0.4rem !important;
    --bs-gutter-y: 0.3rem !important;
}

/* ── 17. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .layout-page {
        padding-left: 0 !important;
    }
}

/* ── 18. FULL WIDTH — container-xxl max-width kaldır ────── */
/* Sneat varsayılanı container-xxl ile içeriği ortalar ve yanları boş bırakır.
   Aşağıdaki kural tüm sayfalarda tam genişlik kullanımı sağlar.             */
.container-xxl,
.container-xl,
.container-lg {
    max-width: 100% !important;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
}

/* layout-page zaten padding-left:220px (sidebar) alıyor,
   content-wrapper'ın ekstra padding'ini sıfırla */
.content-wrapper {
    padding-right: 0 !important;
}
