/* ========================================
   SQL MANAGEMENT STUDIO MODERN THEME
   Profesyonel Veritabanı Yönetim Arayüzü
   ======================================== */

/* Genel Stiller */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --success-color: #107c10;
    --danger-color: #d13438;
    --warning-color: #f7630c;
    --info-color: #0078d4;
    
    --bg-main: #ffffff;
    --bg-secondary: #f3f2f1;
    --bg-dark: #323130;
    --bg-darker: #201f1e;
    
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --text-white: #ffffff;
    
    --border-color: #edebe9;
    --border-focus: #0078d4;
    
    --shadow-sm: 0 1.6px 3.6px rgba(0,0,0,0.13), 0 0.3px 0.9px rgba(0,0,0,0.11);
    --shadow-md: 0 3.2px 7.2px rgba(0,0,0,0.13), 0 0.6px 1.8px rgba(0,0,0,0.11);
    --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,0.13), 0 1.2px 3.6px rgba(0,0,0,0.11);
    
    --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf1 100%);
    color: var(--text-primary);
    font-size: 14px;
    min-height: 100vh;
}

/* SQL Studio Container */
.sql-studio-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   SQL STUDIO TOP NAVIGATION BAR
   Modern Microsoft SQL Studio Görünümü
   ======================================== */

.user-bar {
    background: linear-gradient(to bottom, #2d2d30 0%, #1e1e1e 100%);
    color: var(--text-white);
    padding: 0;
    margin: 0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid #3e3e42;
    overflow: visible;
}

.user-bar::before {
    content: "🗄️ KSW Database Management Studio";
    position: static;
    transform: none;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    text-shadow: none;
    padding-left: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info {
    display: none; /* SQL Studio style - no user info in top bar */
}

.welcome-text {
    display: none;
}

.user-details {
    display: none;
}

.user-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    padding-right: 12px;
    height: 100%;
    position: relative;
    z-index: 101;
}

.user-btn {
    background: transparent;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 0;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    border: none;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transform: none;
    border-bottom-color: var(--primary-color);
}

.logout-btn {
    background: transparent;
    border: none;
    color: #cccccc;
}

.logout-btn:hover {
    background: rgba(209, 52, 56, 0.2);
    border-bottom-color: var(--danger-color);
    color: white;
}

.theme-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    min-width: auto;
}

.theme-btn:hover {
    background: rgba(155, 89, 182, 0.2);
    border-bottom-color: #9b59b6;
    transform: none;
}

.db-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    min-width: auto;
}

.db-btn:hover {
    background: rgba(0, 120, 212, 0.2);
    border-bottom-color: var(--primary-color);
    transform: none;
}

.settings-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    min-width: auto;
}

.settings-btn:hover {
    background: rgba(149, 165, 166, 0.2);
    border-bottom-color: #95a5a6;
    transform: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: #cccccc;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 28px;
}

h2 {
    font-size: 24px;
    border-bottom: 2px solid #3e3e42;
    padding-bottom: 10px;
    margin-top: 20px;
    color: #cccccc;
}

h3 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: #cccccc;
    border-bottom: 2px solid #3e3e42;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-bottom: 15px;
    color: #cccccc;
}

pre {
    background-color: #1e1e1e;
    color: #cccccc;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    border: 1px solid #3e3e42;
}

code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #3e3e42;
}

/* Bölüm Stilleri */
.section {
    background-color: #1e1e1e;
    color: #cccccc;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h3 {
    margin: 0;
}

.collapsible-content {
    margin-bottom: 20px;
}

/* Veritabanı Seçici */
.db-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.db-option {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.db-option:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.db-option.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.db-info {
    padding: 12px 20px;
    background: linear-gradient(to right, rgba(0, 120, 212, 0.1), rgba(0, 120, 212, 0.05));
    border-left: 4px solid var(--primary-color);
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

/* Tema Seçici - Modern Tasarım */
.theme-selector {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-selector-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.theme-selector-title::before {
    content: "🎨";
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-selector-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.theme-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #333;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.theme-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 1);
}

.theme-item:hover::before {
    left: 100%;
}

.theme-item.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    font-weight: 600;
}

.theme-item.active::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #4facfe;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Özel Tema Renkleri */
.theme-item[data-theme="1"] { background: linear-gradient(135deg, #f8f9fa, #e9ecef); }
.theme-item[data-theme="2"] { background: linear-gradient(135deg, #3498db, #2980b9); color: white; }
.theme-item[data-theme="3"] { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; }
.theme-item[data-theme="4"] { background: linear-gradient(135deg, #87ceeb, #4682b4); color: white; }
.theme-item[data-theme="5"] { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: white; }
.theme-item[data-theme="6"] { background: linear-gradient(135deg, #2c3e50, #1a1a1a); color: white; }
.theme-item[data-theme="7"] {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    color: white;
    animation: neon-pulse 2s ease-in-out infinite;
}
.theme-item[data-theme="8"] { background: linear-gradient(135deg, #27ae60, #229954); color: white; }
.theme-item[data-theme="9"] { background: linear-gradient(135deg, #007bff, #0056b3); color: white; }
.theme-item[data-theme="10"] { background: linear-gradient(135deg, #f39c12, #e67e22); color: white; }
.theme-item[data-theme="11"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    color: white;
    font-weight: bold;
    animation: gradient-shift 3s ease-in-out infinite;
}
.theme-item[data-theme="12"] {
    background: linear-gradient(135deg, #00d4aa, #a29bfe, #fd79a8);
    color: white;
    font-weight: bold;
}
.theme-item[data-theme="13"] {
    background: linear-gradient(135deg, #00ff41, #0d0d0d);
    color: #00ff41;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
.theme-item[data-theme="14"] {
    background: linear-gradient(135deg, #1e88e5, #5e35b1);
    color: white;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes neon-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.5); }
    50% { box-shadow: 0 0 30px rgba(131, 56, 236, 0.8); }
}

@keyframes gradient-shift {
    0%, 100% { background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899); }
    50% { background: linear-gradient(135deg, #8b5cf6, #ec4899, #6366f1); }
}

/* ========================================
   SQL STUDIO SIDEBAR NAVIGATION
   Visual Studio Code benzeri yan menü
   ======================================== */

.navbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: linear-gradient(to bottom, #252526 0%, #1e1e1e 100%);
    padding: 0;
    border-radius: 0;
    width: 250px;
    position: fixed;
    left: 0;
    top: 48px;
    bottom: 0;
    border-right: 1px solid #3e3e42;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 90;
}

/* Navbar scrollbar styling */
.navbar::-webkit-scrollbar {
    width: 8px;
}

.navbar::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.navbar::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 4px;
}

.navbar::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

.navbar::before {
    content: "📂 KSW Management";
    display: block;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3e3e42;
    background: #2d2d30;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-item {
    padding: 10px 16px;
    padding-left: 40px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    display: block !important;
    border-left: 3px solid transparent;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}

.nav-item::before {
    content: "▶";
    position: absolute;
    left: 16px;
    font-size: 14px;
    color: #cccccc;
    opacity: 0.7;
}

.nav-icon {
    display: none !important;
}


.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: white;
}

.nav-item.active {
    background: rgba(0, 120, 212, 0.15);
    border-left-color: var(--primary-color);
    color: white;
}

/* Content area offset for sidebar and topbar */
body {
    padding-left: 0;
    padding-top: 48px;
    min-height: 100vh;
}

/* Main content wrapper */
.main-content {
    margin-left: 250px;
    padding: 0;
    min-height: calc(100vh - 48px);
}

/* ========================================
   SQL STUDIO TABLE STYLES
   Modern grid görünümü
   ======================================== */

.data-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    background: #2d2d30;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #3e3e42;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background: #2d2d30;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #3e3e42;
    font-size: 13px;
    color: #cccccc;
}

th {
    background: linear-gradient(to bottom, #3e3e42 0%, #333337 100%);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0078d4;
    border-right: 1px solid #555555;
}

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

td {
    border-right: 1px solid #3e3e42;
}

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

tr:hover {
    background: rgba(0, 120, 212, 0.1);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.sticky-header th {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, #3e3e42 0%, #333337 100%);
    z-index: 10;
}

.action-cell {
    white-space: nowrap;
    width: 1%;
}

.action-col {
    width: 100px;
}

.truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Highlighted Row - Arama sonucu renklendirme */
.highlighted-row {
    background: rgba(0, 120, 212, 0.25) !important;
    border-left: 4px solid #0078d4 !important;
    animation: highlightPulse 2s ease-in-out;
}

.highlighted-row td {
    background: transparent !important;
}

@keyframes highlightPulse {
    0%, 100% {
        background: rgba(0, 120, 212, 0.25);
    }
    50% {
        background: rgba(0, 120, 212, 0.4);
    }
}

body[data-theme="light"] .highlighted-row {
    background: rgba(0, 120, 212, 0.15) !important;
}

.zero-value {
    color: #999;
    font-style: italic;
}

.hex-data {
    font-family: monospace;
    cursor: pointer;
    color: #0066cc;
}

.hex-data:hover {
    text-decoration: underline;
}

/* Form Stilleri */
.form-table {
    background-color: #2d2d30;
    color: #cccccc;
}

.form-table td {
    vertical-align: top;
    padding: 12px;
    border-bottom: 1px solid #3e3e42;
}

.form-table tr:last-child td {
    border-bottom: none;
}

.form-buttons {
    margin-top: 20px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    background-color: #1e1e1e;
    color: #cccccc;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0078d4;
    background-color: #252526;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.validation-error {
    color: #dc3545;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* Buton Stilleri */
.button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease;
    position: relative;
    width: 140px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Varsayılan ikon - sadece ikon içermeyen butonlar için */
.button::before {
    content: none;
    display: none;
}

/* Emoji ile başlayan butonlar için ::before kaldır */
.button.no-icon::before,
.button[class*="btn-"]::before {
    content: none !important;
    display: none !important;
}

.button:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.add-btn {
    background-color: #2ecc71;
}

.add-btn::before {
    content: none !important;
    display: none !important;
}

.add-btn:hover {
    background-color: #27ae60;
}

.edit-btn {
    background-color: #f39c12;
    position: relative;
}

.edit-btn::before {
    content: none !important;
    display: none !important;
}

.edit-btn:hover {
    background-color: #d35400;
}

.delete-btn {
    background-color: #e74c3c;
    position: relative;
}

.delete-btn::before {
    content: none !important;
    display: none !important;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.excel-btn {
    background-color: #27ae60;
}

.excel-btn::before {
    content: none !important;
    display: none !important;
}

.excel-btn:hover {
    background-color: #219653;
}

.toggle-btn {
    background-color: #95a5a6;
    padding: 5px 10px;
}

.toggle-btn:hover {
    background-color: #7f8c8d;
}

.btn-icon {
    padding: 4px 8px;
    font-size: 14px;
    width: auto !important;
    min-width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Arama Kutusu */
.search-box {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    margin-right: 10px;
}

.counter {
    font-size: 0.9em;
    color: #666;
}

/* Kontroller */
.controls {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination a {
    color: #cccccc;
    background: #2d2d30;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #3e3e42;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #0078d4;
    color: white;
    border-color: #0078d4;
}

.pagination a.active {
    background-color: #0078d4;
    color: white;
    border-color: #0078d4;
}

/* Mesaj Kutuları */
.success, .error, .warning, .info {
    padding: 12px 16px;
    margin: 16px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.success {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.success::before {
    content: "✓";
    font-weight: bold;
    font-size: 16px;
}

.error {
    background: rgba(209, 52, 56, 0.1);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.error::before {
    content: "✕";
    font-weight: bold;
    font-size: 16px;
}

.warning {
    background: rgba(247, 99, 12, 0.1);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.warning::before {
    content: "⚠";
    font-weight: bold;
    font-size: 16px;
}

.info {
    background: rgba(0, 120, 212, 0.1);
    color: var(--info-color);
    border-left-color: var(--info-color);
}

.info::before {
    content: "ℹ";
    font-weight: bold;
    font-size: 16px;
}

/* Sistem Hata Kutusu - Dark/Light Theme Uyumlu */
.system-error-box {
    background: rgba(209, 52, 56, 0.15);
    color: #ff6b6b;
    padding: 15px 20px;
    margin: 10px 20px;
    border: 1px solid rgba(209, 52, 56, 0.3);
    border-left: 4px solid var(--danger-color);
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
}

.system-error-box h3 {
    color: #ff6b6b;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
}

.system-error-box p {
    color: #ffaaaa;
    margin: 0;
    font-size: 14px;
}

/* SQL Editörü */
.sql-editor-container {
    margin-bottom: 15px;
}

.sql-editor {
    width: 100%;
    min-height: 150px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.sql-buttons {
    margin-bottom: 20px;
}

.sql-info {
    margin-bottom: 15px;
    font-weight: bold;
}

/* Item ve Skill Önizleme - 32x32 Standard */
.item-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-preview {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.item-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.item-preview img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.item-icon-only {
    width: 44px;
    text-align: center;
}

.skill-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Nation İkonları - 32x32 Standard */
.nation-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.nation-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Log Detayları */
.log-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 400px;
    overflow-y: auto;
}

.log-detail-row td {
    padding: 0;
}

/* Operasyon Renkleri */
.select-op {
    background-color: #e3f2fd;
}

.insert-op {
    background-color: #e8f5e9;
}

.update-op {
    background-color: #fff8e1;
}

.delete-op {
    background-color: #ffebee;
}


/* SQL Server Durum Göstergesi */
.db-status-indicator {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 500;
}

.status-label {
    color: #666;
    font-weight: 600;
    min-width: 80px;
}

.status-value {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

.status-value.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: pulse-green 2s ease-in-out infinite;
}

.status-value.offline {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: pulse-red 2s ease-in-out infinite;
}

.response-time {
    color: #666;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    min-width: 60px;
}

.driver-info {
    background: #007bff;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0.2);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.2);
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-left: 250px;
    margin-top: 30px;
    padding: 16px 20px;
    color: #969696;
    font-size: 12px;
    background: #1e1e1e;
    border-top: 1px solid #3e3e42;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   SQL Studio mobil uyumlu tasarım
   ======================================== */

@media (max-width: 768px) {
    /* Sidebar'ı gizle */
    .navbar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .navbar.mobile-open {
        transform: translateX(0);
    }
    
    /* Main content - tam genişlik */
    .main-content {
        margin-left: 0 !important;
        padding: 10px;
        width: 100%;
    }
    
    /* Footer - tam genişlik */
    .footer {
        margin-left: 0 !important;
    }
    
    /* Content'i genişlet */
    .section {
        margin: 10px 0;
        padding: 12px;
        border-radius: 6px;
    }
    
    .db-info, .success, .error, .warning, .info {
        margin: 10px 0;
        padding: 12px;
    }
    
    body {
        padding: 0;
        padding-top: 56px;
    }
    
    /* Top bar mobil */
    .user-bar {
        height: 56px;
        padding: 0 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .user-bar::before {
        font-size: 11px;
        padding-left: 8px;
        white-space: nowrap;
        content: "🗄️ KSW DB";
    }
    
    .user-actions {
        padding-right: 4px;
        gap: 2px;
        flex-wrap: nowrap;
    }
    
    .user-btn {
        padding: 4px 6px;
        font-size: 10px;
        height: 40px;
        white-space: nowrap;
    }
    
    /* Notification wrapper */
    .notification-wrapper {
        position: static;
    }
    
    .notification-dropdown {
        position: fixed !important;
        top: 56px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    /* Search & Controls */
    .search-box {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    
    .db-selector {
        flex-direction: column;
    }
    
    .db-option {
        width: 100%;
        text-align: center;
    }
    
    /* Tablo aksiyonları */
    .action-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
    
    /* Tablo stilleri */
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 6px 8px;
    }
    
    /* Server Stats Grid - mobil */
    .server-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .server-stat-card {
        padding: 12px;
    }
    
    .server-stat-value {
        font-size: 20px;
    }
    
    .server-stat-label {
        font-size: 10px;
    }
    
    .server-stat-sublabel {
        font-size: 9px;
    }
    
    /* Info Cards - mobil */
    .info-card {
        margin-bottom: 15px;
    }
    
    /* Tablo container - kaydırılabilir */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobil için ikon boyutları */
    .item-preview {
        width: 36px;
        height: 36px;
    }
    
    .item-preview img {
        max-width: 32px;
        max-height: 32px;
    }
    
    .item-icon-only {
        width: 40px;
    }
    
    .skill-icon {
        width: 32px;
        height: 32px;
    }
    
    .nation-icon {
        width: 28px;
        height: 28px;
    }
    
    /* H2, H3 başlıklar */
    h2 {
        font-size: 18px;
        margin-top: 15px;
    }
    
    h3 {
        font-size: 16px;
        margin-top: 10px;
    }
    
    /* Pagination */
    .pagination {
        gap: 4px;
    }
    
    .pagination a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .user-bar {
        height: 50px;
        padding: 0 6px;
    }
    
    .user-bar::before {
        font-size: 10px;
        content: "🗄️ KSW";
    }
    
    .user-btn {
        padding: 3px 5px;
        font-size: 9px;
        height: 36px;
    }
    
    /* Section padding */
    .section {
        padding: 10px;
        margin: 8px 0;
    }
    
    /* Server Stats Grid - tek kolon küçük mobil */
    .server-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .server-stat-card {
        padding: 10px;
    }
    
    .server-stat-value {
        font-size: 18px;
    }
    
    .server-stat-label {
        font-size: 9px;
    }
    
    .server-stat-sublabel {
        font-size: 8px;
    }
    
    /* Tema seçici mobil uyumlu */
    .theme-selector {
        padding: 15px 10px;
        margin: 10px 0;
    }
    
    .theme-selector-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .theme-selector-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .theme-item {
        padding: 8px 10px;
        font-size: 10px;
        min-height: 36px;
        gap: 4px;
    }
    
    /* Tablo */
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 4px 6px;
    }
    
    /* Başlıklar */
    h2 {
        font-size: 16px;
    }
    
    h3 {
        font-size: 14px;
    }
    
    /* Butonlar */
    .button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Info Cards Grid */
    .section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet için tema seçici optimizasyonu */
@media (max-width: 768px) and (min-width: 481px) {
    .theme-selector-options {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .theme-item {
        padding: 11px 14px;
        font-size: 12px;
    }
}

/* Tema Modalı */
.theme-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.theme-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-height: 80vh;
    overflow: hidden;
}

/* Küçük mobil ekranlar için ek ikon optimizasyonları */
@media (max-width: 480px) {
    .item-preview {
        width: 34px;
        height: 34px;
    }
    
    .item-preview img {
        max-width: 30px;
        max-height: 30px;
    }
    
    .item-icon-only {
        width: 38px;
    }
    
    .skill-icon {
        width: 30px;
        height: 30px;
    }
    
    .nation-icon {
        width: 26px;
        height: 26px;
    }
}

.theme-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.theme-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.theme-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.theme-modal-close:hover {
    opacity: 1;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    text-align: center;
}

.theme-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.theme-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}

.theme-card span {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

/* Tema Önizleme Renkleri */
.theme-1-preview { background: linear-gradient(135deg, #f8f9fa, #e9ecef); }
.theme-2-preview { background: linear-gradient(135deg, #3498db, #2980b9); }
.theme-3-preview { background: linear-gradient(135deg, #2c3e50, #34495e); }
.theme-4-preview { background: linear-gradient(135deg, #87ceeb, #4682b4); }
.theme-5-preview { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.theme-6-preview { background: linear-gradient(135deg, #2c3e50, #1a1a1a); }
.theme-7-preview { background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff); }
.theme-8-preview { background: linear-gradient(135deg, #27ae60, #229954); }
.theme-9-preview { background: linear-gradient(135deg, #007bff, #0056b3); }
.theme-10-preview { background: linear-gradient(135deg, #f39c12, #e67e22); }
.theme-11-preview { background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899); }
.theme-12-preview { background: linear-gradient(135deg, #00d4aa, #a29bfe, #fd79a8); }
.theme-13-preview { background: linear-gradient(135deg, #00ff41, #0d0d0d); }
.theme-14-preview { background: linear-gradient(135deg, #1e88e5, #5e35b1); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobil Uyumlu Tema Modalı */
@media (max-width: 768px) {
    .theme-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .theme-card {
        padding: 10px 8px;
    }
    
    .theme-preview {
        width: 50px;
        height: 35px;
    }
    
    .theme-card span {
        font-size: 11px;
    }
}

/* Tema Modalı Mobil Uyumlu */
@media (max-width: 768px) {
    .theme-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .theme-card {
        padding: 10px 8px;
    }
    
    .theme-preview {
        width: 50px;
        height: 35px;
    }
    
    .theme-card span {
        font-size: 11px;
    }
    
    .theme-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: auto;
    }
}

/* Veritabanı Modalı */
.db-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.db-modal-content {
    position: relative;
    background: linear-gradient(to bottom, #252526 0%, #1e1e1e 100%);
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    max-height: 70vh;
    overflow: hidden;
    border: 1px solid #3e3e42;
}

.db-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(to bottom, #2d2d30 0%, #252526 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #3e3e42;
}

.db-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.db-modal-close:hover {
    opacity: 1;
}

.db-list {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0;
    background: #1e1e1e;
}

.db-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #cccccc;
    border-bottom: 1px solid #3e3e42;
    transition: all 0.15s ease;
    position: relative;
}

.db-item:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: white;
}

.db-item.active {
    background: rgba(0, 120, 212, 0.15);
    border-left: 3px solid #0078d4;
    color: white;
}

.db-item-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.db-item-info {
    flex: 1;
    min-width: 0;
}

.db-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 2px;
}

.db-item-code {
    font-size: 11px;
    color: #969696;
    font-family: 'Courier New', monospace;
}

.db-item-check {
    font-size: 18px;
    color: #0078d4;
    font-weight: bold;
    margin-left: 10px;
}

/* Veritabanı Modalı Mobil Uyumlu */
@media (max-width: 768px) {
    .db-modal-content {
        width: 95%;
        margin: 15% auto;
    }
    
    .db-item {
        padding: 12px 15px;
    }
    
    .db-item-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .db-item-name {
        font-size: 13px;
    }
    
    .db-item-code {
        font-size: 11px;
    }
    
    .db-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Ayarlar Modalı */
.settings-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.settings-modal-content {
    position: relative;
    background: linear-gradient(to bottom, #252526 0%, #1e1e1e 100%);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid #3e3e42;
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(to bottom, #2d2d30 0%, #252526 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #3e3e42;
}

.settings-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.settings-modal-close:hover {
    opacity: 1;
}

.settings-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    background: #1e1e1e;
}

.settings-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #3e3e42;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 12px 0;
    font-size: 11px;
    font-weight: 600;
    color: #969696;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2d2d30;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-size: 13px;
    font-weight: 400;
    color: #cccccc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.setting-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: #3e3e42;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #0078d4;
    border-radius: 50%;
    cursor: pointer;
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #0078d4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.setting-control input[type="number"] {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    font-size: 13px;
    background: #2d2d30;
    color: #cccccc;
}

.setting-control select {
    padding: 6px 10px;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    font-size: 13px;
    background: #2d2d30;
    color: #cccccc;
    min-width: 120px;
}

.setting-control span {
    font-size: 11px;
    color: #969696;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3e3e42;
    transition: 0.15s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #969696;
    transition: 0.15s;
    border-radius: 50%;
}

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

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

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3e3e42;
}

/* UI Scale Sınıfları */
.ui-scale-small {
    transform: scale(0.9);
    transform-origin: top left;
}

.ui-scale-medium {
    transform: scale(1);
}

.ui-scale-large {
    transform: scale(1.1);
    transform-origin: top left;
}

.ui-scale-extra-large {
    transform: scale(1.2);
    transform-origin: top left;
}

/* Compact Mode */
.compact-mode .section {
    padding: 15px;
    margin-bottom: 10px;
}

.compact-mode .data-table-wrapper {
    margin-bottom: 10px;
}

.compact-mode table th,
.compact-mode table td {
    padding: 6px;
}

.compact-mode h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* Animasyon Durdurma */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* Ayarlar Modalı Mobil Uyumlu */
@media (max-width: 768px) {
    .settings-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .settings-body {
        padding: 15px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-control {
        width: 100%;
        justify-content: flex-end;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Font boyutu slider için minimum genişlik ve stil iyileştirmeler */
.setting-control .font-size-control {
    min-width: 200px;
}

.setting-control .font-size-control input[type="range"] {
    width: 200px;
    background: linear-gradient(to right, #ddd 0%, #3498db 100%);
}

.setting-control .font-size-control input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(to right, #e74c3c 0%, #e74c3c 100%);
}

.setting-control .font-size-control input[type="range"]::-moz-range-thumb {
    background: #e74c3c;
}

/* UI ölçeği için minimum genişlik ve stil iyileştirmeler */
.setting-control .ui-scale-control {
    min-width: 150px;
}

/* Tablo satır sayısı için minimum genişlik ve stil iyileştirmeler */
.setting-control .table-rows-control {
    min-width: 120px;
}

/* Slider değer göstergesi için daha görünür */
.setting-control .value-display {
font-size: 11px;
color: #3498db;
font-weight: 600;
margin-left: 8px;
opacity: 0.8;
transition: opacity 0.3s ease;
}

/* Slider container'ları için daha iyi organize edilmiş stil */
.setting-control {
display: flex;
flex-direction: row;
gap: 8px;
align-items: stretch;
}

.setting-control .control-label {
display: flex;
justify-content: space-between;
align-items: center;
min-width: 120px;
}

.setting-control .control-wrapper {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
justify-content: flex-end;
}

.setting-control .control-wrapper input[type="range"] {
flex: 1;
}

/* Slider için minimum genişlik ve sınır değerler */
.setting-control input[type="range"] {
min-width: 120px;
max-width: 300px;
}

/* Font boyutu slider için özel stil */
.setting-control.font-size-control input[type="range"] {
background: linear-gradient(to right, #ddd 0%, #3498db 100%);
border: 1px solid #ddd;
height: 8px;
border-radius: 4px;
outline: none;
-webkit-appearance: none;
}

.setting-control.font-size-control input[type="range"]::-webkit-slider-thumb {
background: linear-gradient(to right, #e74c3c 0%, #e74c3c 100%);
border: 1px solid #ddd;
}

.setting-control.font-size-control input[type="range"]::-moz-range-thumb {
background: #e74c3c;
border: 1px solid #ddd;
}

/* Tablo satır sayısı input için minimum genişlik */
.setting-control.table-rows-control input[type="number"] {
min-width: 120px;
}

/* UI ölçeği select için minimum genişlik */
.setting-control.ui-scale-control select {
min-width: 150px;
}

/* Responsive tasarım için mobil uyumluluk */
@media (max-width: 768px) {
.setting-control {
    flex-direction: column;
    gap: 8px;
}

.setting-control .control-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.setting-control .control-wrapper {
    width: 100%;
}

.setting-control input[type="range"] {
    width: 100%;
    max-width: 300px;
}

.setting-control .font-size-control {
    min-width: 100%;
}

.setting-control .ui-scale-control {
    min-width: 100%;
}

.setting-control .table-rows-control {
    min-width: 100%;
}
}

/* ========================================
   TOAST NOTIFICATION SYSTEM
   Modern bildirim sistemi
   ======================================== */

.toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid;
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast türleri - Dark Theme (Varsayılan) */
.toast-success {
    background: rgba(16, 124, 16, 0.95);
    border-left-color: #4caf50;
    color: #ffffff;
}

.toast-success .toast-icon {
    color: #4caf50;
}

.toast-success .toast-close {
    color: #ffffff;
}

.toast-error {
    background: rgba(209, 52, 56, 0.95);
    border-left-color: #f44336;
    color: #ffffff;
}

.toast-error .toast-icon {
    color: #f44336;
}

.toast-error .toast-close {
    color: #ffffff;
}

.toast-warning {
    background: rgba(247, 99, 12, 0.95);
    border-left-color: #ff9800;
    color: #ffffff;
}

.toast-warning .toast-icon {
    color: #ff9800;
}

.toast-warning .toast-close {
    color: #ffffff;
}

.toast-info {
    background: rgba(0, 120, 212, 0.95);
    border-left-color: #2196f3;
    color: #ffffff;
}

.toast-info .toast-icon {
    color: #2196f3;
}

.toast-info .toast-close {
    color: #ffffff;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 8px 8px;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Toast Mobil Uyumlu */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}
