/* MD E-Fatura - Modern Admin Stylesheet */

:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;

    --success: #10b981;
    --success-light: #ecfdf5;

    --warning: #f59e0b;
    --warning-light: #fffbeb;

    --danger: #ef4444;
    --danger-light: #fef2f2;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --bg-main: var(--slate-50);
    --bg-surface: #ffffff;
    --text-main: var(--slate-800);
    --text-muted: var(--slate-500);
    --border-color: var(--slate-200);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* iOS'un inputlara odaklanınca otomatik yakınlaşmasını engellemek için */
@media screen and (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Mobil cihazlarda tabloların    /* Data table mobile sizing */
    .data-table {
        font-size: 13px;
        width: 100% !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Structure */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--slate-900);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--slate-400);
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
}

.page-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--slate-800);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--slate-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Page Container */
.content-container {
    padding: 20px 24px;
    max-width: none;
    width: 100%;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
}

/* Cards & Sections */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: var(--slate-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--slate-700);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--slate-50);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gonderildi,
.badge-onaylandi {
    background: var(--success-light);
    color: var(--success);
}

.badge-taslak {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-hata {
    background: var(--danger-light);
    color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    border-color: var(--border-color);
    color: var(--slate-700);
}

.btn-secondary:hover {
    background: var(--slate-50);
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.table-input {
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Alerts & Notices */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #10b98120;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #ef444420;
}

/* Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

.sidebar-footer {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .sidebar-footer {
        display: flex !important;
        padding: 16px;
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: 8px;
        background: var(--slate-900);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .content-container {
        padding: 20px;
    }

    .top-bar {
        padding: 0 16px;
    }

    .stat-card {
        padding: 20px;
    }
}

/* Invoice Page Specific Layouts */
.invoice-top-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.invoice-section {
    margin-bottom: 32px;
}

@media (max-width: 991px) {
    .invoice-top-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

.invoice-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 991px) {
    .invoice-bottom-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .invoice-bottom-container {
        max-width: none !important;
    }
}

/* Mobile Responsive Table (Card View) */
@media (max-width: 768px) {
    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 16px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 16px;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
    }

    .data-table td {
        display: flex;
        align-items: flex-start;
        /* Align top for multiline content */
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--slate-100);
        text-align: right;
        font-size: 14px;
        word-break: break-all;
        /* Break long words/UUIDs to prevent overflow */
        gap: 12px;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--slate-500);
        text-align: left;
        width: 100px;
        flex-shrink: 0;
        /* Label shouldn't shrink below min-width */
        word-break: normal;
        /* Label text shouldn't break */
    }

    /* Content wrapper to ensure alignment */
    .data-table td>*:not(:first-child) {
        /* Ideally target direct text or wrappers, but structure varies. 
           This targets elements after the pseudo-element (simulated).
           Actually pseudo-element is child of td but not in DOM tree for selector.
           So just rely on flex behavior.
        */
        flex: 1;
        text-align: right;
        min-width: 0;
        /* Allow flex item to shrink below content size */
    }

    .data-table td:last-child {
        border-bottom: none;
        padding-top: 16px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .data-table td:last-child::before {
        text-align: center;
        width: 100%;
        margin-bottom: 4px;
    }

    /* Reset button container for stacked layout */
    .data-table td:last-child>div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 4px;
        width: 100%;
        overflow-x: visible !important;
    }

    /* Ensure divs inside td (like UUID stacks) break correctly */
    .data-table td div {
        word-break: break-all;
    }

    /* Hide label for checkbox / actions if not needed or handle specifically */
    .data-table td:has(input[type="checkbox"])::before {
        display: none;
    }

    .data-table td:first-child {
        border-bottom: 1px solid var(--slate-100);
        padding-bottom: 12px;
        margin-bottom: 4px;
        justify-content: center;
        /* Center checkbox */
    }

    /* Input checkbox fix for mobile */
    .data-table td:first-child input {
        display: inline-block;
    }



    .sidebar-footer .nav-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        margin-bottom: 0;
        color: var(--slate-300);
    }

    .sidebar-footer .nav-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }

    .sidebar-footer .nav-item.logout {
        color: #ff4d4d;
        background: rgba(255, 77, 77, 0.1);
        border-color: rgba(255, 77, 77, 0.2);
    }

    /* Fluid button sizes on mobile using clamp */
    .data-table td:last-child .btn {
        padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2.5vw, 16px);
        font-size: clamp(12px, 1.2vw, 14px);
        gap: 4px;
    }

    .data-table td:last-child .btn i {
        width: clamp(14px, 1.8vw, 19px);
        height: clamp(14px, 1.8vw, 19px);
    }

    /* Settings/Details Table Specifics for Mobile */
    .data-table td:first-child input {
        display: inline-block;
    }

    /* Settings/Details Table Specifics for Mobile */
    .settings-table td {
        width: 100% !important;
        text-align: left;
        justify-content: flex-start;
        border-bottom: none;
        display: block;
        /* Fallback */
    }

    .settings-table td:first-child {
        color: var(--slate-500);
        padding-bottom: 4px;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .settings-table td:last-child {
        padding-top: 0;
        padding-bottom: 16px;
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid var(--slate-100);
    }

    .settings-table tr:last-child td:last-child {
        border-bottom: none;
    }

    /* Fix for Bulk Save Button Wrapping */
    #btn-bulk-save {
        white-space: nowrap;
    }

    /* Better Card Header on Mobile */
    .card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Ensure the right-side actions in card header wrap correctly */
    .card-header>div:last-child {
        flex-wrap: wrap;
    }

    /* Batch Actions Mobile Layout (Sticky Bottom on Selection) */
    .batch-actions.show-fixed-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        border-top: 1px solid var(--border-color);
        animation: slideUp 0.3s ease-out;
    }

    /* Hide total count in sticky mode to save space/confusion */
    .batch-actions.show-fixed-bottom span {
        display: none !important;
    }

    .batch-actions.show-fixed-bottom button {
        margin: 0;
        width: 100%;
        justify-content: center;
        height: 44px;
        /* Touchable area */
    }

    /* Single action button full width */
    .batch-actions.show-fixed-bottom.single-action {
        grid-template-columns: 1fr;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Default Desktop Styles for Batch Actions */
.batch-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Dropdown Menu (Desktop) */
.user-dropdown-container {
    position: relative;
    cursor: pointer;
    /* Ensure a slightly larger hit area */
    padding: 10px 0;
    margin: -10px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    margin-top: 5px;
    z-index: 1000;

    /* Smooth transition with delay to prevent jumping */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.user-dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Hover bridge pseudo-element */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--slate-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--slate-50);
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    color: var(--slate-400);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.logout {
    color: var(--danger);
    border-top: 1px solid var(--slate-100);
    margin-top: 4px;
    padding-top: 12px;
}

.dropdown-item.logout i {
    color: var(--danger);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide desktop elements on mobile */
@media (max-width: 1024px) {
    .dropdown-menu {
        display: none !important;
    }
}

/* Sidebar structure update for sticky footer */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}


/* Dashboard Overhaul Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-col-8 {
    grid-column: span 8;
}

.dashboard-col-4 {
    grid-column: span 4;
}

.dashboard-col-12 {
    grid-column: span 12;
}

@media (max-width: 1200px) {

    .dashboard-col-8,
    .dashboard-col-4 {
        grid-column: span 12;
    }
}

/* Enhanced Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.03;
    border-radius: 50%;
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Quick Actions Widget */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--slate-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--slate-700);
    transition: var(--transition);
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

.quick-action-btn i {
    width: 32px;
    height: 32px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Connection Stats */
.connection-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--slate-50);
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connection-info i {
    width: 20px;
    height: 20px;
    color: var(--slate-400);
}

.connection-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
}

.status-online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-offline {
    background: var(--danger);
}

/* Desktop Specific Fixes */
@media (min-width: 769px) {
    .data-table th:last-child {
        text-align: center;
        /* Center "İşlemler" header */
    }

    .data-table td:last-child>div {
        justify-content: flex-end;
        /* Right align buttons */
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================== */

/* Hide by default (desktop) */
.mobile-bottom-nav,
.mobile-menu-overlay {
    display: none;
}

/* Mobile only (< 768px) */
@media (max-width: 767px) {

    /* Hide footer on mobile */
    .admin-footer {
        display: none;
    }

    /* Add padding to main content to prevent overlap with bottom nav */
    .content-container {
        padding-bottom: 80px !important;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 8px 0 12px;
        z-index: 1000;
        border-top: 1px solid #e2e8f0;
    }

    /* Navigation Items */
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.2s ease;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

    .mobile-bottom-nav .nav-item i {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 10px;
    }

    /* Active State */
    .mobile-bottom-nav .nav-item.active {
        color: #4f46e5;
    }

    /* Center Button (Highlighted) */
    .mobile-bottom-nav .nav-item-center {
        position: relative;
    }

    .mobile-bottom-nav .nav-item-center .center-button {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
        transform: translateY(-8px);
        transition: all 0.3s ease;
    }

    .mobile-bottom-nav .nav-item-center .center-button i {
        width: 28px;
        height: 28px;
        color: #ffffff;
        stroke-width: 2.5;
    }

    .mobile-bottom-nav .nav-item-center:active .center-button {
        transform: translateY(-6px) scale(0.95);
    }

    .mobile-bottom-nav .nav-item-center span {
        color: #4f46e5;
        font-weight: 600;
    }

    /* Full-Screen Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: block;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Menu Content */
    .menu-overlay-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu-overlay.active .menu-overlay-content {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Menu Header */
    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #e2e8f0;
    }

    .menu-header h2 {
        font-size: 20px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

    .menu-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f1f5f9;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .menu-close-btn:active {
        background: #e2e8f0;
        transform: scale(0.95);
    }

    .menu-close-btn i {
        width: 20px;
        height: 20px;
        color: #64748b;
    }

    /* Menu Items */
    .menu-items {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 16px;
        text-decoration: none;
        color: #334155;
        font-size: 15px;
        font-weight: 500;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .menu-item:hover,
    .menu-item:active {
        background: #f1f5f9;
        color: #4f46e5;
    }

    .menu-item i {
        width: 22px;
        height: 22px;
        color: #64748b;
        flex-shrink: 0;
    }

    .menu-item:hover i,
    .menu-item:active i {
        color: #4f46e5;
    }
}

/* ========================================
   MOBILE RESPONSIVE - GLOBAL FIXES
   ======================================== */

@media (max-width: 767px) {

    /* Filter form - stack vertically */
    .filter-form .filter-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Admin layout - full width on mobile */
    .admin-layout {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Main content - remove padding that causes overflow */
    .main-content {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Content container - reduce padding */
    .content-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Cards - remove margin that causes overflow */
    .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }

    /* Pagination - ensure it wraps and is centered */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 20px 0;
    }

    .pagination-link {
        min-width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        background: white;
        border: 1px solid var(--slate-200);
        border-radius: 6px;
        font-size: 14px;
        color: var(--slate-700);
        text-decoration: none;
    }

    .pagination-link.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .pagination-ellipsis {
        display: flex;
        align-items: flex-end;
        padding-bottom: 4px;
        color: var(--slate-400);
    }

    /* Filter Grid - standardized for mobile */
    .filter-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: flex-end;
    }

    /* Action buttons wrapping inside cards */
    .data-table td[data-label="İşlemler"]>div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    /* Form controls - prevent overflow */
    .form-control,
    select,
    input {
        max-width: 100%;
        box-sizing: border-box;
    }
}