* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
}

.hidden {
  display: none !important;
}

/* Giriş Kartı */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-area {
  text-align: center;
  margin-bottom: 24px;
}

.logo-area h2 {
  color: #0f172a;
  font-size: 24px;
}

.logo-area p {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-group input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background-color: white;
}

.form-group input:focus, .form-select:focus {
  border-color: #2563eb;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* Çerçeveli / Kare Kart Seçim Kutuları */
.checkbox-group {
  margin-top: 10px;
}

.custom-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.custom-checkbox:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.custom-checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.custom-checkbox span {
  font-size: 13px;
  line-height: 1.4;
  color: #334155;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  width: 100%;
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: white;
}

.error-text {
  color: #ef4444;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* Ana Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.badge {
  background-color: #2563eb;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 12px 16px;
  text-align: left;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.nav-btn:hover, .nav-btn.active {
  background-color: #1e293b;
  color: #fff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #1e293b;
}

.user-info {
  margin-bottom: 12px;
  font-size: 13px;
  color: #cbd5e1;
  word-break: break-all;
}

.main-content {
  flex: 1;
  padding: 32px;
}

.topbar {
  margin-bottom: 24px;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.text-muted {
  color: #64748b;
  font-size: 14px;
}

/* Tablo */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.data-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.badge-lead {
  background-color: #fef3c7;
  color: #d97706;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-member {
  background-color: #dcfce7;
  color: #15803d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.btn-convert {
  background-color: #10b981;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn-convert:hover {
  background-color: #059669;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-dialog {
  background: white;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #94a3b8;
}

.close-btn:hover {
  color: #0f172a;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
/* Sürüklenebilir Modal Başlığı */
.modal-header {
  cursor: grab !important;
  user-select: none;
}

.modal-header:active {
  cursor: grabbing !important;
}

.modal-dialog {
  will-change: transform;
}

/* Windows 95 Retro Tema Stilleri */
body.win95-theme {
  background-color: #008080 !important; /* Klasik teal masaüstü rengi */
  font-family: "MS Sans Serif", Arial, sans-serif !important;
}

body.win95-theme .card,
body.win95-theme .modal-dialog,
body.win95-theme .topbar {
  background: #c0c0c0 !important;
  border: 2px solid #dfdfdf !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  border-radius: 0 !important;
}

body.win95-theme .topbar,
body.win95-theme .modal-header {
  background: linear-gradient(90deg, #000080, #1084d0) !important;
  color: #ffffff !important;
  padding: 6px 10px !important;
  font-weight: bold;
}

body.win95-theme .btn,
body.win95-theme button {
  background: #c0c0c0 !important;
  border: 2px solid #dfdfdf !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  border-radius: 0 !important;
  color: #000000 !important;
  font-weight: bold;
}

body.win95-theme .btn:active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff !important;
  padding-top: 5px;
}

body.win95-theme input,
body.win95-theme select,
body.win95-theme textarea {
  background: #ffffff !important;
  border: 2px solid #808080 !important;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #dfdfdf !important;
  border-radius: 0 !important;
}

/* Windows 98 Tema */
body.win98-theme {
  background-color: #008080 !important;
  font-family: Tahoma, Arial, sans-serif !important;
}
body.win98-theme .card, body.win98-theme .modal-dialog, body.win98-theme .topbar {
  background: #ece9d8 !important;
  border: 1px solid #7f9db9 !important;
  border-radius: 0 !important;
}
body.win98-theme .topbar, body.win98-theme .modal-header {
  background: linear-gradient(90deg, #0055ea, #7097ff) !important;
  color: #fff !important;
}

/* Sıradışı / Cyberpunk Tema */
body.cyberpunk-theme {
  background-color: #05050a !important;
  font-family: 'Courier New', monospace !important;
  color: #00ffcc !important;
}
body.cyberpunk-theme .card, body.cyberpunk-theme .modal-dialog, body.cyberpunk-theme .topbar {
  background: #12121f !important;
  border: 1px solid #ff007f !important;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4) !important;
  border-radius: 8px !important;
  color: #00ffcc !important;
}
body.cyberpunk-theme .topbar, body.cyberpunk-theme .modal-header {
  background: #1a0033 !important;
  border-bottom: 1px solid #ff007f !important;
  color: #ff007f !important;
}
body.cyberpunk-theme .btn {
  background: #ff007f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: 0 0 10px #ff007f !important;
}

/* --- MERKEZİ DÜĞME (BTN) STANDARTLARI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-decoration: none;
  width: auto;
}

/* Birincil Buton (Mavi / Ana İşlem) */
.btn-primary {
  background-color: #3972ed;
  border-color: #001bc9;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #132e77;
  border-color: #a90e0e;
}

/* İkincil / Çerçeveli Buton (Outline) */
.btn-outline {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}
.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #5a6573;
}

/* Tehlike / Sil Butonu */
.btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}


/* --- MERKEZİ KART VE ÇERÇEVE STANDARTLARI --- */
.card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Form Elemanları / Input Standartları */
.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}