/* Admin Page Styles */
.admin-layout {
  display: flex;
  gap: 0;
  height: 100%;
  margin-left: -32px;
  margin-top: -32px;
}

.admin-sidebar {
  width: 240px;
  background: var(--bg-light);
  border-right: 1px solid var(--border);
  padding: 0;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 88px;
}

.admin-sidebar h3 {
  display: none;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 0;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.admin-nav-link:hover {
  background: var(--bg-lighter);
  color: var(--text);
}

.admin-nav-link.active {
  background: var(--primary-dim);
  color: var(--primary);
}

.admin-nav-link svg {
  flex-shrink: 0;
}

.admin-content {
  flex: 1;
  min-width: 0;
  padding: 32px;
  padding-top: 32px;
  margin-left: 240px;
}

.admin-section-content {
  display: none;
}

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

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

.admin-section {
  margin-bottom: 32px;
}

.admin-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.info-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.info-label {
  color: var(--text-dim);
  font-weight: 500;
}

.info-value {
  color: var(--text-secondary);
  font-weight: 600;
  text-align: right;
}

.info-value.status-ok {
  color: var(--success);
}

.info-value.status-error {
  color: var(--danger);
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.action-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.action-card:hover {
  background: var(--bg-lighter);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.action-icon {
  font-size: 48px;
  line-height: 1;
}

.action-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.action-description {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Simple Toggle Switch (for admin settings) */
.simple-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.simple-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.simple-toggle .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-lighter);
  border: 1px solid var(--border);
  transition: 0.3s;
  border-radius: 28px;
}

.simple-toggle .toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-dim);
  transition: 0.3s;
  border-radius: 50%;
}

.simple-toggle input:checked + .toggle-slider {
  background-color: var(--success);
  border-color: var(--success);
}

.simple-toggle input:checked + .toggle-slider:before {
  background-color: white;
  transform: translateX(24px);
}

.simple-toggle input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
