/* ==========================================================================
   VADIVA CREATIVE LABS - Gallery Admin Panel Stylesheet
   Theme: Vadiva Orange (#f37e4b), Brand Navy (#1e293b / #0f172a), Slate (#475569)
   Aesthetic: Modern Enterprise Dashboard, Clean Typography, Intuitive Workflows
   ========================================================================== */

/* Layout & Root Variables */
:root {
  --admin-sidebar-width: 260px;
  --admin-header-height: 70px;
  --admin-bg: #f8fafc;
  --admin-sidebar-bg: #0f172a;
  --admin-card-bg: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-primary: #f37e4b;
  --admin-primary-hover: #d66432;
  --admin-secondary: #306fa7;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
}

body.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  font-family: var(--font-body);
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background-color: var(--admin-sidebar-bg);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform var(--transition-normal);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.admin-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.admin-logo-img {
  height: 38px;
  width: auto;
}

.admin-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  line-height: 1.1;
}

.admin-logo-sub {
  font-size: 0.72rem;
  color: var(--admin-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.admin-nav {
  flex-grow: 1;
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
}

.admin-nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.5rem 0.85rem 0.25rem;
  margin-top: 0.75rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--border-radius-sm);
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.25rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.admin-nav-item.active {
  background: var(--admin-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(243, 126, 75, 0.35);
}

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

.admin-nav-badge {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.admin-nav-item.active .admin-nav-badge {
  background: rgba(0, 0, 0, 0.25);
}

/* Sidebar Footer & User Profile */
.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-user-info {
  flex-grow: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-role-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(48, 111, 167, 0.35);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.role-super { background: rgba(243, 126, 75, 0.25); color: #fdba74; border-color: rgba(243, 126, 75, 0.4); }
.role-admin { background: rgba(48, 111, 167, 0.25); color: #93c5fd; border-color: rgba(48, 111, 167, 0.4); }
.role-editor { background: rgba(16, 185, 129, 0.25); color: #86efac; border-color: rgba(16, 185, 129, 0.4); }
.role-viewer { background: rgba(148, 163, 184, 0.25); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.4); }

/* Main Admin Layout */
.admin-main-wrap {
  margin-left: var(--admin-sidebar-width);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--admin-sidebar-width));
}

/* Header */
.admin-header {
  height: var(--admin-header-height);
  background: white;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 900;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.role-switcher-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.admin-content-area {
  padding: 2rem;
  flex-grow: 1;
}

/* Tab Content Visibility */
.admin-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DASHBOARD OVERVIEW CARDS
   ========================================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: white;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--admin-border);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.metric-info h4 {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--admin-text-main);
  line-height: 1;
}

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

.metric-photos { background: #fef0e9; color: var(--admin-primary); }
.metric-videos { background: #e6f0fa; color: var(--admin-secondary); }
.metric-albums { background: #ecfdf5; color: var(--admin-success); }
.metric-published { background: #f0fdf4; color: #16a34a; }
.metric-drafts { background: #fffbeb; color: var(--admin-warning); }
.metric-archived { background: #f1f5f9; color: #64748b; }
.metric-trash { background: #fef2f2; color: var(--admin-danger); }

/* Quick Action Bar */
.admin-quick-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Common Section Card Containers */
.admin-card {
  background: white;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--admin-border);
  box-shadow: var(--shadow-subtle);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0;
}

/* ==========================================================================
   UPLOAD MANAGER
   ========================================================================== */
.dropzone-container {
  border: 2px dashed #cbd5e1;
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--admin-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2rem;
}

.dropzone-container:hover, .dropzone-container.dragover {
  border-color: var(--admin-primary);
  background: #fff7ed;
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-subtle);
  color: var(--admin-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dropzone-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--admin-text-main);
}

.dropzone-desc {
  font-size: 0.9rem;
  color: var(--admin-text-muted);
  margin-bottom: 1.25rem;
}

.upload-queue-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1.25rem;
}

.queue-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
}

.queue-details {
  flex-grow: 1;
}

.queue-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--admin-text-main);
}

.queue-size {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.queue-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.queue-progress-fill {
  height: 100%;
  background: var(--admin-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* Metadata Form Inputs */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text-main);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--admin-border);
  font-size: 0.9rem;
  color: var(--admin-text-main);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(243, 126, 75, 0.15);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* ==========================================================================
   MEDIA LIBRARY GRID & TABLE
   ========================================================================== */
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--admin-border);
}

.library-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}

.library-filters-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--admin-border);
  font-size: 0.85rem;
  color: var(--admin-text-main);
  background: white;
  cursor: pointer;
}

.view-mode-toggle {
  display: inline-flex;
  border: 1px solid var(--admin-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.view-btn {
  padding: 0.45rem 0.75rem;
  background: white;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.view-btn.active {
  background: var(--admin-bg);
  color: var(--admin-text-main);
  font-weight: 700;
}

/* Admin Media Grid */
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-media-card {
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.admin-media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

.admin-media-card.selected {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 2px var(--admin-primary);
}

.admin-media-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0f172a;
}

.admin-check-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.admin-check-overlay input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-primary);
  cursor: pointer;
}

.admin-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 5;
}

.status-published { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-draft { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.status-archived { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.status-trash { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.admin-card-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.admin-card-inner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.admin-card-inner-meta {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-bottom: 0.75rem;
}

.admin-card-actions {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: white;
  color: var(--admin-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-sm:hover {
  background: var(--admin-bg);
  color: var(--admin-text-main);
  border-color: #cbd5e1;
}

.btn-icon-sm.danger:hover {
  background: #fef2f2;
  color: var(--admin-danger);
  border-color: #fca5a5;
}

/* Admin Table View */
.admin-table-wrap {
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #f8fafc;
}

/* Floating Bulk Action Bar */
.bulk-action-bar {
  position: fixed;
  bottom: 2rem;
  left: calc(var(--admin-sidebar-width) + 2rem);
  right: 2rem;
  background: var(--admin-sidebar-bg);
  color: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 950;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: wrap;
  gap: 1rem;
}

.bulk-action-bar.active {
  transform: translateY(0);
  opacity: 1;
}

.bulk-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Modals */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

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

.admin-modal-card {
  background: white;
  border-radius: var(--border-radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.admin-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-body {
  padding: 1.75rem;
}

.admin-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Permissions Matrix Table */
.perm-matrix-table th, .perm-matrix-table td {
  text-align: center;
}
.perm-matrix-table th:first-child, .perm-matrix-table td:first-child {
  text-align: left;
}
.perm-check { color: #16a34a; font-weight: 700; font-size: 1.1rem; }
.perm-cross { color: #cbd5e1; font-weight: 400; font-size: 1rem; }

/* Responsive */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main-wrap {
    margin-left: 0;
    width: 100%;
  }
  .bulk-action-bar {
    left: 1rem;
    right: 1rem;
  }
}

/* ==========================================================================
   AUTHENTICATION & LOGIN SCREEN
   ========================================================================== */
body.not-logged-in .admin-sidebar,
body.not-logged-in .admin-main-wrap {
  display: none !important;
}

body.not-logged-in .admin-login-screen {
  display: flex !important;
}

.admin-login-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(circle at 85% 15%, rgba(243, 126, 75, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(48, 111, 167, 0.15) 0%, transparent 50%),
              #0f172a;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.admin-login-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 480px;
  width: 100%;
  padding: 2.75rem 2.5rem;
  position: relative;
  animation: loginCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-brand-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--admin-text-main);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.login-error-alert {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  align-items: center;
  gap: 0.5rem;
}

.login-error-alert.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.input-password-wrap {
  position: relative;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.toggle-password-btn:hover {
  color: var(--admin-text-main);
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.btn-login-submit {
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  background: var(--admin-primary);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(243, 126, 75, 0.35);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-login-submit:hover {
  background: var(--admin-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 126, 75, 0.45);
}

.login-credentials-helper {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.login-cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: #475569;
}

.login-cred-row code {
  background: #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  color: #0f172a;
}

.quick-fill-btn-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.quick-fill-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-fill-btn:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  background: #fff7ed;
}

.login-footer-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.login-footer-links a {
  color: var(--admin-secondary);
  font-weight: 600;
}

.login-footer-links a:hover {
  text-decoration: underline;
}

/* Header & Sidebar Logout Buttons */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--border-radius-sm);
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.admin-sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem;
  margin-top: 0.75rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}
