/* BG Teknik Admin Panel Aesthetic Design System */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --admin-sidebar-bg: #0d2b20;
  --admin-sidebar-hover: #164031;
  --admin-sidebar-active: #10b981;
  --admin-sidebar-text: #94a3b8;
  --admin-sidebar-heading: #475569;
  --admin-body-bg: #f4f6fa;
  --admin-card-bg: #ffffff;
  --admin-text-main: #0f172a;
  --admin-border: #e2e8f0;
  --admin-accent: #10b981;
  --admin-accent-soft: #34d399;
  --font-sans: 'Manrope', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* LAYOUT */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR DESIGN SYSTEM */
.sidebar, .admin-sidebar {
  width: 265px;
  background: var(--admin-sidebar-bg, #16294a);
  color: #f8fafc;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 99;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  height: 75px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.sidebar-logo span span {
  color: var(--admin-accent, #f05c22);
}

.sidebar-menu {
  padding: 16px 8px 24px 8px;
  overflow-y: auto;
  flex: 1;
}

/* AKORDİYON MENÜ STİLLERİ */
.sidebar-accordion-group {
  margin-bottom: 4px;
}

.sidebar-accordion-group .menu-group-label {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.sidebar-accordion-group .menu-group-label:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-accordion-group .accordion-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.sidebar-accordion-group:not(.open) .menu-group-items {
  display: none;
}

.sidebar-accordion-group:not(.open) .accordion-icon {
  transform: rotate(-90deg);
}

.sidebar-toggle-mini-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-toggle-mini-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 3px 0;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.sidebar-nav-item span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav-item i {
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-nav-item:hover {
  background: var(--admin-sidebar-hover, #1f3762);
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: var(--admin-sidebar-active, #f05c22) !important;
  color: #ffffff !important;
  font-weight: 800;
}

.badge-count {
  background: var(--admin-accent, #f05c22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 12px;
}

/* YANDAN KATLANMIŞ (COLLAPSED) SIDEBAR KİPİ */
.admin-wrapper.sidebar-collapsed .sidebar,
.admin-wrapper.sidebar-collapsed .admin-sidebar {
  width: 70px !important;
}

.admin-wrapper.sidebar-collapsed .logo-text,
.admin-wrapper.sidebar-collapsed .group-text,
.admin-wrapper.sidebar-collapsed .nav-text,
.admin-wrapper.sidebar-collapsed .badge-count,
.admin-wrapper.sidebar-collapsed .accordion-icon {
  display: none !important;
}

.admin-wrapper.sidebar-collapsed .menu-group-label {
  justify-content: center;
  padding: 12px 0;
}

.admin-wrapper.sidebar-collapsed .menu-group-items {
  display: block !important;
}

.admin-wrapper.sidebar-collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 12px 0;
}

.admin-wrapper.sidebar-collapsed .sidebar-nav-item span {
  justify-content: center;
}

.admin-wrapper.sidebar-collapsed .sidebar-nav-item i {
  font-size: 22px;
  margin: 0;
}

/* TOP HEADER */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  height: 75px;
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0 16px;
  width: 380px;
  height: 44px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.topbar-search:focus-within {
  border-color: var(--admin-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240, 92, 34, 0.1);
}

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  padding-left: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--admin-text-main);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-view-site {
  background: #fff;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-main);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-view-site:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-add-new, .btn-submit-orange {
  background: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(240, 92, 34, 0.25);
  transition: all 0.2s ease;
}
.btn-add-new:hover, .btn-submit-orange:hover {
  background: var(--admin-accent-soft);
  box-shadow: 0 6px 18px rgba(240, 92, 34, 0.35);
  transform: translateY(-1px);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--admin-border);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--admin-sidebar-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* CONTENT CONTAINER */
.admin-content {
  padding: 35px 40px;
  flex: 1;
}

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

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--admin-text-main);
  letter-spacing: -0.5px;
}

/* STATS GRID & STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--admin-text-main);
  margin-top: 6px;
  line-height: 1;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(240, 92, 34, 0.1);
  color: var(--admin-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

/* CARDS & TABLES */
.admin-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  padding: 35px;
  margin-bottom: 28px;
}

.form-section-header {
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section-header i {
  color: var(--admin-accent);
}

/* TABBED EDIT NAVIGATION (EXACT SCREENSHOT MATCH) */
.admin-tabs-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1.5px solid var(--admin-border);
  margin-bottom: 30px;
  padding-bottom: 0;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--admin-accent);
}

.tab-btn.active {
  color: var(--admin-accent);
  border-bottom-color: var(--admin-accent);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.form-hint {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 6px;
  display: block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--admin-border);
}

.data-table td {
  padding: 16px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.table-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
}

.status-active {
  background: #dcfce7;
  color: #15803d;
}

.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-main);
  cursor: pointer;
  margin-right: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--admin-accent);
  color: #fff;
  border-color: var(--admin-accent);
}

/* FORM CONTROLS (ULTRA CLEAN MODERN STYLING) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  width: 100%;
}

.form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}
.form-label span.req {
  color: var(--admin-accent);
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--admin-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--admin-text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 4px rgba(240, 92, 34, 0.12);
}

textarea.form-control {
  height: 110px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

.input-with-icon {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--admin-border);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}
.input-with-icon:focus-within {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 4px rgba(240, 92, 34, 0.12);
}

.input-with-icon .icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-right: 1px solid var(--admin-border);
  color: var(--admin-accent);
  font-size: 20px;
}
.input-with-icon input {
  border: none;
  height: 48px;
  padding: 0 16px;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 14.5px;
  width: 100%;
}

.checkbox-card {
  background: #ffffff;
  border: 1.5px solid var(--admin-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-accent);
}

.edit-page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.back-link {
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.back-link:hover {
  color: var(--admin-accent);
}

.edit-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
