/* =====================================================
   NUVEX SYSTEMS — Admin Panel CSS
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --bg-primary:    #050510;
  --bg-secondary:  #0a0a1e;
  --bg-card:       #0d0d28;
  --bg-sidebar:    #080818;
  --bg-glass:      rgba(108, 99, 255, 0.05);

  --color-primary:   #6C63FF;
  --color-secondary: #00D4FF;
  --color-accent:    #FF6584;
  --color-success:   #00E676;
  --color-warning:   #FFD700;
  --color-danger:    #FF5252;

  --text-primary:   #E8E8FF;
  --text-secondary: #A0A0CC;
  --text-muted:     #5a5a8a;

  --border-color:  rgba(108, 99, 255, 0.2);
  --border-glow:   rgba(108, 99, 255, 0.5);

  --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
  --gradient-text:    linear-gradient(135deg, #6C63FF, #00D4FF, #FF6584);

  --shadow-glow: 0 0 40px rgba(108,99,255,0.3);
  --transition-normal: 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --sidebar-width: 280px;
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }

/* =====================================================
   LOGIN SCREEN
   ===================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(108,99,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(0,212,255,0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: rgba(13, 13, 40, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-glow);
  animation: loginAppear 0.6s ease both;
}

@keyframes loginAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 30px rgba(108,99,255,0.4);
  margin: 0 auto 16px;
  display: block;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-lock-icon {
  width: 48px;
  height: 48px;
  background: rgba(108,99,255,0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 20px;
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-normal);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(108,99,255,0.06);
  box-shadow: 0 0 20px rgba(108,99,255,0.15);
}

.form-input.password-input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition-normal);
  padding: 4px;
}

.password-toggle:hover { color: var(--color-primary); }

.btn-login {
  width: 100%;
  padding: 15px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 0 30px rgba(108,99,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(108,99,255,0.6);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  display: none;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-danger);
  margin-bottom: 20px;
  align-items: center;
  gap: 8px;
}

.login-error.show { display: flex; }

.login-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-normal);
  margin-top: 20px;
  justify-content: center;
}

.login-back:hover { color: var(--color-primary); }

/* =====================================================
   ADMIN DASHBOARD LAYOUT
   ===================================================== */
.admin-layout {
  display: none;
  min-height: 100vh;
}

.admin-layout.active {
  display: flex;
}

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

.sidebar-header {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(108,99,255,0.3);
}

.sidebar-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar-version {
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.sidebar-section-label:first-child {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  user-select: none;
  text-decoration: none;
  margin-bottom: 4px;
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(108,99,255,0.08);
  border-color: var(--border-color);
}

.nav-item.active {
  color: var(--color-primary);
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.25);
}

.nav-item-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid var(--border-color);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(108,99,255,0.05);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-logout {
  width: 100%;
  padding: 11px;
  background: rgba(255,82,82,0.1);
  border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-md);
  color: var(--color-danger);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-logout:hover {
  background: rgba(255,82,82,0.2);
  border-color: rgba(255,82,82,0.4);
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.topbar-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.topbar-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(108,99,255,0.3);
}

.topbar-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(108,99,255,0.5);
}

.topbar-btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.topbar-btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--color-primary);
}

/* Admin content area */
.admin-content {
  padding: 32px;
  flex: 1;
}

/* Panels */
.admin-panel {
  display: none;
}

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

/* =====================================================
   STATS CARDS
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.stat-card-1::before { background: var(--gradient-primary); }
.stat-card-2::before { background: linear-gradient(90deg, #00E676, #00C853); }
.stat-card-3::before { background: linear-gradient(90deg, #FFD700, #FFA000); }
.stat-card-4::before { background: linear-gradient(90deg, #FF6584, #E53935); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.stat-icon-1 { background: rgba(108,99,255,0.15); }
.stat-icon-2 { background: rgba(0,230,118,0.15); }
.stat-icon-3 { background: rgba(255,215,0,0.15); }
.stat-icon-4 { background: rgba(255,101,132,0.15); }

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================================================
   PROJECT FORM SECTION
   ===================================================== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.form-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(108,99,255,0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.form-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-form-grid .form-group-full {
  grid-column: 1 / -1;
}

.form-group { margin-bottom: 0; }

.admin-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.admin-input,
.admin-textarea,
.admin-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-normal);
  -webkit-appearance: none;
}

.admin-input::placeholder,
.admin-textarea::placeholder {
  color: var(--text-muted);
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
  border-color: var(--color-primary);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 20px rgba(108,99,255,0.12);
}

.admin-select option {
  background: var(--bg-card);
}

.admin-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Tags input */
.tags-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 50px;
  cursor: text;
  transition: all var(--transition-normal);
}

.tags-input-wrapper:focus-within {
  border-color: var(--color-primary);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 20px rgba(108,99,255,0.12);
}

.tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

.tag-remove {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.tag-remove:hover { opacity: 1; }

.tags-input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  min-width: 120px;
  flex: 1;
}

.tags-input::placeholder { color: var(--text-muted); }

/* Image preview */
.image-preview {
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  margin-top: 10px;
  transition: border-color var(--transition-normal);
  position: relative;
}

.image-preview.has-image {
  border-style: solid;
  border-color: var(--color-primary);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.image-preview-placeholder .preview-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.image-preview-placeholder p {
  font-size: 0.8rem;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-admin {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(108,99,255,0.3);
}

.btn-admin-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(108,99,255,0.5);
}

.btn-admin-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-admin-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-admin-secondary:hover {
  color: var(--text-primary);
  border-color: var(--color-primary);
  background: rgba(108,99,255,0.1);
}

.btn-admin-danger {
  background: rgba(255,82,82,0.1);
  border: 1px solid rgba(255,82,82,0.2);
  color: var(--color-danger);
}

.btn-admin-danger:hover {
  background: rgba(255,82,82,0.2);
}

/* =====================================================
   PROJECTS TABLE
   ===================================================== */
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.projects-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.projects-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-input {
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-normal);
  width: 240px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--color-primary);
  background: rgba(108,99,255,0.05);
}

.projects-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.projects-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.projects-table td {
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(108,99,255,0.06);
  vertical-align: middle;
}

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

.projects-table tr:hover td {
  background: rgba(108,99,255,0.04);
}

.project-thumb {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.project-title-cell {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 200px;
}

.project-title-cell small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.project-category-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--color-primary);
  white-space: nowrap;
}

.project-date {
  white-space: nowrap;
  font-size: 0.82rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge-active {
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  color: var(--color-success);
}

.status-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.table-action-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(108,99,255,0.1);
}

.table-action-btn.delete:hover {
  color: var(--color-danger);
  border-color: rgba(255,82,82,0.3);
  background: rgba(255,82,82,0.1);
}

/* Empty table */
.table-empty {
  text-align: center;
  padding: 60px 40px;
}

.table-empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  display: block;
  margin-bottom: 16px;
}

.table-empty h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.table-empty p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-glow), 0 40px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.modal-icon-danger {
  background: rgba(255,82,82,0.1);
  border: 1px solid rgba(255,82,82,0.2);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 32px;
}

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

/* =====================================================
   TOAST
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: slideInToast 0.3s ease;
  max-width: 360px;
  backdrop-filter: blur(10px);
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-success { background: linear-gradient(135deg, #00c853, #00e676); color: #fff; }
.toast-error   { background: linear-gradient(135deg, #e53935, #f44336); color: #fff; }
.toast-info    { background: linear-gradient(135deg, #6C63FF, #00D4FF); color: #fff; }
.toast-warning { background: linear-gradient(135deg, #f57c00, #FFD700); color: #fff; }

/* =====================================================
   SETTINGS
   ===================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.setting-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.setting-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.setting-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.danger-zone {
  border-color: rgba(255,82,82,0.2);
  background: rgba(255,82,82,0.03);
}

.danger-zone .setting-card-title {
  color: var(--color-danger);
}

/* Password strength indicator */
.strength-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.strength-weak   { width: 33%; background: var(--color-danger); }
.strength-medium { width: 66%; background: var(--color-warning); }
.strength-strong { width: 100%; background: var(--color-success); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-content {
    padding: 20px 16px;
  }
}
