/* Mobil CSS - Sadece mobil cihazlar için (768px ve altı) */
@media only screen and (max-width: 768px) {
    /* Desktop sidebar'ı gizle */
    .sidebar {
        display: none !important;
    }
    
    /* Ana wrapper'ı tam genişlikte göster */
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 60px;
    }
    
    /* Mobil header */
    .mobile-header {
        display: flex !important;  /* Mobil görünümde göster */
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        height: 60px;
        background-color: #151c28;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Mobil menü toggle butonu */
    .mobile-menu-toggle {
        background: none;
        border: none;
        color: #9ca3af;
        font-size: 24px;
        cursor: pointer;
        padding: 4px;
    }
    
    .mobile-menu-toggle .material-icons {
        font-size: 28px;
    }
    
    /* Logo */
    .mobile-header .logo-link {
        font-size: 20px;
        font-weight: 700;
        color: #f9fafb;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Kullanıcı avatarı */
    .mobile-header .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #3b82f6;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
    }
    
    /* Mobil menü */
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background-color: #1f2937;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    /* Menü öğeleri */
    .mobile-nav {
        list-style: none;
        padding: 16px;
        margin: 0;
    }
    
    .mobile-nav li {
        margin-bottom: 8px;
    }
    
    .mobile-nav a {
        display: flex;
        align-items: center;
        padding: 14px;
        border-radius: 8px;
        text-decoration: none;
        color: #e5e7eb;
        font-weight: 500;
        gap: 12px;
        transition: background-color 0.2s;
    }
    
    .mobile-nav a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-nav a.active {
        background-color: #3b82f6;
        color: white;
    }
    
    .mobile-nav .material-icons {
        font-size: 24px;
    }
    
    /* Menü overlay */
    .menu-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Kullanıcı dropdown menüsü */
    .user-dropdown {
        position: fixed;
        top: 65px;
        right: 16px;
        background-color: #1f2937;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        min-width: 200px;
        display: none;
    }
    
    .user-dropdown.active {
        display: block;
        animation: fadeIn 0.2s;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        color: #e5e7eb;
        text-decoration: none;
        transition: background-color 0.2s;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-divider {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 4px 0;
    }
    
    /* Page layout */
    .page-content {
        padding: 16px;
    }
    
    .page-header {
        margin-bottom: 16px;
        display: flex;
        gap: 12px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    /* Form controls */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .controls {
        display: grid;
        gap: 12px;
    }
    /* Tables */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Karşılaştırma kartları */
    .widget-grid {
        grid-template-columns: 1fr;
    }
    
    /* Diğer mobil optimizasyonlar */
    .modal-container {
        width: 95%;
    }
    
    /* Scroll kilidini engelle */
    body.menu-open {
        overflow: hidden;
    }
}