:root {
    --bg-body: #0f172a;
    --bg-container: #1e293b;
    --bg-input: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --radius: 12px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

/* Kapsayıcı Yapı */
.container {
    background: var(--bg-container);
    padding: 30px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 950px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.auth-container {
    max-width: 450px;
    margin-top: 8vh;
}

/* Başlık Alanları */
h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.auth-header { text-align: center; margin-bottom: 25px; }
.auth-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }
.icon-large { font-size: 3rem; display: block; margin-bottom: 10px; }
.icon-medium { font-size: 1.5rem; margin-right: 10px; }

/* Buton Tasarımları */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    border: none; border-radius: 8px; padding: 12px 20px;
    font-size: 1rem; font-weight: 500; cursor: pointer;
    transition: var(--transition); color: #fff;
}
.btn-full { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); }
.btn-success:hover { background: var(--success-hover); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger-hover); }
.btn-icon { background: var(--border-color); padding: 0 15px; font-size: 1.2rem; }
.btn-icon:hover { background: var(--primary); }

/* Form Elemanları */
.input-group { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
input, select {
    background: var(--bg-input); color: var(--text-main);
    border: 1px solid var(--border-color); padding: 12px 15px;
    border-radius: 8px; font-size: 0.95rem; outline: none;
    transition: var(--transition); width: 100%;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }

/* Üst Menü ve İstatistikler */
.vault-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; }

.stats-card { 
    background: var(--bg-body); 
    border-radius: 8px; 
    padding: 15px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    border: 1px solid var(--border-color); 
}
.stat-item { display: flex; flex-direction: column; min-width: 100px; }
.stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.2rem; font-weight: 600; margin-top: 5px; color: var(--text-main); }

/* Veri Giriş Kutusu */
.form-box { background: var(--bg-body); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); margin: 20px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.pass-row { display: flex; gap: 10px; }
.mt-10 { margin-top: 10px; }

/* Arama Alanı */
.filters-section { display: flex; gap: 15px; margin: 25px 0 15px 0; }
.filters-section input { flex: 2; }
.filters-section select { flex: 1; }

/* Tablo Yapısı ve Responsive */
.table-responsive { width: 100%; overflow-x: auto; background: var(--bg-body); border-radius: 8px; border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; padding: 15px; background: rgba(255,255,255,0.02); color: var(--text-muted); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
td { padding: 15px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Kategori Yönetimi Modal Özellikleri */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: var(--bg-container); padding: 25px; border-radius: var(--radius); width: 90%; max-width: 450px; border: 1px solid var(--border-color); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { margin: 0; color: #fff; font-size: 1.2rem; }
.category-list { list-style: none; padding: 0; margin: 0; max-height: 250px; overflow-y: auto; background: var(--bg-body); border-radius: 8px; border: 1px solid var(--border-color); }
.category-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 0.95rem; }
.category-list li:last-child { border-bottom: none; }
.category-list li:hover { background: rgba(255,255,255,0.03); }

/* Tablo İçi Özelleştirmeler */
.icon-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 5px; border-radius: 4px; transition: var(--transition); }
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.badge { background: var(--border-color); padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; color: var(--text-muted); }

/* Renk Yardımcı Sınıfları */
.text-primary { color: var(--primary) !important; }
.text-warning { color: #f59e0b !important; }
.text-danger { color: var(--danger) !important; }
span.text-danger { font-weight: bold; }

.hidden { display: none !important; }

/* Mobil Uyumluluk Kuralları */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .filters-section { flex-direction: column; }
    .stats-card { flex-direction: column; gap: 15px; }
    .container { padding: 20px; border-radius: 0; border: none; box-shadow: none; min-height: 100vh; }
    body { padding: 0; }
}