/* ==========================================================================
   TOYA AIDAT SISTEMI - PROFESYONEL ADMIN PANEL STIL DOSYASI
   ========================================================================== */

:root {
    --bg-primary: #f8f9fa;
    --bg-sidebar: linear-gradient(180deg, #1e272e, #0a3d62);
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --accent-color: #38ef7d;
    --primary-gradient: linear-gradient(135deg, #0984e3, #6c5ce7);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --sidebar-width: 260px;
}

/* Koyu Tema (Dark Mode) DeÄiÅkenleri */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* --- GLASSMORPHISM LOGIN PAGE --- */
.login-wrapper {
    background: linear-gradient(135deg, #111827, #312e81);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: #ffffff;
}
.glass-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
}
.glass-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.5);
}

/* --- MAIN PANEL LAYOUT --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sabit Sol Sidebar */
.sidebar-panel {
    background: var(--bg-sidebar);
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-panel.collapsed { width: 60px; }
.sidebar-panel.collapsed .sidebar-brand .logo-text { display: none !important; }
.sidebar-panel.collapsed .sidebar-brand { padding: 1.25rem 0.5rem; justify-content: center !important; text-align: center; }
.sidebar-panel.collapsed .sidebar-brand .logo-wrapper { justify-content: center; width: 100%; }
.sidebar-panel.collapsed .sidebar-brand .logo-icon { font-size: 1.85rem !important; margin: 0 !important; }
.sidebar-panel.collapsed .menu-toggle { justify-content: center; padding: 0.75rem 0; }
.sidebar-panel.collapsed .menu-toggle .menu-text,
.sidebar-panel.collapsed .menu-toggle .menu-arrow,
.sidebar-panel.collapsed .menu-link span,
.sidebar-panel.collapsed .menu-accordion .menu-collapse { display: none; }
.sidebar-panel.collapsed .menu-toggle .menu-icon,
.sidebar-panel.collapsed .menu-link .menu-icon { width: auto; font-size: 1.2rem; margin: 0; }
.sidebar-panel.collapsed .menu-link { justify-content: center; padding: 0.75rem 0; }
.sidebar-panel.collapsed .sidebar-menu { padding: 1rem 0.5rem; }
.sidebar-panel.collapsed .apartment-selector,
.sidebar-panel.collapsed .language-selector { display: none !important; }
.sidebar-panel.collapsed .sidebar-footer { padding: 0.75rem 0.5rem; }
.sidebar-panel.collapsed .sidebar-footer hr { display: none !important; }

.main-body {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-body.expanded { margin-left: 60px; width: calc(100% - 60px); }

/* --- SIDEBAR ELEMENTS & TOYA LOGO --- */
.logo-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.logo-icon {
    font-size: 1.65rem !important;
    display: inline-block !important;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s ease;
    animation: logoHeartbeat 2.4s infinite ease-in-out;
}
@keyframes logoHeartbeat {
    0% { transform: scale(1); }
    12% { transform: scale(1.18); }
    24% { transform: scale(1); }
    36% { transform: scale(1.12); }
    48% { transform: scale(1); }
    100% { transform: scale(1); }
}
.logo-wrapper:hover .logo-icon {
    animation-duration: 1.2s;
}

.sidebar-brand {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header {
    flex-shrink: 0;
}
.sidebar-menu {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* Sidebar menÃ¼ arama kutusu */
.sidebar-search {
    flex-shrink: 0;
    padding: 0.55rem 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-search .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.35rem 1.85rem 0.35rem 1.9rem;
    border-radius: 8px;
}
.sidebar-search .form-control::placeholder { color: rgba(255,255,255,0.4); }
.sidebar-search .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(9,132,227,0.6);
    box-shadow: none;
}
.sidebar-search-icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    pointer-events: none;
}
.sidebar-search-clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
}
.sidebar-search-clear:hover { color: #ffffff; }
.sidebar-panel.collapsed .sidebar-search { display: none; }

/* Arama aktifken normal menüyü gizle, arama sonuçlarını göster */
.sidebar-panel.searching #sidebarMenuContainer,
.sidebar-panel.searching .sidebar-menu { 
    display: none !important; 
}
.sidebar-panel.searching #sidebarSearchResults { 
    display: block !important; 
}

/* Arama sonuçları alanı */
.sidebar-search-results {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 0.65rem 1rem;
}
.sidebar-search-results::-webkit-scrollbar { width: 4px; }
.sidebar-search-results::-webkit-scrollbar-track { background: transparent; }
.sidebar-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-search-group {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.25rem;
}
.sidebar-search-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}
.sidebar-search-link:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    transform: translateX(3px);
}
.sidebar-search-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.6rem;
    font-size: 0.88rem;
}
.sidebar-search-empty {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-align: center;
    padding: 2rem 0.75rem;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.15);
}

/* Accordion Group */
.menu-accordion { margin-bottom: 0.25rem; }

/* Toggle Button (Group Header) */
.menu-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-align: left;
    gap: 0.5rem;
}
.menu-toggle:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}
.menu-toggle .menu-text {
    flex: 1;
    font-weight: 500;
}
.menu-toggle .menu-icon {
    width: 22px;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.menu-toggle .menu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.menu-accordion.open > .menu-toggle .menu-arrow {
    transform: rotate(180deg);
}

/* Collapse Panel */
.menu-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin: 0;
}
.menu-accordion.open > .menu-collapse {
    max-height: 2600px;
    opacity: 1;
    margin: 0.25rem 0 0.25rem 0.5rem;
}

/* Menu Link (Sub-items) */
.menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.65);
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}
.menu-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.07);
}
.menu-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(9,132,227,0.3);
}
.menu-link i {
    width: 18px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Solo item (no collapse) */
.menu-accordion.solo .menu-link {
    padding: 0.65rem 0.85rem;
    color: rgba(255,255,255,0.75);
    gap: 0.5rem;
}
.menu-accordion.solo .menu-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

/* Submenu header inside accordion collapse */
.menu-subheader {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem 0.85rem 0.25rem;
    margin-top: 0.4rem;
    color: rgba(255,255,255,0.35);
    background: none;
    border: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 6px;
}
.menu-subheader:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0.15rem;
}
.menu-subheader:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
}
.menu-subheader i {
    width: 16px;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.menu-subheader .menu-text,
.menu-subheader > span {
    flex: 1;
}
.menu-subheader .menu-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.menu-subheader.open .menu-arrow {
    transform: rotate(180deg);
}

/* Collapsible subgroup under a subheader */
.menu-subgroup {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
    opacity: 0;
    margin: 0;
}
.menu-subheader.open + .menu-subgroup {
    opacity: 1;
    margin: 0.1rem 0 0.25rem;
}

.menu-collapse .menu-link {
    padding-left: 1rem;
}
.menu-subgroup .menu-link {
    padding-left: 1.15rem;
}

/* Custom right-click (context) menu for sidebar */
.toya-context-menu {
    position: fixed;
    z-index: 2000;
    min-width: 190px;
    padding: 0.35rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    font-size: 0.82rem;
    user-select: none;
    display: none;
}
.toya-context-menu.active { display: block; }
.toya-context-menu .toya-ctx-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.7rem;
    border: none;
    background: none;
    color: var(--text-color, #212529);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 0.82rem;
}
.toya-context-menu .toya-ctx-item:hover { background: var(--bg-soft, #f1f3f5); }
.toya-context-menu .toya-ctx-item i { width: 16px; text-align: center; font-size: 0.8rem; color: var(--text-muted, #6c757d); }
.toya-context-menu .toya-ctx-sep {
    height: 1px;
    margin: 0.25rem 0.5rem;
    background: var(--border-color, #dee2e6);
}
.menu-accordion.solo .menu-link.active {
    background: var(--primary-gradient);
    transform: translateX(4px);
}
.menu-accordion.logout { margin-top: 0.5rem; }

/* --- NAVBAR STYLES --- */
.navbar-custom {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Navbar ikon butonlarÄ± (apartman, dil, menÃ¼) */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.nav-icon-btn:hover,
.nav-icon-btn.show {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-main);
}
.nav-icon-btn .fi {
    font-size: 18px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.nav-icon-btn .apt-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
}
.nav-icon-btn.dropdown-toggle::after {
    display: none;
}

/* SaÄdan aÃ§Ä±lan menÃ¼ (offcanvas) */
.toya-nav-offcanvas {
    width: 320px !important;
    background-color: var(--bg-card);
    color: var(--text-main);
}
.toya-nav-offcanvas .offcanvas-header {
    background-color: var(--bg-card);
    color: var(--text-main);
}
.toya-nav-offcanvas .btn-close {
    filter: none;
}
html[data-theme="dark"] .toya-nav-offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.toya-nav-offcanvas .form-select,
.toya-nav-offcanvas .form-control {
    background-color: var(--bg-primary);
    color: var(--text-main);
    border-color: var(--border-color);
}
.toya-nav-offcanvas a {
    color: var(--text-main);
}
.toya-nav-offcanvas a:hover {
    background-color: var(--bg-primary);
    border-radius: 8px;
}
.toya-nav-offcanvas .bg-light-subtle {
    background-color: var(--bg-primary) !important;
}

/* --- MODERN CARD MECHANICS --- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* --- RESPONSIVE WORK --- */
@media (max-width: 991.98px) {
    .sidebar-panel {
        left: calc(-1 * var(--sidebar-width));
    }
    .sidebar-panel.active {
        left: 0;
    }
    .main-body {
        margin-left: 0;
        width: 100%;
    }
}

/* ================================================================
   FAZ-7: DARK THEME GENÄ°ÅLETME + BÄ°LDÄ°RÄ°M + NAVBAR STYLES
   ================================================================ */

/* Dark Mode BileÅen DÃ¼zeltmeleri */
[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #f1f5f9;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-hover-bg: rgba(255,255,255,0.05);
}
[data-theme="dark"] .table-light {
    --bs-table-bg: #1e293b !important;
    --bs-table-color: #f1f5f9 !important;
}
[data-theme="dark"] .btn-light {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}
[data-theme="dark"] .btn-light:hover {
    background: #475569;
    color: #ffffff;
}
[data-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background: #475569;
    color: #ffffff;
}
[data-theme="dark"] .modal-content {
    background: #1e293b;
    color: #f1f5f9;
}
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #334155;
}
[data-theme="dark"] .btn-close {
    filter: invert(1);
}
[data-theme="dark"] input.form-control,
[data-theme="dark"] select.form-select,
[data-theme="dark"] textarea.form-control {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] input.form-control:focus,
[data-theme="dark"] select.form-select:focus,
[data-theme="dark"] textarea.form-control:focus {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #3b82f6;
}
[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}
[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border: 1px solid #334155;
}
[data-theme="dark"] .dropdown-item {
    color: #f1f5f9;
}
[data-theme="dark"] .dropdown-item:hover {
    background: #334155;
    color: #ffffff;
}
[data-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}
[data-theme="dark"] .bg-light {
    background-color: #334155 !important;
}
[data-theme="dark"] .card-header.bg-white {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155;
}
[data-theme="dark"] .modal-header.bg-success  { background: #166534 !important; }
[data-theme="dark"] .modal-header.bg-danger   { background: #991b1b !important; }
[data-theme="dark"] .modal-header.bg-primary  { background: #1e40af !important; }
[data-theme="dark"] .alert {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .alert-success {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}
[data-theme="dark"] .alert-danger {
    background: #450a0a;
    border-color: #991b1b;
    color: #fca5a5;
}
[data-theme="dark"] .alert-warning {
    background: #451a03;
    border-color: #92400e;
    color: #fcd34d;
}
[data-theme="dark"] .alert-info {
    background: #0c4a6e;
    border-color: #075985;
    color: #bae6fd;
}
[data-theme="dark"] .nav-tabs .nav-link {
    color: #94a3b8;
    border-color: #334155;
}
[data-theme="dark"] .nav-tabs .nav-link.active {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155 #334155 #1e293b;
}
[data-theme="dark"] .nav-tabs {
    border-bottom-color: #334155;
}
[data-theme="dark"] .list-group-item {
    background: transparent;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .page-link {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
}
[data-theme="dark"] .page-item.disabled .page-link {
    background: #0f172a;
    color: #64748b;
}
[data-theme="dark"] .progress {
    background: #334155;
}
[data-theme="dark"] hr {
    border-color: #334155;
}
[data-theme="dark"] .table-hover tbody tr:hover {
    --bs-table-hover-bg: rgba(255,255,255,0.05);
}

/* Top Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width, 260px);
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #0a3d62, #0984e3);
    padding: 0.6rem 1.5rem;
    transition: left 0.3s ease;
}
.main-body.expanded .top-navbar {
    left: 60px;
}
/* Ana iÃ§erik padding'i navbar yÃ¼ksekliÄi kadar */
.content-wrapper {
    padding-top: 52px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    flex: 1;
}

/* Bildirim Paneli */
.notification-panel {
    position: fixed;
    top: 52px;
    right: 1.5rem;
    width: 380px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
}
.notification-panel .list-group-item {
    border-left: 3px solid transparent;
}
.notification-panel .list-group-item.danger  { border-left-color: #dc3545; }
.notification-panel .list-group-item.warning { border-left-color: #ffc107; }
.notification-panel .list-group-item.success { border-left-color: #28a745; }
.notification-panel .list-group-item.info    { border-left-color: #0dcaf0; }

/* Dark Mode Bildirim Paneli */
[data-theme="dark"] .notification-panel .card {
    background: #1e293b !important;
    border: 1px solid #334155;
}
[data-theme="dark"] .notification-panel .card-header {
    background: #1e293b !important;
    color: #f1f5f9;
    border-bottom: 1px solid #334155;
}

/* Bildirim Badge Animasyonu */
@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
#notifBadge:not([style*="display: none"]) {
    animation: pulse-badge 2s infinite;
}

/* Mobil Uyum */
@media (max-width: 991.98px) {
    .top-navbar {
        left: 0 !important;
    }
    .notification-panel {
        width: calc(100% - 2rem);
        right: 1rem;
    }
}

/* KÄ±sayol Pinleme Stilleri */
.btn-pin-shortcut {
    background: none !important;
    border: none !important;
    padding: 2px 6px !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.25) !important;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease !important;
    opacity: 0;
    margin-left: auto;
    cursor: pointer;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menu-link {
    width: 100%;
}
.menu-link:hover .btn-pin-shortcut {
    opacity: 1;
}
.btn-pin-shortcut:hover {
    color: #f1c40f !important;
    transform: scale(1.15);
}
.btn-pin-shortcut.pinned {
    opacity: 1;
    color: #f1c40f !important;
}
.sidebar-panel.collapsed .btn-pin-shortcut {
    display: none !important;
}

/* ================================================================
   ODOO-STYLE APP GRID STYLES FOR SHORTCUTS (DASHBOARD)
   ================================================================ */
.app-shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    padding: 10px 5px;
    border-radius: 12px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}
.app-shortcut-item:hover {
    transform: translateY(-5px) scale(1.03);
    background-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .app-shortcut-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}
.app-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.app-shortcut-item:hover .app-icon-box {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.app-shortcut-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    max-width: 85px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}
.shortcut-placeholder {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    transition: border-color 0.2s ease;
    width: 100%;
}
[data-theme="dark"] .shortcut-placeholder {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ================================================================
   COLLAPSED SIDEBAR HOVER SUBMENU (FLOATING SUBMENU)
   ================================================================ */
@media (min-width: 992px) {
    .sidebar-panel.collapsed .menu-accordion {
        position: relative;
    }
    .sidebar-panel.collapsed .menu-accordion:hover .menu-collapse {
        display: block !important;
        position: absolute;
        left: 58px;
        top: 0;
        background: linear-gradient(180deg, #1e272e, #142838) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 8px 8px 8px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.35);
        width: 200px;
        max-height: none !important;
        opacity: 1 !important;
        padding: 0.5rem !important;
        z-index: 1010;
    }
    .sidebar-panel.collapsed .menu-accordion:hover .menu-collapse .menu-link span {
        display: inline !important;
        color: rgba(255, 255, 255, 0.85);
    }
    .sidebar-panel.collapsed .menu-accordion:hover .menu-collapse .menu-link {
        justify-content: flex-start;
        padding: 0.5rem 0.75rem;
    }
}

/* ================================================================
   PRINT LAYOUT
   ================================================================ */
@media print {
    .sidebar-panel,
    .navbar-custom,
    .navbar,
    .top-navbar,
    .fab-filter-btn,
    .offcanvas,
    .btn,
    .btn-pin-shortcut,
    .notification-panel,
    .alert,
    .card-footer,
    .no-print,
    .stat-card,
    .row.g-3.mb-4,
    td.text-end,
    th.text-end,
    th:last-child,
    td:last-child,
    tfoot td:last-child {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-container {
        display: block !important;
    }

    .main-body {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .content-wrapper {
        padding: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card-header {
        border-bottom: 2px solid #000000 !important;
        padding: 10px 0 !important;
        background: transparent !important;
    }

    .card-header .fw-bold {
        font-size: 14pt !important;
        color: #000000 !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 15px !important;
    }

    .table th, 
    .table td {
        border: 1px solid #000000 !important;
        padding: 6px !important;
        color: #000000 !important;
        background: transparent !important;
    }

    .table thead th {
        background-color: #f2f2f2 !important;
        font-weight: bold !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ================================================================
   ÅABLON SÄ°STEMÄ°: 3 LÃ SÄ°DEBAR (Sol menÃ¼ / SaÄ filtre / Ä°Ã§ aksiyon)
   ================================================================ */

/* Ana iÃ§erik + saÄ aksiyon paneli yan yana */
.page-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.page-content {
    flex: 1 1 auto;
    min-width: 0;
}

/* Ä°Ã§ Aksiyon Paneli (desktop: sticky saÄ panel) */
.action-panel {
    flex: 0 0 260px;
    width: 260px;
    position: sticky;
    top: 76px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
}
.action-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    background: var(--bs-body-bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-weight: 700;
    font-size: .85rem;
}
.action-panel-body {
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.action-panel-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .85rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-body-color, #212529);
    background: var(--bs-tertiary-bg, #f1f3f5);
    transition: background .2s, transform .15s;
}
.action-panel-btn:hover {
    filter: brightness(.96);
    transform: translateX(2px);
    color: inherit;
}
.action-panel-btn i {
    width: 18px;
    text-align: center;
}

/* SaÄ Filtre Panel Offcanvas geniÅliÄi */
.toya-filter-offcanvas {
    width: 340px !important;
}

/* Mobil: aksiyon paneli offcanvas olarak saÄdan kayar */
@media (max-width: 991.98px) {
    .action-panel {
        position: fixed;
        top: 0;
        right: -300px;
        bottom: 0;
        width: 300px;
        flex-basis: auto;
        z-index: 1045;
        border-radius: 0;
        transform: translateX(0);
        opacity: 1;
        box-shadow: -8px 0 30px rgba(0,0,0,.15);
    }
    .action-panel.open {
        right: 0;
    }
    /* Arka plan karartma */
    body.action-panel-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 1040;
    }
    body.action-panel-open {
        overflow: hidden;
    }
}

/* Dark tema uyumlu panel arka planÄ± */
[data-theme="dark"] .action-panel {
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
[data-theme="dark"] .action-panel-header {
    border-bottom-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .action-panel-btn {
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
}

/* ===== SAYFA SÜRE ROZETÝ (sol alt köþe) ===== */
.page-timer-badge {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    font-weight: 600;
    white-space: nowrap;
}
[data-theme="dark"] .page-timer-badge {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ===== YÜZEN FİLTRE BUTONU (FAB) ===== */
.fab-filter-btn {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 54px;
    height: 54px;
    z-index: 1040;
    border: none;
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.35) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
}
.fab-filter-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 28px rgba(var(--bs-primary-rgb), 0.5) !important;
}
.fab-filter-btn:active {
    transform: scale(0.95);
}
.fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.4);
    animation: fab-pulse-anim 2s infinite;
    z-index: -1;
    top: 0;
    left: 0;
}
@keyframes fab-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ===== YÜZEN AKSİYON VE FİLTRE BUTONLARI (FAB STACK) ===== */
.fab-stack {
    position: fixed;
    right: 24px;
    bottom: 75px;
    z-index: 1040;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: flex-end;
}
.fab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}
.fab-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}
.fab-btn:active {
    transform: scale(0.95);
}
.fab-btn-actions {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.fab-btn-filter {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.toya-left-offcanvas,
.toya-right-offcanvas,
.dia-left-offcanvas,
.dia-right-offcanvas {
    z-index: 1055 !important;
}

/* ===== SABİT ALT FOOTER BAR ===== */
.sticky-grid-footer {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    background-color: #ffffff !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .sticky-grid-footer {
    background-color: #1e293b !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* ================================================================
   TOYA 3-PANEL LAYOUT ARCHITECTURE (SOL - ORTA - SAĞ MİMARİSİ)
   ================================================================ */
.toya-3panel-container,
.dia-3panel-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-height: calc(100vh - 130px);
    width: 100%;
}
.toya-left-panel,
.dia-left-panel {
    width: 240px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.toya-left-panel.collapsed,
.dia-left-panel.collapsed {
    width: 0;
    padding: 0 !important;
    border: none !important;
    margin-right: -12px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.toya-center-panel,
.dia-center-panel {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.toya-right-panel,
.dia-right-panel {
    width: 270px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.toya-right-panel.collapsed,
.dia-right-panel.collapsed {
    width: 0;
    padding: 0 !important;
    border: none !important;
    margin-left: -12px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* TOYA Grid Table styling */
.toya-grid-table,
.dia-grid-table {
    font-size: 13px;
    margin-bottom: 0;
}
.toya-grid-table th,
.dia-grid-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.toya-grid-table tr,
.dia-grid-table tr {
    transition: background-color 0.15s ease;
    cursor: pointer;
}
.toya-grid-table tr.active-row,
.toya-grid-table tr:hover,
.dia-grid-table tr.active-row,
.dia-grid-table tr:hover {
    background-color: #f1f5f9 !important;
}

[data-theme="dark"] .toya-left-panel,
[data-theme="dark"] .toya-center-panel,
[data-theme="dark"] .toya-right-panel,
[data-theme="dark"] .dia-left-panel,
[data-theme="dark"] .dia-center-panel,
[data-theme="dark"] .dia-right-panel {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .toya-grid-table th,
[data-theme="dark"] .dia-grid-table th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}
[data-theme="dark"] .toya-grid-table tr.active-row,
[data-theme="dark"] .toya-grid-table tr:hover,
[data-theme="dark"] .dia-grid-table tr.active-row,
[data-theme="dark"] .dia-grid-table tr:hover {
    background-color: #334155 !important;
}

/* ================================================================
   DEFINITIONS_PAGE / 3-SIDEBAR LAYOUT STYLES (.page-layout & .action-panel)
   ================================================================ */
.page-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    width: 100%;
}
.page-content {
    flex: 1;
    min-width: 0;
}
.action-panel {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 70px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    transition: all 0.3s ease;
    z-index: 100;
}
.action-panel-header {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark, #1e293b);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.action-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.action-panel-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
    color: #334155;
}
.action-panel-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateX(2px);
}
.action-panel-btn.btn-primary {
    background: var(--bs-primary, #0d6efd);
    color: #ffffff;
    border-color: var(--bs-primary, #0d6efd);
}
.action-panel-btn.btn-primary:hover {
    opacity: 0.9;
    color: #ffffff;
}

[data-theme="dark"] .action-panel {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .action-panel-header {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .action-panel-btn {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .action-panel-btn:hover {
    background: #334155;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .page-layout {
        flex-direction: column;
    }
    .action-panel {
        width: 100%;
        min-width: 100%;
        position: static;
    }
    
    /* Mobil Sidebar Çekmece Davranışı */
    .sidebar-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        z-index: 1060 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4) !important;
    }
    .sidebar-panel.active {
        transform: translateX(0) !important;
    }
    
    /* Mobil Ana Gövde Genişliği */
    .main-body {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .main-body.expanded {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Navbar ve İçerik Mobil Boşlukları */
    .navbar-custom {
        padding: 0.5rem 0.75rem !important;
    }
    .main-body > .p-4 {
        padding: 0.75rem !important;
    }

    /* iOS Safari Input Otomatik Zoom Engelleme */
    .form-control, .form-select {
        font-size: 15px !important;
    }
}

@media (max-width: 575.98px) {
    .form-control, .form-select {
        font-size: 16px !important;
    }
    .card-body {
        padding: 0.85rem !important;
    }
    .modal-dialog {
        margin: 0.5rem !important;
    }
}




/* ===== Yarım adım boşluk sınıfları (Bootstrap 5.3 tanımlamıyor; sayfalarda kullanılıyor) ===== */
.gap-0\.5{gap:0.125rem!important}.p-0\.5{padding:0.125rem!important}.px-0\.5{padding-left:0.125rem!important;padding-right:0.125rem!important}.py-0\.5{padding-top:0.125rem!important;padding-bottom:0.125rem!important}.pt-0\.5{padding-top:0.125rem!important}.pb-0\.5{padding-bottom:0.125rem!important}.ps-0\.5{padding-left:0.125rem!important}.pe-0\.5{padding-right:0.125rem!important}.m-0\.5{margin:0.125rem!important}.mx-0\.5{margin-left:0.125rem!important;margin-right:0.125rem!important}.my-0\.5{margin-top:0.125rem!important;margin-bottom:0.125rem!important}.mt-0\.5{margin-top:0.125rem!important}.mb-0\.5{margin-bottom:0.125rem!important}.ms-0\.5{margin-left:0.125rem!important}.me-0\.5{margin-right:0.125rem!important}
.gap-1\.5{gap:0.375rem!important}.p-1\.5{padding:0.375rem!important}.px-1\.5{padding-left:0.375rem!important;padding-right:0.375rem!important}.py-1\.5{padding-top:0.375rem!important;padding-bottom:0.375rem!important}.pt-1\.5{padding-top:0.375rem!important}.pb-1\.5{padding-bottom:0.375rem!important}.ps-1\.5{padding-left:0.375rem!important}.pe-1\.5{padding-right:0.375rem!important}.m-1\.5{margin:0.375rem!important}.mx-1\.5{margin-left:0.375rem!important;margin-right:0.375rem!important}.my-1\.5{margin-top:0.375rem!important;margin-bottom:0.375rem!important}.mt-1\.5{margin-top:0.375rem!important}.mb-1\.5{margin-bottom:0.375rem!important}.ms-1\.5{margin-left:0.375rem!important}.me-1\.5{margin-right:0.375rem!important}
.gap-2\.5{gap:0.75rem!important}.p-2\.5{padding:0.75rem!important}.px-2\.5{padding-left:0.75rem!important;padding-right:0.75rem!important}.py-2\.5{padding-top:0.75rem!important;padding-bottom:0.75rem!important}.pt-2\.5{padding-top:0.75rem!important}.pb-2\.5{padding-bottom:0.75rem!important}.ps-2\.5{padding-left:0.75rem!important}.pe-2\.5{padding-right:0.75rem!important}.m-2\.5{margin:0.75rem!important}.mx-2\.5{margin-left:0.75rem!important;margin-right:0.75rem!important}.my-2\.5{margin-top:0.75rem!important;margin-bottom:0.75rem!important}.mt-2\.5{margin-top:0.75rem!important}.mb-2\.5{margin-bottom:0.75rem!important}.ms-2\.5{margin-left:0.75rem!important}.me-2\.5{margin-right:0.75rem!important}
.gap-3\.5{gap:1.25rem!important}.p-3\.5{padding:1.25rem!important}.px-3\.5{padding-left:1.25rem!important;padding-right:1.25rem!important}.py-3\.5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.pt-3\.5{padding-top:1.25rem!important}.pb-3\.5{padding-bottom:1.25rem!important}.ps-3\.5{padding-left:1.25rem!important}.pe-3\.5{padding-right:1.25rem!important}.m-3\.5{margin:1.25rem!important}.mx-3\.5{margin-left:1.25rem!important;margin-right:1.25rem!important}.my-3\.5{margin-top:1.25rem!important;margin-bottom:1.25rem!important}.mt-3\.5{margin-top:1.25rem!important}.mb-3\.5{margin-bottom:1.25rem!important}.ms-3\.5{margin-left:1.25rem!important}.me-3\.5{margin-right:1.25rem!important}

/* ===== Telefon düzeni (≤575px): ortak başlık, araç çubuğu, KPI kartları ===== */
@media (max-width: 991.98px) {
    /* Kapalı sol menünün gölgesi ekranın sol kenarına taşmasın */
    .sidebar-panel:not(.active) { box-shadow: none !important; }
}
@media (max-width: 575.98px) {
    /* Üst başlık: tek satır, açıklama gizli */
    .navbar-custom .container-fluid { flex-wrap: nowrap; gap: 6px; }
    #navbarPageTitle { min-width: 0; flex: 1 1 auto; margin-left: 8px !important; }
    #navbarPageTitle > div:first-child { min-width: 0; }
    #navbarPageTitle h6 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; }
    #navbarPageTitle h6 .badge { display: none; }
    #navbarPageTitle p { display: none !important; }
    /* Başlıktaki sayfa butonları: yalnız ikon, tek satır */
    #navbarPageTitle .d-flex.gap-2 { flex-wrap: nowrap !important; margin-right: 0 !important; margin-left: 6px !important; }
    #navbarPageTitle .btn { font-size: 0 !important; padding: .35rem .5rem !important; white-space: nowrap; }
    #navbarPageTitle .btn i { font-size: 14px; margin: 0 !important; }
    /* Takip: hesap seçimi sayfa gövdesinde de var */
    #trackerFilterForm { display: none !important; }
    .navbar-custom .navbar-nav { gap: 2px !important; }
    .navbar-custom .navbar-nav a[href*="site-admin/index.php"] { display: none !important; }

    /* Grid araç çubuğu: arama tam satır, butonlar yalnız ikon */
    .toya-grid-topbar { gap: 6px !important; }
    .toya-grid-topbar .ms-auto { margin-left: 0 !important; width: 100%; flex-wrap: wrap !important; gap: 6px !important; }
    .toya-grid-topbar .input-group { width: 100% !important; flex: 1 1 100%; }
    .toya-grid-topbar .btn > span.small,
    .toya-grid-topbar .dropdown-toggle > span.small { display: none; }
    .toya-grid-topbar .btn > i { margin-right: 0 !important; }
    .toya-grid-topbar .btn { flex: 0 0 auto; }

    /* KPI kartları: telefonda ikişer yan yana, sıkı */
    .row > [class*="col-sm-6"]:has(> .card),
    .row > [class*="col-sm-6"]:has(> .stat-card) { flex: 0 0 50%; max-width: 50%; }
    .row > [class*="col-sm-6"]:has(> .card) > .card { min-width: 0; }
    .row > [class*="col-sm-6"]:has(> .card) .card-body { padding: .6rem !important; }
    .row > [class*="col-sm-6"]:has(> .card) :is(h2, h3, h4, .fs-2, .fs-3, .fs-4, .h3, .h4) { font-size: 1.05rem !important; word-break: break-word; }
    .row > [class*="col-sm-6"]:has(> .card) small,
    .row > [class*="col-sm-6"]:has(> .card) .small { font-size: 11px !important; }

    /* Klavye kısayol şeritleri telefonda işe yaramaz */
    .toya-grid-footer-bar, .toya-kbd-bar, .keyboard-shortcuts-bar, .sticky-grid-footer > div:first-child { display: none !important; }

    /* Geliştirici rozetleri içeriğin üstüne binmesin */
    .page-timer-badge, #toyaGlobalGitPill, #toyaDevInspectorBadge { display: none !important; }

    /* Ödeme ekranı tabloları kaydırılabilir */
    table.info-table, table.amt-table { display: block; max-width: 100%; overflow-x: auto; }

    /* Büyük pencereler telefonda tam ekran */
    .modal-dialog.modal-xl, .modal-dialog.modal-lg { margin: 0; max-width: 100%; width: 100%; min-height: 100%; }
    .modal-dialog.modal-xl .modal-content, .modal-dialog.modal-lg .modal-content { min-height: 100vh; border-radius: 0; border: 0; }
}

/* Bootstrap 5.3 yalnız 10/25/50/75 tanımlar; sayfalarda 20/30/15 da kullanılıyor */
.bg-opacity-15 { --bs-bg-opacity: .15; }
.bg-opacity-20 { --bs-bg-opacity: .2; }
.bg-opacity-30 { --bs-bg-opacity: .3; }
.bg-opacity-40 { --bs-bg-opacity: .4; }

/* ===== tpl.card.001 — Tanım & Kart Form Sayfası ===== */
.toya-card-page { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.06); display: flex; flex-direction: column; max-width: 1280px; }
.toya-card-page-wide { max-width: none; }
.toya-card-header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border-color, #e2e8f0); background: linear-gradient(180deg, #f8fafc, #fff); border-radius: 12px 12px 0 0; }
.toya-card-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #1e40af; color: #fff; flex-shrink: 0; }
.toya-card-title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; color: #0f172a; line-height: 1.2; }
.toya-card-record { font-size: 12px; color: #64748b; font-family: var(--bs-font-monospace); }
.toya-card-body { padding: 16px; }
.toya-card-body > .card { box-shadow: none !important; border: 0 !important; }
.toya-card-body > .card > .card-body { padding: 0; }
.toya-card-footer { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border-color, #e2e8f0); background: var(--bg-card, #fff); border-radius: 0 0 12px 12px; }
.toya-kbd-hint { font-size: 10px; font-family: var(--bs-font-monospace); opacity: .7; border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; margin-left: 4px; }
.min-w-0 { min-width: 0; }
[data-theme="dark"] .toya-card-header { background: var(--bg-card); }
[data-theme="dark"] .toya-card-title { color: #e2e8f0; }
@media (max-width: 575.98px) {
    .toya-card-body { padding: 12px; }
    .toya-card-footer { padding: 8px 12px; }
    .toya-card-footer .toya-kbd-hint { display: none; }
}
