/* ========================================
   Gosotek Admin Panel — Dark Theme
   ======================================== */

/* --- Custom Properties --- */
:root {
  --admin-bg: #0f1117;
  --admin-bg-card: #1a1d27;
  --admin-bg-card-hover: #22252f;
  --admin-bg-input: #14161e;
  --admin-sidebar-bg: #12141c;
  --admin-sidebar-width: 260px;
  --admin-accent: #4a6cf7;
  --admin-accent-hover: #3b5de6;
  --admin-accent-light: rgba(74, 108, 247, 0.15);
  --admin-text: #e4e6eb;
  --admin-text-muted: #8b8fa3;
  --admin-text-heading: #ffffff;
  --admin-border: #2a2d38;
  --admin-border-focus: #4a6cf7;
  --admin-success: #22c55e;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --admin-radius: 8px;
  --admin-radius-lg: 12px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.admin-body {
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--admin-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--admin-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--admin-accent);
}

/* --- Links --- */
a {
  color: var(--admin-accent);
  text-decoration: none;
}

a:hover {
  color: var(--admin-accent-hover);
}

/* ========================================
   AUTH GATE
   ======================================== */
.admin-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1117 0%, #1a1d27 50%, #12141c 100%);
  padding: 20px;
}

.admin-auth-card {
  background: rgba(26, 29, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 40px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.admin-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.admin-auth-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.admin-auth-logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--admin-text-heading);
  letter-spacing: -0.3px;
}

.admin-auth h2 {
  color: var(--admin-text-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.admin-auth .admin-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.admin-auth .admin-form-group label {
  display: block;
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.admin-auth .admin-form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

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

.admin-auth .admin-btn-primary {
  width: 100%;
  margin-top: 8px;
}

.admin-auth-error {
  color: var(--admin-danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}

/* ========================================
   ADMIN APP LAYOUT
   ======================================== */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--admin-sidebar-width);
  height: 100vh;
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--admin-border);
  flex-shrink: 0;
}

.admin-sidebar-logo {
  width: 34px;
  height: 34px;
  background: var(--admin-accent);
  border-radius: var(--admin-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.admin-sidebar-header span {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text-heading);
  white-space: nowrap;
}

.admin-sidebar-close {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
}

.admin-sidebar-close:hover {
  color: var(--admin-text);
  background: var(--admin-bg-card-hover);
}

.admin-sidebar-close svg {
  width: 20px;
  height: 20px;
}

/* --- Navigation --- */
.admin-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--admin-radius);
  color: var(--admin-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-nav-item:hover {
  background: var(--admin-accent-light);
  color: var(--admin-text);
}

.admin-nav-item:hover svg {
  opacity: 1;
}

.admin-nav-item.active {
  background: var(--admin-accent);
  color: #fff;
}

.admin-nav-item.active svg {
  opacity: 1;
}

.admin-nav-item--danger {
  color: var(--admin-danger);
}

.admin-nav-item--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--admin-danger);
}

/* --- Sidebar Footer --- */
.admin-sidebar-footer {
  padding: 14px 14px 18px;
  border-top: 1px solid var(--admin-border);
  flex-shrink: 0;
}

.admin-storage-info {
  padding: 0 4px;
  margin-bottom: 12px;
}

.admin-storage-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.admin-storage-bar {
  width: 100%;
}

.admin-storage-track {
  width: 100%;
  height: 4px;
  background: var(--admin-border);
  border-radius: 2px;
  overflow: hidden;
}

.admin-storage-fill {
  height: 100%;
  background: var(--admin-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

/* --- Sidebar Overlay --- */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.admin-main {
  margin-left: var(--admin-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* --- Topbar --- */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--admin-bg-card);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.admin-topbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--admin-text);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--admin-radius);
  line-height: 1;
}

.admin-topbar-toggle:hover {
  background: var(--admin-bg-card-hover);
}

.admin-topbar-toggle svg {
  width: 22px;
  height: 22px;
}

.admin-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text-heading);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-topbar-actions .admin-btn span {
  display: inline;
}

/* ========================================
   BUTTONS
   ======================================== */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--admin-radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}

.admin-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

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

.admin-btn-outline {
  background: transparent;
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-btn-outline:hover {
  background: var(--admin-bg-card-hover);
  border-color: var(--admin-text-muted);
  color: var(--admin-text-heading);
}

.admin-btn-ghost {
  background: transparent;
  border: none;
  color: var(--admin-accent);
  padding: 6px 10px;
}

.admin-btn-ghost:hover {
  background: var(--admin-accent-light);
}

.admin-btn-danger {
  background: transparent;
  border-color: var(--admin-danger);
  color: var(--admin-danger);
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

.admin-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.admin-btn-sm svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   CONTENT AREA
   ======================================== */
.admin-content {
  padding: 24px;
  flex: 1;
}

/* --- Sections --- */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--admin-text-heading);
}

/* ========================================
   DASHBOARD
   ======================================== */
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-left: 3px solid var(--admin-accent);
  border-radius: var(--admin-radius-lg);
  padding: 20px;
  transition: background 0.2s;
}

.admin-stat-card:hover {
  background: var(--admin-bg-card-hover);
}

.admin-stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--admin-text-heading);
  margin-bottom: 4px;
  line-height: 1.2;
}

.admin-stat-card .stat-label {
  font-size: 13px;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.admin-stat-card--success {
  border-left-color: var(--admin-success);
}

.admin-stat-card--warning {
  border-left-color: var(--admin-warning);
}

.admin-stat-card--danger {
  border-left-color: var(--admin-danger);
}

.admin-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-recent-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 20px;
}

.admin-recent-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text-heading);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-recent-list {
  list-style: none;
}

.admin-recent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--admin-border);
  font-size: 13px;
  gap: 8px;
}

.admin-recent-list li:last-child {
  border-bottom: none;
}

.admin-recent-list .recent-title {
  color: var(--admin-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recent-list .recent-meta {
  color: var(--admin-text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.admin-recent-empty {
  color: var(--admin-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}

/* ========================================
   TABLES
   ======================================== */
.admin-table-wrap {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  overflow: hidden;
}

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

.admin-table thead {
  background: var(--admin-bg-input);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  font-size: 13px;
  color: var(--admin-text);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.admin-table tbody tr:hover {
  background: var(--admin-bg-card-hover);
}

.admin-table .table-actions {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

/* --- Empty State --- */
.admin-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--admin-text-muted);
  font-size: 14px;
}

/* --- Badge --- */
.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.admin-badge--published,
.admin-badge--active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--admin-success);
}

.admin-badge--draft {
  background: rgba(245, 158, 11, 0.12);
  color: var(--admin-warning);
}

.admin-badge--closed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--admin-danger);
}

/* ========================================
   EDITOR PANEL
   ======================================== */
.admin-editor {
  display: none;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.admin-editor.open {
  display: block;
}

.admin-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-editor-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text-heading);
}

/* ========================================
   FORMS
   ======================================== */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text-heading);
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.admin-form-group--wide {
  flex: 2;
  min-width: 280px;
}

.admin-form-group--full {
  flex-basis: 100%;
  min-width: 100%;
}

.admin-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  padding: 10px 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  border-color: var(--admin-border-focus);
}

.admin-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8fa3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.admin-form-group select option {
  background: var(--admin-bg-input);
  color: var(--admin-text);
}

.admin-form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ========================================
   WYSIWYG EDITOR
   ======================================== */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-bottom: none;
  border-radius: var(--admin-radius) var(--admin-radius) 0 0;
}

.admin-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}

.admin-toolbar button:hover {
  background: var(--admin-bg-card-hover);
  color: var(--admin-text);
}

.admin-toolbar button svg {
  width: 16px;
  height: 16px;
}

.admin-wysiwyg {
  min-height: 200px;
  padding: 14px 16px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: 0 0 var(--admin-radius) var(--admin-radius);
  color: var(--admin-text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.7;
  outline: none;
  overflow-y: auto;
  transition: border-color 0.2s;
}

.admin-wysiwyg:focus {
  border-color: var(--admin-border-focus);
}

.admin-wysiwyg h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--admin-text-heading);
  margin: 12px 0 8px;
}

.admin-wysiwyg h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--admin-text-heading);
  margin: 10px 0 6px;
}

.admin-wysiwyg p {
  margin-bottom: 8px;
}

.admin-wysiwyg ul,
.admin-wysiwyg ol {
  margin: 8px 0 8px 20px;
}

.admin-wysiwyg a {
  color: var(--admin-accent);
  text-decoration: underline;
}

/* Without toolbar variant */
.admin-wysiwyg--standalone {
  border-radius: var(--admin-radius);
}

/* ========================================
   IMAGE INPUT
   ======================================== */
.admin-image-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-image-input input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.admin-image-input input[type="text"]:focus {
  border-color: var(--admin-border-focus);
}

.admin-image-input .admin-image-or {
  color: var(--admin-text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.admin-image-input .admin-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--admin-bg-card-hover);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.admin-image-input .admin-file-label:hover {
  background: var(--admin-border);
}

.admin-image-input input[type="file"] {
  display: none;
}

.admin-image-preview {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}

.admin-image-preview img {
  max-width: 160px;
  max-height: 100px;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  object-fit: cover;
}

.admin-image-preview .admin-image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--admin-danger);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.admin-image-warning {
  font-size: 12px;
  color: var(--admin-warning);
  margin-top: 4px;
}

/* ========================================
   ACCORDION
   ======================================== */
.admin-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-accordion-item {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  overflow: hidden;
}

.admin-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.admin-accordion-header:hover {
  background: var(--admin-bg-card-hover);
}

.admin-accordion-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text-heading);
  margin: 0;
  padding: 0;
  border: none;
}

.admin-accordion-arrow {
  width: 20px;
  height: 20px;
  color: var(--admin-text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.admin-accordion-item.open .admin-accordion-arrow {
  transform: rotate(180deg);
}

.admin-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.admin-accordion-item.open .admin-accordion-body {
  max-height: 2000px;
}

.admin-accordion-content {
  padding: 4px 20px 20px;
}

/* ========================================
   HOMEPAGE EDITOR SPECIFICS
   ======================================== */
.admin-hp-card {
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 16px;
  margin-bottom: 12px;
}

.admin-hp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-hp-card-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-hp-card-actions {
  display: flex;
  gap: 4px;
}

.admin-hp-list-empty {
  text-align: center;
  color: var(--admin-text-muted);
  padding: 20px;
  font-size: 13px;
}

/* ========================================
   REQUIREMENTS LIST (Careers)
   ======================================== */
.admin-req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-req-item input {
  flex: 1;
  padding: 8px 12px;
  background: var(--admin-bg-input);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.admin-req-item input:focus {
  border-color: var(--admin-border-focus);
}

.admin-req-item .admin-req-remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-danger);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.admin-req-item .admin-req-remove:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--admin-danger);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.admin-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.admin-toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 500;
  min-width: 260px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease;
  border-left: 3px solid var(--admin-accent);
}

.admin-toast-item--success {
  border-left-color: var(--admin-success);
}

.admin-toast-item--error {
  border-left-color: var(--admin-danger);
}

.admin-toast-item--warning {
  border-left-color: var(--admin-warning);
}

.admin-toast-item.removing {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ========================================
   MODAL / CONFIRMATION DIALOG
   ======================================== */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.admin-modal-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--admin-text-heading);
  margin-bottom: 10px;
}

.admin-modal-card p {
  color: var(--admin-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ========================================
   RESPONSIVE — TABLET (<=1024px)
   ======================================== */
@media (max-width: 1024px) {
  .admin-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-recent-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RESPONSIVE — MOBILE (<=768px)
   ======================================== */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar.open + .admin-sidebar-overlay {
    display: block;
  }

  .admin-sidebar-close {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .admin-topbar-toggle {
    display: flex;
  }

  .admin-topbar-actions .admin-btn span {
    display: none;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-cards-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-row {
    flex-direction: column;
  }

  .admin-form-group {
    min-width: 100%;
  }

  .admin-form-group--wide {
    min-width: 100%;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 600px;
  }

  .admin-editor {
    padding: 16px;
  }

  .admin-accordion-content {
    padding: 4px 14px 16px;
  }

  .admin-auth-card {
    padding: 28px 24px;
  }

  .admin-image-input {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-image-input input[type="text"] {
    min-width: 100%;
  }

  .admin-modal-card {
    padding: 22px;
  }

  .admin-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .admin-toast-item {
    min-width: auto;
    max-width: 100%;
  }
}

/* ========================================
   UTILITY
   ======================================== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
