:root {
  --sidebar-bg: #0f172a; /* Derin Lacivert */
  --header-bg: #ffffff;
  --body-bg: #f8fafc;
  --primary: #ef4444; /* Kurumsal Kırmızı */
  --primary-dark: #b91c1c;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

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

.hidden { display: none !important; }

/* Login View Styling */
#login-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.login-card {
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary); /* Kırmızı başlık */
}

/* Dashboard Layout */
#dashboard-view {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 3rem;
}

.sidebar-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item i { margin-right: 12px; }

/* Main Content Area */
.main-content {
  padding: 2rem 3rem;
  overflow-y: auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

/* UI Components */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--primary);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-danger:hover { background: #fecaca; }

.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: #f1f5f9; }

/* Table Styling */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

tr:hover { background: #f8fafc; }

/* QR Section */
.qr-preview {
  text-align: center;
  padding: 2rem;
  background: #f1f5f9;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.qr-preview img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

/* Custom Modal System */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.modal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.modal-card p {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

@keyframes pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-link-box {
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
}

.qr-link-box span {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
  #dashboard-view { grid-template-columns: 80px 1fr; }
  .sidebar-header h2, .nav-item span { display: none; }
  .nav-item i { margin-right: 0; font-size: 1.2rem; }
  .main-content { padding: 1.5rem; }
}

@media (max-width: 640px) {
  #dashboard-view { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Suspended Account Overlay */
.suspended-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Image Previews */
.img-preview-mini {
  width: 100%;
  height: 100px;
  background: #f1f5f9;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
