/* Makerzverse Admin Panel Styles */
.admin-badge {
  background: var(--accent-neon);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.auth-status-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.user-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-neon);
  box-shadow: 0 0 8px var(--accent-neon);
}

.user-email-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-main {
  min-height: 70vh;
  padding-top: 120px;
  padding-bottom: 3rem;
}

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.admin-auth-wrapper {
  max-width: 480px;
  margin: 3rem auto;
}

.auth-card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

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

.admin-form label,
.modal-body label {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.admin-input {
  width: 100%;
  background: #090d0b;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.admin-input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.admin-select {
  cursor: pointer;
}

.helper-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.alert-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert-box.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.auth-toggle-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-neon);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.link-btn:hover {
  color: #fff;
}

/* Dashboard Section */
.dashboard-wrapper {
  animation: fadeIn 0.3s ease;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 2.2rem;
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

@media (max-width: 992px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

.projects-management-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header h3 {
  font-size: 1.2rem;
  color: #fff;
}

.count-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.loading-state, .empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state p {
  margin: 1rem 0 1.25rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(57, 255, 20, 0.15);
  border-top-color: var(--accent-neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Project Item Row in Admin */
.admin-project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-project-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: #0d120f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition-fast);
}

.admin-project-item:hover {
  border-color: rgba(34, 197, 94, 0.3);
}

.item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #141c18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: #fff;
  border-color: var(--accent-green);
  background: #1c2621;
}

.btn-icon.delete:hover {
  color: #f87171;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Sidebar Quick Guide */
.quick-guide-card h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.guide-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.guide-list code {
  font-family: var(--font-mono);
  color: var(--accent-neon);
  background: rgba(57, 255, 20, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.25rem 0;
}

/* Admin Modal */
.admin-modal-dialog {
  max-width: 640px;
  width: 90%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.35rem;
  color: #fff;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}
