/* WordPress Tarzı Temiz Admin Paneli CSS */
:root {
  --admin-sidebar: #1e1e2d;
  --admin-sidebar-active: #2a2a3c;
  --admin-topbar: #ffffff;
  --admin-bg: #f3f4f6;
  --admin-text: #1f2937;
  --admin-card: #ffffff;
  --admin-border: #e5e7eb;
  --admin-primary: #3b82f6;
  --admin-primary-hover: #2563eb;
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-accent: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background: var(--admin-sidebar);
  color: #a2a3b7;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 20px 24px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand span { color: #38bdf8; }
.sidebar-menu { list-style: none; padding: 15px 0; flex: 1; }
.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #a2a3b7;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s;
}
.menu-item a:hover, .menu-item.active a {
  background: var(--admin-sidebar-active);
  color: #fff;
  border-left: 4px solid var(--admin-primary);
}
.badge-count {
  margin-left: auto;
  background: #374151;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
}

/* MAIN CONTENT */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  background: var(--admin-topbar);
  height: 60px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.quick-add-btn {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16,185,129,0.3);
}
.quick-add-btn:hover { background: #059669; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-site-view {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
.btn-logout {
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

/* CONTENT BODY */
.content-body {
  padding: 24px;
  flex: 1;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
}

/* STAT WIDGETS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--admin-card);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.stat-info h4 { font-size: 0.82rem; color: #6b7280; font-weight: 600; }
.stat-info p { font-size: 1.6rem; font-weight: 800; color: #111827; }

/* TABLES */
.card-table {
  background: var(--admin-card);
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}
.table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th {
  background: #f9fafb;
  padding: 12px 18px;
  font-weight: 700;
  color: #4b5563;
  border-bottom: 1px solid var(--admin-border);
}
td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fafb; }

.btn-sm {
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-edit { background: #dbeafe; color: #1e40af; }
.btn-del { background: #fee2e2; color: #991b1b; }

/* FORMS */
.form-card {
  background: var(--admin-card);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  max-width: 800px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #374151;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
}
.form-control:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
textarea.form-control { min-height: 140px; font-family: inherit; }

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
