/* ===== ADMIN PANEL CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== LAYOUT ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #1a1a2e;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-menu {
    overflow-y: auto;
    flex: 1;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.sidebar-header .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c8a97e, #a87d4e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.sidebar-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-header small {
    color: #888;
    font-size: 11px;
    display: block;
}

.sidebar-menu-title {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 20px 8px;
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
    border-left-color: #c8a97e;
}

.sidebar-menu a.active {
    color: #fff;
    background: rgba(200,169,126,0.1);
    border-left-color: #c8a97e;
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-menu .badge {
    margin-left: auto;
    background: #e94560;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* ===== SIDEBAR GROUPS (Expandable) ===== */
.sidebar-group {
    margin-bottom: 2px;
}

.sidebar-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    user-select: none;
}

.sidebar-group-title:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.sidebar-group-title span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-group-title span i {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: #c8a97e;
}

.sidebar-group-title .group-arrow {
    font-size: 11px;
    transition: transform 0.3s;
    color: #666;
}

.sidebar-group.open .sidebar-group-title {
    color: #fff;
    border-left-color: rgba(200,169,126,0.3);
}

.sidebar-group.open .sidebar-group-title .group-arrow {
    transform: rotate(180deg);
    color: #c8a97e;
}

.sidebar-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.sidebar-group.open .sidebar-group-items {
    max-height: 1500px; /* çok öğeli grupta (menü+operasyon) kırpılmayı önler */
}

.sidebar-group-items a {
    padding-left: 32px !important;
}

/* Status badge for dashboard tables */
.status-badge-sm {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge-sm.status-warning { background: #fff3cd; color: #856404; }
.status-badge-sm.status-info { background: #d1ecf1; color: #0c5460; }
.status-badge-sm.status-primary { background: #cce5ff; color: #004085; }
.status-badge-sm.status-success { background: #d4edda; color: #155724; }
.status-badge-sm.status-muted { background: #e9ecef; color: #6c757d; }
.status-badge-sm.status-danger { background: #f8d7da; color: #721c24; }

/* Dashboard grid layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    min-width: 0; /* flex item taşmasını engelle: geniş tablo/grid viewport'u itmesin */
    margin-left: 260px;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.admin-topbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.topbar-left h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-right .view-site {
    padding: 8px 18px;
    background: #f0f2f5;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
}

.topbar-right .view-site:hover { background: #e4e6ea; }

.topbar-right .admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.topbar-right .admin-user .avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #c8a97e, #a87d4e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.topbar-right .logout {
    color: #e94560;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.topbar-right .logout:hover { background: #fee; }

/* ===== CONTENT AREA ===== */
.content-area {
    padding: 30px;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.stat-card .icon.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card .icon.green { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.stat-card .icon.orange { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-card .icon.gold { background: linear-gradient(135deg, #c8a97e, #a87d4e); }

.stat-card .info h3 { font-size: 24px; color: #1a1a2e; }
.stat-card .info p { font-size: 13px; color: #888; }

/* ===== CARD ===== */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 { font-size: 17px; color: #1a1a2e; }

.card-body { padding: 24px; }

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 7px;
    font-size: 14px;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #c8a97e;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Tutarlılık güvenlik ağı: form-group içindeki, .form-control sınıfı UNUTULMUŞ
   metin/sayı/şifre alanlarını da aynı görünüme kavuşturur. checkbox/radio/hidden/color
   ve zaten .form-control olanlar hariç tutulur → mevcut stiller ezilmez. */
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):not([type="file"]):not(.form-control):not(.input-disabled),
.form-group select:not(.form-control),
.form-group textarea:not(.form-control) {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #fff;
}
.form-group input:not(.form-control):focus,
.form-group select:not(.form-control):focus,
.form-group textarea:not(.form-control):focus {
    outline: none;
    border-color: #c8a97e;
}
.form-group textarea:not(.form-control) { min-height: 96px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c8a97e;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
}

.color-input-group input[type="text"] {
    flex: 1;
}

.img-preview {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e8e8e8;
    margin-top: 8px;
}

.img-preview-lg {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e8e8e8;
    margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #c8a97e, #a87d4e);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(200,169,126,0.4);
}

.btn-secondary {
    background: #f0f2f5;
    color: #555;
}

.btn-secondary:hover { background: #e4e6ea; }

.btn-danger {
    background: #e94560;
    color: #fff;
}

.btn-danger:hover { background: #d63050; }

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== TABLE ===== */
.table-responsive {
    overflow-x: auto;
}

/* Modern data-table — branches, grup raporu, manager-pins, duyurular vb. */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.data-table thead th {
    background: #f7f8fa;
    padding: 12px 14px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: #7a8699;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #edeff2;
    white-space: nowrap;
}
.data-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f2f4;
    color: #37404d;
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f9fafb; }
.data-table tfoot td {
    padding: 13px 14px;
    background: #fafbfc;
    border-top: 2px solid #e8eaed;
    font-weight: 700;
}
.data-table .actions { display: flex; gap: 6px; white-space: nowrap; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.status-badge.status-active { background: #d4edda; color: #1a7a3c; }
.status-badge.status-inactive { background: #f1f3f5; color: #868e96; }
.empty-text { color: #98a2b3; text-align: center; padding: 24px 0; font-size: 14px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f8f8;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8e8e8;
}

.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-table tr:hover { background: #fafafa; }

.admin-table .thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .status-active {
    display: inline-block;
    padding: 4px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.admin-table .status-inactive {
    display: inline-block;
    padding: 4px 12px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }

/* ===== TABS ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 25px;
    gap: 5px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover { color: #444; }
.tab-btn.active {
    color: #c8a97e;
    border-bottom-color: #c8a97e;
}

.tab-content {
    display: none;
}

.tab-content.active { display: block; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: #888; }
.empty-state p { font-size: 14px; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 18px; }

.modal-close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.modal-body { padding: 24px; }

.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== LOGIN ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.login-box .subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-box .logo-area {
    text-align: center;
    margin-bottom: 25px;
}

.login-box .logo-area .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c8a97e, #a87d4e);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

/* ===== ADMIN POWERED BY ===== */
.admin-footer-powered {
    text-align: center;
    padding: 15px 20px;
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.admin-footer-powered a {
    color: #888;
    text-decoration: underline;
}

/* ===== TRANSLATION FORM ===== */
.translation-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.translation-card h4 {
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
}

.translation-original {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary, #c8a97e);
}

.translation-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.translation-input:focus {
    outline: none;
    border-color: var(--primary, #c8a97e);
}

textarea.translation-input {
    min-height: 80px;
    resize: vertical;
}

/* ===== INLINE LANGUAGE TABS ===== */
.lang-tabs-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    background: #f0f2f5;
    border-radius: 10px;
    overflow-x: auto;
}

.lang-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-tab:hover {
    background: rgba(255,255,255,0.6);
    color: #333;
}

.lang-tab.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.lang-tab small {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.lang-tab.active small {
    color: #c8a97e;
}

.lang-input {
    display: none;
}

.lang-input.active {
    display: block;
}

/* ===== AI TRANSLATE BUTTON ===== */
.ai-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #8e44ad;
    border: 1.5px solid #8e44ad;
    background: rgba(142,68,173,0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.ai-translate-btn:hover {
    background: rgba(142,68,173,0.1);
    transform: translateY(-1px);
}
.ai-translate-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
.ai-translate-btn.btn-success {
    color: #27ae60;
    border-color: #27ae60;
    background: rgba(39,174,96,0.06);
}

/* ===== AI UYARI NOTU (çeviri/tahmin — içerik AI üretimi, kontrol edilmeli) ===== */
.ai-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 16px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #8a6d3b;
    background: #fff8e1;
    border: 1px solid #ffe0a3;
    border-radius: 8px;
}
.ai-disclaimer i { color: #e0a800; margin-top: 2px; flex-shrink: 0; }

.bulk-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #8e44ad;
    border: 1.5px solid #8e44ad;
    background: rgba(142,68,173,0.04);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.bulk-translate-btn:hover {
    background: rgba(142,68,173,0.12);
    transform: translateY(-1px);
}

#bulkTranslateModal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15,15,30,0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#bulkTranslateModal .modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    animation: bulkModalIn 0.25s ease-out;
}

@keyframes bulkModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#bulkTranslateModal .modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#bulkTranslateModal .modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#bulkTranslateModal .modal-header h3 .ai-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

#bulkTranslateModal .modal-close {
    width: 32px; height: 32px;
    border: none;
    background: #f5f5f7;
    border-radius: 8px;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#bulkTranslateModal .modal-close:hover {
    background: #eee;
    color: #333;
}

#bulkTranslateModal .modal-body {
    padding: 20px 24px;
}

#bulkTranslateModal .modal-desc {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.5;
}

#bulkTranslateModal .stats-table {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fafbfc;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef0f3;
    margin-bottom: 18px;
}

#bulkTranslateModal .stats-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    background: #f5f6f8;
    border-bottom: 1px solid #eef0f3;
}

#bulkTranslateModal .stats-table th:not(:first-child) {
    text-align: center;
}

#bulkTranslateModal .stats-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f2f5;
}

#bulkTranslateModal .stats-table td:not(:first-child) {
    text-align: center;
}

#bulkTranslateModal .stats-table tr:last-child td {
    border-bottom: none;
}

#bulkTranslateModal .stats-table .total-row td {
    font-weight: 700;
    background: #f5f6f8;
    border-top: 2px solid #e0e3e8;
    border-bottom: none;
}

#bulkTranslateModal .type-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

#bulkTranslateModal .type-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    background: #fafbfc;
    transition: all 0.15s;
}

#bulkTranslateModal .type-checkboxes label:hover {
    border-color: #d5d8dc;
    background: #f5f6f8;
}

#bulkTranslateModal .type-checkboxes label small {
    color: #e67e22;
    font-weight: 600;
    margin-left: auto;
}

#bulkTranslateModal .overwrite-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    margin-bottom: 16px;
}

#bulkTranslateModal .progress-wrap {
    margin-top: 16px;
}

#bulkTranslateModal .progress-bar-track {
    background: #f0f2f5;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

#bulkTranslateModal .progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #8e44ad, #a855f7);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

#bulkTranslateModal .progress-text {
    margin-top: 8px;
    font-size: 12.5px;
    color: #888;
    text-align: center;
}

#bulkTranslateModal .bulk-result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
}

#bulkTranslateModal .bulk-result.success {
    background: rgba(39,174,96,0.06);
    border: 1px solid rgba(39,174,96,0.15);
    color: #1a6b3c;
}

#bulkTranslateModal .bulk-result.error {
    background: rgba(231,76,60,0.06);
    border: 1px solid rgba(231,76,60,0.15);
    color: #922b21;
}

#bulkTranslateModal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#bulkTranslateModal .btn-cancel {
    padding: 9px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

#bulkTranslateModal .btn-cancel:hover {
    background: #f5f5f7;
    color: #333;
}

#bulkTranslateModal .btn-ai-start {
    padding: 9px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

#bulkTranslateModal .btn-ai-start:hover {
    background: linear-gradient(135deg, #7d3c98, #6c3483);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142,68,173,0.3);
}

#bulkTranslateModal .btn-ai-start:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lang-notice {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active { transform: translateX(0); }
    
    .main-content { margin-left: 0; }
    
    .sidebar-toggle { display: block; }
    
    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 99;
        display: none;
    }
    
    .sidebar-overlay.active { display: block; }
    
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    
    /* Stat cards */
    .stat-card { padding: 16px; gap: 12px; }
    .stat-card .stat-icon { width: 44px; height: 44px; font-size: 18px; }
    .stat-card .stat-value { font-size: 22px; }
    
    /* Tables */
    .admin-table th, .admin-table td { padding: 10px 10px; font-size: 13px; }
    .admin-table .actions { flex-wrap: wrap; gap: 4px; }
    .admin-table .actions .btn { padding: 5px 8px; font-size: 11px; }
    
    /* Topbar */
    .topbar-right { gap: 8px; }
    .admin-user .user-name { display: none; }
    
    /* Tabs scroll */
    .tabs { gap: 4px; }
    .tab-btn { padding: 8px 14px; font-size: 12px; }
    
    /* Modals */
    .modal-content { width: 95%; padding: 20px; max-height: 90vh; }
    
    /* Login */
    .login-box { padding: 24px; }
    
    /* Page actions */
    .page-actions { flex-wrap: wrap; gap: 8px; }
    .page-actions .btn { flex: 1; min-width: 120px; justify-content: center; }

    /* ── Mobil taşma koruması: sayfaların özel (inline) çoklu-sütun grid'leri tek sütuna düşer ──
       Inline stildeki grid-template-columns'u !important ile ezeriz (inline > selector olduğu için
       !important şart). auto-fill/minmax zaten tek sütuna iniyor; sabit 2-3 sütunlular da inecek. */
    .content-area [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .qr-grid { grid-template-columns: 1fr 1fr !important; }
    .form-grid { grid-template-columns: 1fr !important; }

    /* Geniş içerik (uzun başlık/pre/kod) viewport'u yatay itmesin */
    .content-area pre,
    .content-area code { white-space: pre-wrap; word-break: break-word; }
    .content-area img,
    .content-area video,
    .content-area canvas,
    .content-area iframe { max-width: 100%; }
}

@media (max-width: 576px) {
    .content-area { padding: 15px; }
    .admin-topbar { padding: 12px 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .topbar-right .view-site { display: none; }
    
    /* Buttons full-width */
    .page-actions { flex-direction: column; }
    .page-actions .btn { width: 100%; }
    
    /* Table extra compact */
    .admin-table th, .admin-table td { padding: 8px 6px; font-size: 12px; white-space: nowrap; }
    
    /* Form elements */
    .form-control { padding: 9px 12px; font-size: 13px; }
    
    /* Lang tabs */
    .lang-tabs-bar { gap: 2px; }
    .lang-tabs-bar .lang-tab { padding: 6px 10px; font-size: 11px; }
    
    /* Bulk translate modal */
    .bulk-translate-modal { width: 100%; max-width: none; }
}
