/* Admin Panel Styles */
:root {
  --primary: #1a56db;
  --dark: #0f172a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

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

body {
  font-family: 'Noto Sans Georgian', 'Segoe UI', sans-serif;
  background: #f1f5f9;
  color: var(--gray-700);
  min-height: 100vh;
  display: flex;
}

a { text-decoration: none; color: inherit; }

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo svg { color: #3b82f6; }

.sidebar-nav { padding: 16px 0; flex: 1; }

.sidebar-section { padding: 8px 16px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #475569; margin-top: 8px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: .875rem;
  color: #94a3b8;
  transition: all .15s ease;
  border-radius: 0;
}

.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.sidebar-link.active {
  color: #3b82f6;
  border-left: 2px solid #3b82f6;
}

/* Main */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

.admin-user { display: flex; align-items: center; gap: 8px; font-size: .875rem; }

.admin-content { padding: 32px; }

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 { font-size: 1rem; font-weight: 700; color: var(--dark); }

.card-body { padding: 24px; }

/* Grid */
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--gray-100);
}

.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-card-num { font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.stat-card-label { font-size: .8rem; color: var(--gray-500); }

/* Forms */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #1044b5; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 16px; text-align: left; font-size: .8rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; background: var(--gray-100); border-bottom: 1px solid var(--gray-300); }
.table td { padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid var(--gray-100); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .875rem; margin-bottom: 16px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Badge */
.badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-100); margin-bottom: 24px; }
.tab { padding: 10px 18px; font-size: .875rem; font-weight: 500; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; background: none; border-radius: 6px 6px 0 0; font-family: inherit; border-left: none; border-right: none; border-top: none; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 360px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h2 { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.login-logo p { font-size: .85rem; color: var(--gray-500); margin-top: 4px; }
