:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #777777;
    --border-color: #dddddd;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --header-bg: #ffffff;
    --nav-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --primary-color: #375a7f;
    --primary-hover: #2b4764;
    --error-bg: #442727;
    --error-text: #ffbaba;
    --header-bg: #1e1e1e;
    --nav-bg: #1e1e1e;
}

/* LOGIN SCREEN SPECIFIC COLORS (ONLY FOR LOGIN) */
.login-split-wrapper {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --primary-color: #6366f1;
}

[data-theme="dark"] .login-split-wrapper {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

/* Sadece sayfa yüklendikten sonra geçişleri aktifleştir (flicker önleme) */
body.loaded {
    transition: background-color 0.3s, color 0.3s;
}

body.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* LOGIN SPLIT SCREEN REDESIGN */
.login-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
}

/* Sol Taraf: Form Alanı */
.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--bg-color);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.login-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 140px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.header-logo {
    width: 40px;
    height: auto;
    margin-right: 12px;
}

.header-title {
    display: flex;
    align-items: center;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.login-header p {
    color: #888;
    font-size: 1rem;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.2rem;
    color: #6366f1;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.2rem;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.input-wrapper input:focus + i {
    color: #4f46e5;
    transform: scale(1.1);
}

/* Giriş Butonu */
.login-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.login-btn:active {
    transform: translateY(0);
}

/* Sağ Taraf: Kurumsal Tanıtım */
.login-right {
    flex: 1.2;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem;
    overflow: hidden;
    color: white;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.intro-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.badge-new {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.intro-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.intro-content h2 span {
    color: #818cf8;
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 3.5rem;
}

/* Özellik Listesi */
.feature-list {
    display: grid;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: #818cf8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.7;
}

.intro-footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
    .intro-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .login-right {
        display: none;
    }
    .login-left {
        flex: 1;
        background: var(--bg-color);
    }
    .login-container {
        max-width: 450px;
    }
}

.mobile-app-download i {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .login-left {
        padding: 1.5rem;
    }
    .login-header h1 {
        font-size: 1.8rem;
    }
    .login-logo {
        width: 120px;
    }
    .login-container {
        padding: 0;
    }
    .login-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .mobile-app-download {
        width: 100%;
        justify-content: center;
    }
}

/* Preloader Modernization */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* THEME SWITCHER MODERN DESIGN */
.login-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-app-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-app-download:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

@media (max-width: 480px) {
    .login-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .mobile-app-download {
        width: 100%;
        justify-content: center;
    }
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-switch-wrapper span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #e2e8f0;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider i {
    font-size: 14px;
    z-index: 1;
}

.slider .fa-sun {
    color: #f59e0b;
}

.slider .fa-moon {
    color: #94a3b8;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #334155;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

[data-theme="dark"] .slider .fa-sun {
    color: #475569;
}

[data-theme="dark"] .slider .fa-moon {
    color: #f1f5f9;
}

/* Dashboard Yapısı */
.dashboard-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-bar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s;
}

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

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.badge-blue { background-color: #007bff; }
.badge-red { background-color: #ff0000; }

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: #333;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .theme-toggle {
    background: #444;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.main-content {
    flex: 1;
    padding: 1rem;
    width: 100%;
}

.content-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.table-responsive,
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 100%; /* Sayfa genişliğine göre esne */
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
    table-layout: fixed; /* Sütun genişliklerini sabitle */
}

.filter-row td {
    padding: 0.5rem;
    background-color: #f8f9fa;
}

[data-theme="dark"] .filter-row td {
    background-color: #252525;
}

.search-input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Inline Edit Stilleri */
.inline-edit-input, 
.inline-edit-select {
    width: 100%;
    min-width: 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    padding: 4px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    outline: none;
}

.inline-edit-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23777' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    padding-right: 1.2rem !important;
}

.inline-edit-input:hover, 
.inline-edit-select:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.inline-edit-input:focus, 
.inline-edit-select:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

[data-theme="dark"] .inline-edit-input:hover, 
[data-theme="dark"] .inline-edit-select:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Dropdown (Select) Dark Mode Fix */
select.search-input option,
select.excel-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] select.search-input,
[data-theme="dark"] select.excel-select,
[data-theme="dark"] select.inline-edit-select,
[data-theme="dark"] select {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #444;
}

[data-theme="dark"] select.excel-select,
[data-theme="dark"] select.inline-edit-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23aaa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
}

[data-theme="dark"] select:focus,
[data-theme="dark"] select.inline-edit-select:focus,
[data-theme="dark"] select.excel-select:focus {
    background-color: #2a2a2a !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2) !important;
}

[data-theme="dark"] select.search-input option,
[data-theme="dark"] select.excel-select option,
[data-theme="dark"] select.inline-edit-select option,
[data-theme="dark"] select option {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

#date-range-picker {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}

[data-theme="dark"] #date-range-picker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

th {
    text-align: left;
    padding: 0.8rem 0.5rem;
    background-color: rgba(0,0,0,0.02);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

th:last-child {
    border-right: none;
}

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px; /* Genişletildi */
    cursor: col-resize;
    user-select: none;
    height: 100%;
    z-index: 10;
    transition: background-color 0.2s;
}

.resizer:hover {
    background-color: var(--primary-color); /* Üzerine gelince belirginleşir */
}

.resizing .resizer {
    background-color: var(--primary-color); /* Sürüklerken mavi kalır */
}

[data-theme="dark"] th {
    background-color: rgba(255,255,255,0.02);
}

td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hücre içindeki flex yapıları için */
.cell-flex {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0; /* Flexbox overflow fix */
}

.cell-flex input,
.cell-flex select {
    flex: 1;
    min-width: 0;
}

/* Özel genişlikli alanlar için sınıflar (inline style yerine) */
.w-price { flex: 2 !important; }
.w-currency { flex: 1 !important; min-width: 40px !important; }
.w-count { width: 100%; text-align: center; }

td:last-child {
    border-right: none;
}

tr:hover {
    background-color: rgba(0,0,0,0.01);
}

[data-theme="dark"] tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

/* İşlem Butonları */
.action-buttons-group {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-confirm {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.btn-confirm:hover {
    background-color: #22c55e;
    color: white;
}

.btn-cancel {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.btn-cancel:hover {
    background-color: #ef4444;
    color: white;
}

.btn-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.btn-pending:hover {
    background-color: #f59e0b;
    color: white;
}

/* Durum Bazlı Satır Renkleri */
tr:has(.update-status[data-status="cancelled"]) {
    opacity: 0.7;
}

/* Durum Badge'leri (Opsiyonel kullanım için) */
.status-badge, .status-select {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 120px;
    appearance: none; /* Select okunu kaldırabiliriz ama kalsın dersen kaldırırız */
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.status-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
    font-weight: normal;
}

.status-pending { background: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }
 .status-ongoing { background: rgba(34, 197, 94, 0.1) !important; color: #22c55e !important; }
 .status-completed { background: rgba(59, 130, 246, 0.1) !important; color: #3b82f6 !important; }
 .status-cancelled { background: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; }

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* JS ile açılacak */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-color);
}

.modal-content.modal-sm {
    max-width: 450px;
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 5px;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.column-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.column-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.column-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--card-bg);
    border-radius: 0 0 12px 12px;
}

/* Genel Buton Stilleri */
.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--text-muted);
}

/* Excel Tarzı Form Tasarımı */
.excel-form-container {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.excel-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.excel-row:last-child {
    border-bottom: none;
}

.excel-cell {
    flex: 1;
    border-right: 1px solid var(--border-color);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.excel-cell:last-child {
    border-right: none;
}

.excel-cell.span-2 {
    flex: 2;
}

.excel-cell.span-3 {
    flex: 3;
}

.excel-row.header-row {
    background-color: rgba(0,0,0,0.05);
}

[data-theme="dark"] .excel-row.header-row {
    background-color: rgba(255,255,255,0.05);
}

.excel-row.header-row .excel-cell {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0.8rem;
    justify-content: center;
}

.excel-cell label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.excel-cell input, 
.excel-cell select, 
.excel-textarea {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    outline: none;
    transition: all 0.2s;
}

.excel-cell input:focus, 
.excel-cell select:focus {
    background-color: rgba(0, 123, 255, 0.05);
    border-bottom: 1px solid var(--primary-color);
}

.excel-textarea {
    padding: 1rem;
    border: none;
    resize: none;
    line-height: 1.5;
}

.excel-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23777' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem !important;
}

@media (max-width: 992px) {
    .excel-row {
        flex-direction: column;
    }
    .excel-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .excel-cell.span-2, .excel-cell.span-3 {
        flex: 1;
    }
}

/* Google Maps Autocomplete Styles */
.pac-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: inherit;
    z-index: 9999 !important; /* Modal üstünde görünmesi için */
    margin-top: 2px;
}

.pac-item {
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-color);
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.pac-item-query {
    color: var(--text-color);
    font-size: 0.95rem;
}

.pac-matched {
    font-weight: 700;
}

.pac-icon {
    display: none; /* İkonları gizleyip daha temiz bir görünüm sağlayalım */
}

[data-theme="dark"] .pac-container {
    background-color: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .pac-item {
    border-color: #333;
    color: #eee;
}

[data-theme="dark"] .pac-item-query {
    color: #fff;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: var(--card-bg);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header {
        padding: 0.8rem 1rem;
    }

    .welcome-text {
        display: none;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 4rem 1rem 1rem 1rem;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
        transition: left 0.3s ease;
        gap: 0;
        overflow-y: auto;
    }

    .nav-bar.active {
        left: 0;
    }

    .nav-item {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        width: 100%;
    }

    .nav-item.active::after {
        display: none;
    }

    .nav-item.active {
        background-color: rgba(0, 123, 255, 0.05);
        border-left: 4px solid var(--primary-color);
    }

    .main-content {
        padding: 0.5rem;
    }

    .content-card {
        padding: 1rem;
    }

    .content-card > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .content-card > div:first-child > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    .search-input {
        width: 100% !important;
    }

    /* Trips Table Minimal Mobile View */
    .trips-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .trips-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
        padding: 0.3rem !important;
        border-bottom: none !important;
        width: 100% !important;
    }

    .trips-table td::before {
        margin-right: 0;
        margin-bottom: 2px;
        font-size: 0.65rem;
        opacity: 0.7;
    }

    /* Span full width for important fields */
    .trips-table td[data-label="Nereden"],
    .trips-table td[data-label="Nereye"],
    .trips-table td[data-label="Güzergah"],
    .trips-table td[data-label="Açıklama"],
    .trips-table td[data-label="Op. Notu"],
    .trips-table td[data-label="İşlem"] {
        grid-column: span 2;
        padding-top: 0.5rem !important;
        border-top: 1px solid rgba(0,0,0,0.05) !important;
        margin-top: 0.3rem;
    }

    .trips-table td[data-label="İşlem"]::before {
        display: none;
    }

    .trips-table td[data-label="Nereden"],
    .trips-table td[data-label="Nereye"],
    .trips-table td[data-label="Güzergah"] {
        background: rgba(0, 123, 255, 0.05);
        padding: 0.6rem !important;
        border-radius: 8px;
        margin-top: 0.2rem;
        border: 1px solid rgba(0, 123, 255, 0.1) !important;
    }

    .trips-table td[data-label="Nereden"]::before,
    .trips-table td[data-label="Nereye"]::before {
        font-size: 0.6rem;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .trips-table td[data-label="Nereden"] {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    .trips-table td[data-label="Nereye"] {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-top: 0 !important;
    }

    .trips-table td[data-label="Nereden"] strong,
    .trips-table td[data-label="Nereye"] strong,
    .trips-table td[data-label="Güzergah"] strong {
        font-size: 1rem;
        color: var(--primary-color);
    }

    /* ID and Status positioning */
    .trips-table td[data-label="ID"] {
        position: static;
        grid-column: span 1;
    }

    .trips-table td[data-label="Durum"] {
        align-items: flex-end;
    }

    /* Compact inputs in mobile cards */
    .trips-table .inline-edit-input,
    .trips-table .inline-edit-select {
        width: 100% !important;
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
    }

    .trips-table .badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    /* Hide less important fields to keep it minimal */
    .trips-table td[data-label="TC No"],
    .trips-table td[data-label="E-posta"],
    .trips-table td[data-label="Op. Notu"]:empty,
    .trips-table td[data-label="Yolcu"] {
        display: none;
    }

    /* Hide filter row on mobile for trips table */
    .trips-table .filter-row {
        display: none !important;
    }

    .trips-table td[data-label="ID"]::before {
        display: none;
    }

    .trips-table td[data-label="ID"] {
        grid-column: span 1;
        font-weight: bold;
        color: var(--text-muted);
    }

    /* Status badge alignment */
    .trips-table td[data-label="Durum"]::before {
        display: none;
    }

    /* Grouping fields side-by-side */
    .trips-table td[data-label="Tarih/Saat"],
    .trips-table td[data-label="Hareket"] {
        grid-column: span 1;
    }

    .trips-table td[data-label="Tutar"],
    .trips-table td[data-label="Fiyat"] {
        grid-column: span 1;
        align-items: flex-end;
    }

    .trips-table td[data-label="Yolcu Adı"] {
        grid-column: span 1;
    }

    .trips-table td[data-label="Telefon"] {
        grid-column: span 1;
        align-items: flex-end;
    }

    .trips-table td[data-label="Şoför"] {
        grid-column: span 1;
        align-items: flex-end;
    }

    /* Minimal adjustments for values */
    .trips-table td strong {
        font-size: 0.95rem;
    }

    .trips-table td div {
        padding: 0 !important;
        font-size: 0.85rem;
    }

    /* Better price display */
    .trips-table .cell-flex {
        justify-content: flex-end;
        width: 100%;
    }

    /* Checkbox column in accounting */
    .trips-table td[data-label="Seç"] {
        grid-column: span 1;
        width: 30px !important;
        align-items: center;
        justify-content: center;
    }

    .trips-table td[data-label="Seç"]::before {
        display: none;
    }

    /* Minimal adjustments for notes */
    .trips-table td[data-label="Açıklama"],
    .trips-table td[data-label="Op. Notu"] {
        border-top: 1px dashed var(--border-color) !important;
        margin-top: 0.3rem;
        padding-top: 0.5rem !important;
        font-style: italic;
        color: var(--text-muted);
    }

    .trips-table td[data-label="Açıklama"]::before,
    .trips-table td[data-label="Op. Notu"]::before {
        font-style: normal;
        font-weight: bold;
    }

    /* Modern Report Styles */
.stat-card-modern {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-blue { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.icon-green { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.icon-yellow { background: rgba(241, 194, 15, 0.1); color: #f1c40f; }
.icon-purple { background: rgba(155, 89, 182, 0.1); color: #9b59b2; }
.icon-red { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

[data-theme="dark"] .icon-blue { background: rgba(52, 152, 219, 0.2); color: #5dade2; }
[data-theme="dark"] .icon-green { background: rgba(46, 204, 113, 0.2); color: #58d68d; }
[data-theme="dark"] .icon-yellow { background: rgba(241, 194, 15, 0.2); color: #f4d03f; }
[data-theme="dark"] .icon-purple { background: rgba(155, 89, 182, 0.2); color: #af7ac5; }
[data-theme="dark"] .icon-red { background: rgba(231, 76, 60, 0.2); color: #ec7063; }

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
}

.chart-container-modern {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.chart-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chart-title-group i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.chart-title-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.chart-legend-custom {
    display: flex;
    gap: 1rem;
}

.legend-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.try { background: #3498db; }
.dot.usd { background: #f1c40f; }
.dot.eur { background: #9b59b2; }

/* Table Minimal & Compact Styles */
.table-container-minimal {
    width: 100%;
}

.modern-table-compact {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.modern-table-compact th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.modern-table-compact td {
    padding: 1rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.modern-table-compact tr:hover td {
    background: rgba(var(--primary-rgb, 52, 152, 219), 0.05);
    border-color: var(--primary-color);
}

.modern-table-compact td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.modern-table-compact td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.user-info-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-details-small {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trip-count-badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.time-cell {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.time-cell i {
    margin-right: 6px;
    color: var(--primary-color);
    opacity: 0.7;
}

.log-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    display: block;
}

.log-detail-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.log-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    flex: 1;
}

.badge-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.badge-status-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
}

.badge-status-dot.create { background: var(--primary-color); }
.badge-status-dot.update { background: var(--warning-color); }
.badge-status-dot.delete { background: var(--danger-color); }

.trip-id {
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.passenger {
    color: var(--text-color);
    font-weight: 500;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-only:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.btn-icon-only i {
    font-size: 0.8rem;
}

/* Table Responsive (Card View) */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .filter-row {
        display: none !important;
    }

    tr {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        position: relative;
    }

    td {
        border: none !important;
        padding: 0.6rem 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
        text-align: right !important;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    }

    td:last-child {
        border-bottom: none !important;
    }

    td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-right: 1rem;
        min-width: 100px;
    }

    /* Özel Hücre Düzenlemeleri */
    td[data-label="ID"] {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: auto !important;
        padding: 0 !important;
        color: var(--primary-color);
        font-weight: bold;
        border: none !important;
    }

    td[data-label="ID"]::before {
        display: none;
    }

    .action-buttons-group {
        justify-content: flex-end;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    /* Modal Responsiveness */
    .modal-content {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        animation: modalSlideUp 0.3s ease-out !important;
    }

    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-body {
        padding: 1rem !important;
    }

    .modal-header {
        padding: 1rem !important;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100% !important;
    }

    /* Form & Grid Improvements */
    .payment-form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .table-actions-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .totals-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .total-card {
        width: 100% !important;
    }

    .tab-container {
        padding-bottom: 5px;
    }

    .tab-btn {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem;
    }

    /* Raporlar (Reports) Mobil */
    .reports-grid {
        grid-template-columns: 1fr !important;
    }

    .chart-container {
        height: 300px !important;
    }

    /* Grid Responsiveness */
    .responsive-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .responsive-grid-5 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .responsive-grid-2-1 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .responsive-grid-350-1 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Excel Form Responsiveness */
    .excel-row {
        flex-direction: column;
    }

    .excel-cell {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding: 0.8rem !important;
    }

    .excel-cell:last-child {
        border-bottom: none;
    }

    .excel-row.header-row {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 1.1rem;
    }

    .user-info span {
        display: none;
    }

    .theme-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .btn-logout {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Raporlar için grid yapısı (Desktop) */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
