/* ========= GENEL ADMIN ========= */
.admin-dashboard {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  padding: 40px 70px;
  font-family: "Cardo", serif;
}

/* ========= ÜST MENÜ ========= */
.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 45px;
}

.tab {
  background: #a52020;
  padding: 12px 34px;
  border-radius: 40px;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s ease;
}

.tab:hover {
  transform: scale(1.05);
}

.tab.active {
  background: linear-gradient(to right, #b53a3a, #e52b2b);
}

/* ========= BAŞLIK ========= */
.dashboard-title {
  font-size: 42px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 40px;
  background: linear-gradient(to right, #731919, #e52b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========= CARD ========= */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-card {
  width: 260px;
  background: linear-gradient(to bottom, #dfdcda, #8a8679);
  padding: 25px;
  text-align: center;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stat-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 42px;
  font-weight: bold;
  margin: 0;
}

/* ========= TABLO ========= */
.table-container {
  background: white;
  padding: 35px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.table-title {
  font-size: 26px;
  color: #731919;
  margin-bottom: 25px;
}

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

.table th, .table td {
  padding: 14px 12px;
  border-bottom: 1px solid #dcdcdc;
  font-size: 17px;
}

.table th {
  color: #5a0000;
  font-weight: bold;
}

.table tr:hover {
  background: #fafafa;
  transition: .2s;
}

/* ========= AVATAR ========= */
.avatar-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}

/* ========= BLOG GÖRSELLER ========= */
.mini-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 6px;
  border: 1px solid #ccc;
}

/* ========= BUTONLAR ========= */
.edit-btn,
.delete-btn {
  border: none;
  padding: 7px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.edit-btn {
  background: #d9d9d9;
}

.delete-btn {
  background: #b53a3a;
  color: white;
}

.edit-btn:hover {
  background: #bdbdbd;
}

.delete-btn:hover {
  background: #8d1e1e;
}

/* ========= MODAL ========= */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  width: 480px;
  background: white;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
}

.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  margin-bottom: 18px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.save-btn {
  background: #2ecc71;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
}

.cancel-btn {
  background: #999;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
}

.delete-confirm {
  background: #b53a3a;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
}

/* =====================
   ADMIN LAYOUT
===================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #0b0b0f;
  color: #f4f4f4;
  font-family: system-ui, sans-serif;
}

/* =====================
   SIDEBAR
===================== */

.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #111118, #050509);
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-header h2 {
  margin: 0;
  color: #c9a752;
  font-size: 22px;
}

.sidebar-header span {
  font-size: 13px;
  opacity: .7;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.nav-item {
  color: #ddd;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s ease;
  font-size: 15px;
}

.nav-item:hover {
  background: rgba(201,167,82,.15);
  color: #fff;
}

.nav-item.danger {
  margin-top: auto;
  background: rgba(255,75,75,.15);
  color: #ff8b8b;
}

.nav-item.danger:hover {
  background: rgba(255,75,75,.3);
}

/* =====================
   MAIN CONTENT
===================== */

.admin-content {
  flex: 1;
  padding: 28px;
  overflow-x: auto;
}

/* =====================
   ADMIN LOGIN
===================== */

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-box {
  background: rgba(255,255,255,.04);
  padding: 32px;
  border-radius: 16px;
  width: 320px;
  border: 1px solid rgba(201,167,82,.25);
  box-shadow: 0 0 40px rgba(0,0,0,.6);
}

.login-box h1 {
  text-align: center;
  margin-bottom: 18px;
  color: #c9a752;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  background: #0b0b0f;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: white;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg,#c9a752,#f1d483);
  font-weight: 700;
}

.login-error {
  background: rgba(255,80,80,.2);
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
}