/* Genel Stil Ayarları */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #f7931e;
    --dark-color: #1a202c;
    --dark-light: #2d3748;
    --light-color: #f7fafc;
    --light-border: #e2e8f0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 30px 20px;
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-header h1 i {
    color: var(--primary-color);
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
    margin: 2px 10px;
    border-radius: var(--border-radius-sm);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(247, 147, 30, 0.15) 100%);
    color: white;
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px 10px;
}

.header h2 {
    font-size: 28px;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--dark-color), var(--dark-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 10px;
}

#refreshBtn {
    position: relative;
}

#refreshBtn.refreshing i {
    animation: spin 1s linear infinite;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--light-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-header h3 {
    font-size: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.card-body {
    padding: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease;
}

.stats-grid .stat-card:nth-child(1) { animation: slideInLeft 0.5s ease 0.1s both; }
.stats-grid .stat-card:nth-child(2) { animation: slideInLeft 0.5s ease 0.2s both; }
.stats-grid .stat-card:nth-child(3) { animation: slideInLeft 0.5s ease 0.3s both; }
.stats-grid .stat-card:nth-child(4) { animation: slideInLeft 0.5s ease 0.4s both; }

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.red {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon.green {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.stat-info h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--dark-color), var(--dark-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Page Content */
.page-content {
    animation: fadeIn 0.3s ease;
}

.page-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.page-header-left h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.page-header-left p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Filters */
.filters-container {
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius-sm);
}

.quick-filter-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-color);
    margin-right: 5px;
}

.quick-filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--light-border);
    border-radius: 20px;
    background: white;
    color: var(--dark-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
}

/* Saved Filters & Search History */
.saved-filters,
.search-history {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    background: var(--light-color);
}

.saved-filter-item,
.search-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--light-border);
    transition: all 0.2s ease;
}

.saved-filter-item:hover,
.search-history-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.saved-filter-item:last-child,
.search-history-item:last-child {
    margin-bottom: 0;
}

.saved-filter-actions {
    display: flex;
    gap: 8px;
}

.saved-filter-item span,
.search-history-item span {
    font-size: 13px;
    color: var(--dark-color);
    flex: 1;
}

.text-muted {
    color: #7f8c8d;
    font-size: 13px;
    font-style: italic;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: white;
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: #cbd5e0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    backdrop-filter: blur(10px);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--light-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-color);
    color: #555;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: #ffe5e0;
    color: #c0392b;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-header h3 {
    font-size: 22px;
    color: var(--dark-color);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

/* Chart Container */
.chart-container {
    padding: 20px;
    min-height: 300px;
    position: relative;
}

canvas {
    max-height: 400px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.chart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.chart-item:hover::before {
    transform: scaleY(1);
}

.chart-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-bar {
    flex: 1;
    height: 30px;
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.chart-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 10px 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-icon.edit {
    background: var(--info-color);
    color: white;
}

.btn-icon.edit:hover {
    background: #2980b9;
}

.btn-icon.delete {
    background: var(--danger-color);
    color: white;
}

.btn-icon.delete:hover {
    background: #c0392b;
}

.btn-icon.stok {
    background: var(--success-color);
    color: white;
}

.btn-icon.stok:hover {
    background: #229954;
}

/* Responsive - Tablet ve Mobil */
@media (max-width: 768px) {
    /* Sidebar Mobil */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Sidebar overlay için body'ye class ekleniyor */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Header Mobil */
    .header {
        padding: 15px 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header h2 {
        font-size: 22px;
        flex: 1;
        min-width: 0;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .header-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Stats Grid Mobil */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 20px;
        gap: 15px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .stat-info h3 {
        font-size: 28px;
    }

    .stat-info p {
        font-size: 13px;
    }

    /* Dashboard Grid Mobil */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Card Mobil */
    .card {
        margin-bottom: 15px;
    }

    .card-header {
        padding: 15px 20px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .card-body {
        padding: 20px;
    }

    /* Page Header Mobil */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-header-left h3 {
        font-size: 20px;
    }

    .page-header-left p {
        font-size: 13px;
    }

    .page-header .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Filters Mobil */
    .filters-container {
        margin-bottom: 15px;
    }

    .filters {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }

    .filters .form-control {
        width: 100%;
        min-height: 44px;
    }

    .quick-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }

    .quick-filter-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .quick-filter-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .saved-filters,
    .search-history {
        max-height: 150px;
    }

    .saved-filter-item,
    .search-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .saved-filter-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Forms Mobil */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px; /* iOS zoom önleme */
        min-height: 44px;
        -webkit-appearance: none;
    }

    /* Buttons Mobil */
    .btn {
        padding: 14px 24px;
        min-height: 44px;
        font-size: 15px;
        touch-action: manipulation;
    }

    .btn-icon {
        padding: 12px 16px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    /* Tables Mobil */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: -20px;
        padding: 20px;
    }

    .data-table {
        min-width: 600px;
        font-size: 14px;
    }

    .data-table th {
        padding: 12px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .data-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Modal Mobil */
    .modal {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        animation: slideUpMobile 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }

    /* Chart Mobil */
    .chart-container {
        padding: 15px;
        min-height: 250px;
    }

    .chart-item {
        padding: 15px;
        gap: 12px;
    }

    .chart-item > div:first-child {
        min-width: 120px;
        font-size: 14px;
    }

    /* Badge Mobil */
    .badge {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Sidebar Header Mobil */
    .sidebar-header {
        padding: 20px 15px;
    }

    .sidebar-header h1 {
        font-size: 20px;
    }

    .sidebar-header h1 i {
        font-size: 24px;
    }

    .subtitle {
        font-size: 11px;
    }

    /* Nav Item Mobil */
    .nav-item {
        padding: 16px 20px;
        margin: 2px 8px;
        font-size: 15px;
        min-height: 48px;
    }

    .nav-item i {
        font-size: 20px;
    }
}

/* Küçük Mobil Cihazlar (480px ve altı) */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .header {
        padding: 12px 15px;
        border-radius: 12px;
    }

    .header h2 {
        font-size: 20px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
        flex-direction: row;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .stat-info h3 {
        font-size: 24px;
    }

    .page-header {
        padding: 15px;
    }

    .page-header-left h3 {
        font-size: 18px;
    }

    .card-body {
        padding: 15px;
    }

    .data-table {
        min-width: 500px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .sidebar {
        width: 100%;
        max-width: 280px;
    }
}

/* Touch Device Optimizasyonları */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlarda hover efektlerini azalt */
    .stat-card:hover {
        transform: none;
    }

    .stat-card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.95);
    }

    .nav-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-item:active {
        background: rgba(255, 107, 53, 0.2);
    }

    .data-table tbody tr:hover {
        transform: none;
    }

    .btn-icon:hover {
        transform: none;
    }

    .btn-icon:active {
        transform: scale(0.9);
    }
}

/* Landscape Mobil */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
    }

    .sidebar-header {
        padding: 15px 20px;
    }

    .nav-item {
        padding: 12px 20px;
        min-height: 44px;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    background-clip: padding-box;
}

