        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            color: #2c3e50;
            line-height: 1.6;
            font-weight: 400;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        /* Dark Mode Support */
        html.theme-dark {
            color-scheme: dark;
        }
        
        html.theme-dark body {
            background-color: #1a1a1a;
            color: #e0e0e0;
        }
        
        html.theme-dark .sidebar {
            background: var(--primary-dark);
        }
        
        html.theme-dark .card {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .card-header {
            background-color: #252525;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .form-control,
        html.theme-dark .form-select {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .form-control:focus,
        html.theme-dark .form-select:focus {
            background-color: #2d2d2d;
            border-color: var(--primary);
            color: #e0e0e0;
        }
        
        html.theme-dark .table {
            color: #e0e0e0;
        }
        
        html.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > td {
            background-color: #252525;
        }
        
        html.theme-dark .table-hover > tbody > tr:hover > td {
            background-color: #333333;
        }
        
        html.theme-dark .content-header {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .mobile-header {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .nav-link {
            color: rgba(255, 255, 255, 0.8);
        }
        
        html.theme-dark .nav-link:hover {
            color: #ffffff;
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        html.theme-dark .nav-link.active {
            background-color: rgba(255, 255, 255, 0.15);
            color: #ffffff;
        }
        
        html.theme-dark .text-muted {
            color: #a0a0a0 !important;
        }
        
        html.theme-dark .text-dark {
            color: #e0e0e0 !important;
        }
        
        html.theme-dark .border {
            border-color: #404040 !important;
        }
        
        html.theme-dark .app-footer {
            background-color: #252525;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .app-container {
            background-color: #1a1a1a;
        }
        
        html.theme-dark .main-content {
            background-color: #1a1a1a;
            color: #e0e0e0;
        }
        
        html.theme-dark .content-area {
            background-color: #1a1a1a;
            color: #e0e0e0;
        }
        
        html.theme-dark .sidebar-header {
            background-color: var(--primary-dark);
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        html.theme-dark .btn {
            color: #e0e0e0;
        }
        
        html.theme-dark .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
            color: #ffffff;
        }
        
        html.theme-dark .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
        }
        
        html.theme-dark .btn-secondary {
            background-color: #404040;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .btn-secondary:hover {
            background-color: #505050;
            border-color: #505050;
        }
        
        html.theme-dark .btn-outline-primary {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        html.theme-dark .btn-outline-primary:hover {
            background-color: var(--primary);
            border-color: var(--primary);
            color: #ffffff;
        }
        
        html.theme-dark .badge {
            color: #ffffff;
        }
        
        html.theme-dark .badge.bg-primary {
            background-color: var(--primary) !important;
        }
        
        html.theme-dark .badge.bg-secondary {
            background-color: #404040 !important;
        }
        
        html.theme-dark .badge.bg-success {
            background-color: #27ae60 !important;
        }
        
        html.theme-dark .badge.bg-danger {
            background-color: #e74c3c !important;
        }
        
        html.theme-dark .badge.bg-warning {
            background-color: #f39c12 !important;
            color: #1a1a1a !important;
        }
        
        html.theme-dark .alert {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .alert-success {
            background-color: rgba(39, 174, 96, 0.2);
            border-color: #27ae60;
            color: #4ade80;
        }
        
        html.theme-dark .alert-danger {
            background-color: rgba(231, 76, 60, 0.2);
            border-color: #e74c3c;
            color: #ff6b6b;
        }
        
        html.theme-dark .alert-warning {
            background-color: rgba(243, 156, 18, 0.2);
            border-color: #f39c12;
            color: #ffd93d;
        }
        
        html.theme-dark .alert-info {
            background-color: rgba(52, 152, 219, 0.2);
            border-color: #3498db;
            color: #6bc5ff;
        }
        
        html.theme-dark .modal-content {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .modal-header {
            background-color: #252525;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .modal-footer {
            background-color: #252525;
            border-color: #404040;
        }
        
        html.theme-dark .modal-body {
            background-color: #2d2d2d;
            color: #e0e0e0;
        }
        
        html.theme-dark .dropdown-menu {
            background-color: #2d2d2d;
            border-color: #404040;
        }
        
        html.theme-dark .dropdown-item {
            color: #e0e0e0;
        }
        
        html.theme-dark .dropdown-item:hover {
            background-color: #404040;
            color: #ffffff;
        }
        
        html.theme-dark .dropdown-divider {
            border-color: #404040;
        }
        
        html.theme-dark textarea.form-control {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .input-group-text {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .form-label {
            color: #e0e0e0;
        }
        
        html.theme-dark .form-check-label {
            color: #e0e0e0;
        }
        
        html.theme-dark small.text-muted {
            color: #a0a0a0 !important;
        }
        
        html.theme-dark .nav-tabs {
            border-color: #404040;
        }
        
        html.theme-dark .nav-tabs .nav-link {
            color: #a0a0a0;
            border-color: #404040;
        }
        
        html.theme-dark .nav-tabs .nav-link:hover {
            border-color: #505050;
            color: #e0e0e0;
        }
        
        html.theme-dark .nav-tabs .nav-link.active {
            background-color: #2d2d2d;
            border-color: #404040 #404040 #2d2d2d;
            color: #e0e0e0;
        }
        
        html.theme-dark .pagination .page-link {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }
        
        html.theme-dark .pagination .page-link:hover {
            background-color: #404040;
            border-color: #505050;
            color: #ffffff;
        }
        
        html.theme-dark .pagination .page-item.active .page-link {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        /* Auto theme - sistem tercihini kullan */
        @media (prefers-color-scheme: dark) {
            html.theme-auto {
                color-scheme: dark;
            }
            
            html.theme-auto body {
                background-color: #1a1a1a;
                color: #e0e0e0;
            }
            
            html.theme-auto .sidebar {
                background: var(--primary-dark);
            }
            
            html.theme-auto .card {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .card-header {
                background-color: #252525;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .form-control,
            html.theme-auto .form-select {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .form-control:focus,
            html.theme-auto .form-select:focus {
                background-color: #2d2d2d;
                border-color: var(--primary);
                color: #e0e0e0;
            }
            
            html.theme-auto .table {
                color: #e0e0e0;
            }
            
            html.theme-auto .table-striped > tbody > tr:nth-of-type(odd) > td {
                background-color: #252525;
            }
            
            html.theme-auto .table-hover > tbody > tr:hover > td {
                background-color: #333333;
            }
            
            html.theme-auto .content-header {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .mobile-header {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .nav-link {
                color: rgba(255, 255, 255, 0.8);
            }
            
            html.theme-auto .nav-link:hover {
                color: #ffffff;
                background-color: rgba(255, 255, 255, 0.1);
            }
            
            html.theme-auto .nav-link.active {
                background-color: rgba(255, 255, 255, 0.15);
                color: #ffffff;
            }
            
            html.theme-auto .text-muted {
                color: #a0a0a0 !important;
            }
            
            html.theme-auto .text-dark {
                color: #e0e0e0 !important;
            }
            
            html.theme-auto .border {
                border-color: #404040 !important;
            }
            
            html.theme-auto .app-footer {
                background-color: #252525;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .app-container {
                background-color: #1a1a1a;
            }
            
            html.theme-auto .main-content {
                background-color: #1a1a1a;
                color: #e0e0e0;
            }
            
            html.theme-auto .content-area {
                background-color: #1a1a1a;
                color: #e0e0e0;
            }
            
            html.theme-auto .sidebar-header {
                background-color: var(--primary-dark);
                border-color: rgba(255, 255, 255, 0.1);
            }
            
            html.theme-auto .btn {
                color: #e0e0e0;
            }
            
            html.theme-auto .btn-primary {
                background-color: var(--primary);
                border-color: var(--primary);
                color: #ffffff;
            }
            
            html.theme-auto .btn-primary:hover {
                background-color: var(--primary-dark);
                border-color: var(--primary-dark);
            }
            
            html.theme-auto .btn-secondary {
                background-color: #404040;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .btn-secondary:hover {
                background-color: #505050;
                border-color: #505050;
            }
            
            html.theme-auto .btn-outline-primary {
                border-color: var(--primary);
                color: var(--primary);
            }
            
            html.theme-auto .btn-outline-primary:hover {
                background-color: var(--primary);
                border-color: var(--primary);
                color: #ffffff;
            }
            
            html.theme-auto .badge {
                color: #ffffff;
            }
            
            html.theme-auto .badge.bg-primary {
                background-color: var(--primary) !important;
            }
            
            html.theme-auto .badge.bg-secondary {
                background-color: #404040 !important;
            }
            
            html.theme-auto .badge.bg-success {
                background-color: #27ae60 !important;
            }
            
            html.theme-auto .badge.bg-danger {
                background-color: #e74c3c !important;
            }
            
            html.theme-auto .badge.bg-warning {
                background-color: #f39c12 !important;
                color: #1a1a1a !important;
            }
            
            html.theme-auto .alert {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .alert-success {
                background-color: rgba(39, 174, 96, 0.2);
                border-color: #27ae60;
                color: #4ade80;
            }
            
            html.theme-auto .alert-danger {
                background-color: rgba(231, 76, 60, 0.2);
                border-color: #e74c3c;
                color: #ff6b6b;
            }
            
            html.theme-auto .alert-warning {
                background-color: rgba(243, 156, 18, 0.2);
                border-color: #f39c12;
                color: #ffd93d;
            }
            
            html.theme-auto .alert-info {
                background-color: rgba(52, 152, 219, 0.2);
                border-color: #3498db;
                color: #6bc5ff;
            }
            
            html.theme-auto .modal-content {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .modal-header {
                background-color: #252525;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .modal-footer {
                background-color: #252525;
                border-color: #404040;
            }
            
            html.theme-auto .modal-body {
                background-color: #2d2d2d;
                color: #e0e0e0;
            }
            
            html.theme-auto .dropdown-menu {
                background-color: #2d2d2d;
                border-color: #404040;
            }
            
            html.theme-auto .dropdown-item {
                color: #e0e0e0;
            }
            
            html.theme-auto .dropdown-item:hover {
                background-color: #404040;
                color: #ffffff;
            }
            
            html.theme-auto .dropdown-divider {
                border-color: #404040;
            }
            
            html.theme-auto textarea.form-control {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .input-group-text {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .form-label {
                color: #e0e0e0;
            }
            
            html.theme-auto .form-check-label {
                color: #e0e0e0;
            }
            
            html.theme-auto small.text-muted {
                color: #a0a0a0 !important;
            }
            
            html.theme-auto .nav-tabs {
                border-color: #404040;
            }
            
            html.theme-auto .nav-tabs .nav-link {
                color: #a0a0a0;
                border-color: #404040;
            }
            
            html.theme-auto .nav-tabs .nav-link:hover {
                border-color: #505050;
                color: #e0e0e0;
            }
            
            html.theme-auto .nav-tabs .nav-link.active {
                background-color: #2d2d2d;
                border-color: #404040 #404040 #2d2d2d;
                color: #e0e0e0;
            }
            
            html.theme-auto .pagination .page-link {
                background-color: #2d2d2d;
                border-color: #404040;
                color: #e0e0e0;
            }
            
            html.theme-auto .pagination .page-link:hover {
                background-color: #404040;
                border-color: #505050;
                color: #ffffff;
            }
            
            html.theme-auto .pagination .page-item.active .page-link {
                background-color: var(--primary);
                border-color: var(--primary);
            }
        }
        
        /* Layout */
        .app-container {
            display: flex;
            flex: 1;
            min-height: 0;
            overflow: visible;
            width: 100%;
            flex-direction: column;
        }
        
        main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        
        /* Sidebar - Kurumsal */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--primary);
            color: white;
            transition: all 0.3s ease;
            z-index: 1100;
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            /* İnce scrollbar */
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.3) transparent;
        }

        .mobile-sidebar-close {
            display: none !important;
        }
        
        /* Sidebar scrollbar - Webkit tarayÄ±cÄ±lar iÃ§in */
        .sidebar::-webkit-scrollbar {
            width: 4px;
        }
        
        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .sidebar::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
        }
        
        .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.3);
        }
        
        .sidebar.collapsed {
            margin-left: calc(-1 * var(--sidebar-width));
        }
        
        .sidebar-header {
            padding: 1.5rem;
            background: var(--primary-dark);
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .sidebar-header h3 {
            font-weight: 600;
            margin-bottom: 0;
            font-size: 1.25rem;
            flex: 1;
        }
        
        .sidebar-header .d-flex {
            margin-bottom: 0.5rem;
        }
        
        .user-info {
            font-size: 0.875rem;
            opacity: 0.9;
        }
        
        .status-badge {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 0.75rem;
        }
        
        /* Navigation */
        .sidebar-nav {
            padding: 1rem 0;
        }
        
        .nav-item {
            margin: 0.25rem 1rem;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .nav-link:hover,
        .nav-link.active {
            background: var(--primary-light);
            color: white;
            transform: translateX(5px);
        }
        
        .nav-link i {
            width: 20px;
            margin-right: 12px;
            font-size: 1rem;
        }
        
        /* Accordion Menu */
        .nav-item.has-submenu {
            margin: 0;
        }
        
        .nav-item.has-submenu > .nav-link {
            position: relative;
        }
        
        .nav-item.has-submenu > .nav-link::after {
            content: '\f107';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            right: 1rem;
            transition: transform 0.3s ease;
        }
        
        .nav-item.has-submenu.open > .nav-link::after {
            transform: rotate(180deg);
        }
        
        .submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: rgba(0,0,0,0.1);
        }
        
        .nav-item.has-submenu.open > .submenu {
            max-height: 1000px;
        }
        
        .submenu .nav-link {
            padding-left: 3rem;
            font-size: 0.85rem;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }
        
        .submenu .nav-link:hover {
            background: rgba(255,255,255,0.15);
        }
        
        .submenu .nav-link.active {
            background: var(--primary-light);
            color: white;
        }
        
        /* Main Content */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            transition: margin-left 0.3s ease, width 0.3s ease, max-width 0.3s ease;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            width: calc(100% - var(--sidebar-width));
            max-width: calc(100% - var(--sidebar-width));
            overflow: visible;
            box-sizing: border-box;
            position: relative;
        }
        
        .sidebar.collapsed {
            margin-left: calc(-1 * var(--sidebar-width));
        }
        
        .main-content.expanded {
            margin-left: 0;
            width: 100%;
            max-width: 100%;
            overflow: visible;
        }
        
        .sidebar-toggle-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .sidebar-toggle-btn:hover {
            background: var(--primary-dark);
            transform: scale(1.05);
        }
        
        .main-content-toggle-btn {
            position: fixed;
            top: 1rem;
            left: 1rem;
            z-index: 1001;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            width: 40px;
            height: 40px;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .main-content-toggle-btn:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
        }
        
        .sidebar.collapsed ~ .main-content .main-content-toggle-btn {
            display: flex;
        }
        
        @media (max-width: 768px) {
            .sidebar-toggle-btn,
            .main-content-toggle-btn {
                display: none;
            }
        }
        
        /* Mobile Header */
        .mobile-header {
            display: none;
            background: white;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1030;
        }
        
        /* Content Header */
        .content-header {
            background: white;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            overflow: visible;
            position: sticky;
            top: 0;
            z-index: 1020;
        }
        
        .content-header .d-flex {
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .content-header .d-flex > * {
            flex-shrink: 0;
        }
        
        .content-header h1,
        .content-header h2,
        .content-header h3,
        .content-header h4,
        .content-header h5,
        .content-header h6 {
            margin-right: 0.5rem;
            flex: 0 1 auto;
        }
        
        .content-header .btn,
        .content-header button {
            flex-shrink: 0;
            white-space: nowrap;
        }
        
        /* Content Area — flex:1 1 0 viewport'a kilitler; içerik taşınca footer kayar */
        .content-area {
            flex: 1 0 auto;
            padding: 2rem;
            background: #f8f9fa;
            position: relative;
            z-index: 1;
        }
        
        /* Footer Styling */
        /* Footer - Sticky Footer YapÄ±sÄ± */
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        .app-container {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
        }
        
        main {
            flex: 1 0 auto;
        }
        
        .app-footer {
            width: 100%;
            box-sizing: border-box;
            margin-top: auto;
            background: #fff;
            border-top: 1px solid #dee2e6;
            padding: 1rem 0;
            position: relative;
            z-index: 100;
            flex-shrink: 0;
        }
        
        .footer-container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .footer-left,
        .footer-right {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .footer-brand {
            font-weight: 600;
            color: #2c3e50;
        }
        
        .footer-copyright {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .footer-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .footer-status,
        .footer-time,
        .footer-security {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #28a745;
            display: inline-block;
        }
        
        .status-indicator.offline {
            background: #dc3545;
        }
        
        /* Laptop Ekran Optimizasyonu (1025px - 1400px) - Daha Agresif */
        @media (min-width: 1025px) and (max-width: 1400px) {
            /* Sidebar (Menu) OptimizasyonlarÄ± - Daha KÃ¼Ã§Ã¼k */
            :root {
                --sidebar-width: 200px;
            }
            
            .sidebar-header {
                padding: 0.625rem !important;
            }
            
            .sidebar-header h3 {
                font-size: 0.9375rem !important;
            }
            
            .sidebar-header .d-flex {
                margin-bottom: 0.25rem !important;
            }
            
            .user-info {
                font-size: 0.75rem !important;
            }
            
            .status-badge {
                font-size: 0.6875rem !important;
                padding: 0.1875rem 0.375rem !important;
            }
            
            .sidebar-nav {
                padding: 0.4375rem 0 !important;
            }
            
            .nav-item {
                margin: 0.125rem 0.625rem !important;
            }
            
            .nav-link {
                padding: 0.4375rem 0.625rem !important;
                font-size: 0.75rem !important;
                border-radius: 4px;
            }
            
            .nav-link i {
                width: 14px !important;
                font-size: 0.8125rem !important;
                margin-right: 7px !important;
            }
            
            .submenu .nav-link {
                padding-left: 1.75rem !important;
                padding-top: 0.375rem !important;
                padding-bottom: 0.375rem !important;
                font-size: 0.6875rem !important;
            }
            
            /* Main Content - Sidebar geniÅŸliÄŸi deÄŸiÅŸtiÄŸi iÃ§in */
            .main-content {
                margin-left: 200px !important;
                width: calc(100% - 200px) !important;
                max-width: calc(100% - 200px) !important;
            }
            
            /* Content Header OptimizasyonlarÄ± - Ultra KÃ¼Ã§Ã¼k */
            .content-header {
                padding: 0.625rem 1rem !important;
            }
            
            .content-header .d-flex {
                gap: 0.1875rem !important;
            }
            
            .content-header h1 {
                font-size: 1.5rem !important;
                margin-bottom: 0.1875rem !important;
            }
            
            .content-header h2 {
                font-size: 1.375rem !important;
                margin-bottom: 0.1875rem !important;
            }
            
            .content-header h3 {
                font-size: 1.125rem !important;
                margin-bottom: 0.1875rem !important;
            }
            
            .content-header h4 {
                font-size: 1rem !important;
                margin-bottom: 0.1875rem !important;
            }
            
            .content-header h5 {
                font-size: 0.9375rem !important;
                margin-bottom: 0.1875rem !important;
            }
            
            .content-header h6 {
                font-size: 0.875rem !important;
                margin-bottom: 0.1875rem !important;
            }
            
            .content-header .btn {
                padding: 0.4375rem 0.875rem !important;
                font-size: 0.8125rem !important;
            }
            
            .content-header .btn-sm {
                padding: 0.3125rem 0.625rem !important;
                font-size: 0.75rem !important;
            }
            
            /* Content Area OptimizasyonlarÄ± - Ultra KÃ¼Ã§Ã¼k */
            .content-area {
                padding: 0.875rem !important;
            }
            
            /* Mobile Header */
            .mobile-header {
                padding: 0.625rem 0.875rem !important;
            }
            
            /* Sidebar Toggle Button */
            .sidebar-toggle-btn {
                width: 30px !important;
                height: 30px !important;
                font-size: 0.8125rem !important;
            }
        }
        
        /* Responsive - Mobil gÃ¶rÃ¼nÃ¼mde mor arka planÄ± kaldÄ±r */
        @media (max-width: 1024px) {
            body {
                background: #f8f9fa !important;
                overflow-x: hidden;
                display: flex;
                flex-direction: column;
                min-height: 100vh;
            }
            
            .app-container {
                background: #f8f9fa;
                width: 100%;
                max-width: 100%;
                overflow: visible;
                flex: 1 0 auto;
                display: flex;
                flex-direction: column;
            }
            
            main {
                flex: 1 0 auto;
            }
            
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.mobile-open {
                transform: translateX(0);
                z-index: 1060;
                top: 0;
                height: 100vh;
                height: 100dvh;
            }

            .sidebar-overlay.show {
                z-index: 1055;
            }

            body.sidebar-drawer-open {
                overflow: hidden;
            }

            .mobile-sidebar-close {
                display: none;
                position: absolute;
                top: 10px;
                left: 10px;
                z-index: 30;
                width: 40px;
                height: 40px;
                padding: 0;
                border: 1px solid rgba(255, 255, 255, 0.35);
                border-radius: 8px;
                background: rgba(0, 0, 0, 0.45);
                color: #fff;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                font-size: 1.1rem;
                line-height: 1;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
            }

            .mobile-sidebar-close:hover,
            .mobile-sidebar-close:focus {
                background: rgba(0, 0, 0, 0.65);
                color: #fff;
                outline: none;
            }
            
            .main-content {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                background: #f8f9fa !important;
                padding-left: 0;
                padding-right: 0;
            }
            
            .mobile-header {
                position: sticky;
                top: 0;
                z-index: 1030 !important;
                display: flex;
                width: 100%;
                max-width: 100%;
                min-height: var(--mobile-header-height, 72px);
                flex-shrink: 0;
            }
            
            .content-header {
                width: 100%;
                max-width: 100%;
                position: sticky;
                top: var(--mobile-header-height, 72px) !important;
                z-index: 1010;
            }
            
            .content-area {
                width: 100%;
                max-width: 100%;
            }
            
            /* Footer mobil gÃ¶rÃ¼nÃ¼mde dÃ¼zelt */
            .app-footer {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                padding: 1rem !important;
            }
            
            .app-footer .container-fluid {
                width: 100%;
                max-width: 100%;
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            .app-footer .row {
                margin-left: 0;
                margin-right: 0;
                width: 100%;
            }
            
            .app-footer .col-md-6 {
                width: 100%;
                text-align: center !important;
                margin-bottom: 0.5rem;
            }
            
            .app-footer .col-md-6:last-child {
                margin-bottom: 0;
            }
            
            .app-footer .text-md-end {
                text-align: center !important;
            }
        }

        /* Dar masaustu/tablet yatay gorunumde menu icerigin ustune binmesin. */
        @media (min-width: 769px) and (max-width: 1024px) {
            :root {
                --sidebar-width: 215px;
            }

            .mobile-header {
                display: none !important;
            }

            .mobile-sidebar-close {
                display: none !important;
            }

            .sidebar {
                width: var(--sidebar-width) !important;
                transform: none !important;
                margin-left: 0;
                z-index: 1100;
            }

            .sidebar.collapsed {
                margin-left: calc(-1 * var(--sidebar-width));
            }

            .main-content {
                margin-left: var(--sidebar-width) !important;
                width: calc(100% - var(--sidebar-width)) !important;
                max-width: calc(100% - var(--sidebar-width)) !important;
                overflow: visible !important;
            }

            .main-content.expanded {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            .content-header {
                top: 0 !important;
            }

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

            body:not(.sidebar-collapsed) .app-footer {
                margin-left: var(--sidebar-width) !important;
                width: calc(100% - var(--sidebar-width)) !important;
                max-width: calc(100% - var(--sidebar-width)) !important;
            }

            body.sidebar-collapsed .app-footer {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }
        }
        
        @media (max-width: 768px) {
            .sidebar.mobile-open .mobile-sidebar-close {
                display: flex !important;
            }

            .content-header {
                padding: 1rem;
                width: 100%;
                max-width: 100%;
            }
            
            .content-area {
                padding: 1rem;
                width: 100%;
                max-width: 100%;
            }
            
            .main-content {
                width: 100vw !important;
                max-width: 100vw !important;
                margin-left: 0 !important;
                padding-left: 0;
                padding-right: 0;
            }
            
            .content-header .d-flex {
                width: 100%;
                justify-content: flex-start;
                align-items: flex-start;
            }
            
            .content-header .btn,
            .content-header button {
                width: auto;
                min-width: auto;
            }
            
            /* Container ve card'lar tam geniÅŸlikte */
            .container,
            .container-fluid {
                width: 100% !important;
                max-width: 100% !important;
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            .card,
            .card-body {
                width: 100%;
                max-width: 100%;
            }
            
            /* Footer mobil gÃ¶rÃ¼nÃ¼mde dÃ¼zelt */
            .app-footer {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                padding: 1rem !important;
            }
            
            .app-footer .container-fluid {
                width: 100%;
                max-width: 100%;
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            .app-footer .row {
                margin-left: 0;
                margin-right: 0;
                width: 100%;
            }
            
            .app-footer .col-md-6 {
                width: 100%;
                text-align: center !important;
                margin-bottom: 0.5rem;
            }
            
            .app-footer .col-md-6:last-child {
                margin-bottom: 0;
            }
            
            .app-footer .text-md-end {
                text-align: center !important;
            }
            
            /* TÃ¼m iÃ§erik alanlarÄ± tam geniÅŸlikte */
            * {
                box-sizing: border-box;
            }
        }
        
        /* Overlay */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1010;
        }
        
        .sidebar-overlay.show {
            display: block;
        }
        
        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in {
            animation: fadeIn 0.4s ease;
        }
        
        /* Modal Tab Styling - Ortak Tema */
        .modal .nav-tabs {
            border-bottom: 2px solid #e9ecef;
            margin-bottom: 1.5rem;
        }
        
        .modal .nav-tabs .nav-link {
            color: #495057;
            border: none;
            border-bottom: 3px solid transparent;
            padding: 0.75rem 1.25rem;
            font-weight: 500;
            transition: all 0.3s ease;
            background: transparent;
        }
        
        .modal .nav-tabs .nav-link:hover {
            border-bottom-color: #dee2e6;
            color: var(--primary);
            background: rgba(67, 97, 238, 0.05);
        }
        
        .modal .nav-tabs .nav-link.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: rgba(67, 97, 238, 0.1);
            font-weight: 600;
        }
        
        .modal .tab-content {
            padding: 0;
        }
        
        .modal .tab-pane {
            padding: 0;
        }
        
        /* Form Elements in Modal */
        .modal .form-label {
            font-weight: 500;
            color: #495057;
            margin-bottom: 0.5rem;
        }
        
        .modal .form-control,
        .modal .form-select {
            border: 1px solid #ced4da;
            border-radius: 6px;
            padding: 0.625rem 0.875rem;
            transition: all 0.3s ease;
        }
        
        .modal .form-control:focus,
        .modal .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
        }
        
        /* Alert in Modal */
        .modal .alert {
            border-radius: 8px;
            border: none;
            padding: 1rem 1.25rem;
        }
        
        /* Genel scrollbar - Ä°nce ve minimal */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(0,0,0,0.2) transparent;
        }
        
        *::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        
        *::-webkit-scrollbar-track {
            background: transparent;
        }
        
        *::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.15);
            border-radius: 2px;
        }
        
        *::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.25);
        }
        
        /* Body scrollbar - daha da ince */
        html {
            scrollbar-width: thin;
            scrollbar-color: rgba(0,0,0,0.1) transparent;
        }
        
        html::-webkit-scrollbar {
            width: 4px;
        }
        
        html::-webkit-scrollbar-track {
            background: transparent;
        }
        
        html::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.1);
            border-radius: 2px;
        }
        
        html::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.2);
        }

        /* ============================================================
           KESIN LAYOUT KURALI (en son yuklenir, en yuksek oncelik)
           769px ustunde sol menu sabittir; menu acikken icerik onun
           genisligi kadar bosluk birakir, menu kapaliyken tam genislik.
           Bu kural farkli breakpoint'lerdeki margin cakismalarini onler
           ve icerigin menunun altina girmesini engeller.
           ============================================================ */
        @media (min-width: 769px) {
            .main-content:not(.expanded) {
                margin-left: var(--sidebar-width) !important;
                width: calc(100% - var(--sidebar-width)) !important;
                max-width: calc(100% - var(--sidebar-width)) !important;
            }

            .main-content.expanded {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }
        }

        /* ============================================================
           ANASAYFA (dashboard.php) — footer viewport altina sabit
           ============================================================ */
        html body.page-dashboard {
            display: block !important;
            min-height: 100vh;
        }
        html body.page-dashboard .app-container {
            display: block !important;
            flex: none !important;
            min-height: 0 !important;
        }
        html body.page-dashboard .main-content {
            display: block !important;
            flex: none !important;
            min-height: 0 !important;
            height: auto !important;
            overflow: visible !important;
            padding-bottom: 72px !important;
        }
        html body.page-dashboard #appFooter.app-footer {
            position: fixed !important;
            bottom: 0 !important;
            top: auto !important;
            left: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            z-index: 500 !important;
            border-top: 1px solid #dee2e6;
            background: #fff;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
        }
        html.theme-dark body.page-dashboard #appFooter.app-footer {
            background: #2d2d2d;
            border-top-color: #404040;
        }
        @media (min-width: 769px) {
            html body.page-dashboard:not(.sidebar-collapsed) #appFooter.app-footer {
                left: var(--sidebar-width) !important;
                width: calc(100% - var(--sidebar-width)) !important;
            }
        }
        html body.page-dashboard #appFooter .footer-content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
