/* ==========================================================================
   Visual Dock - Authentication & Admin Panel CSS
   ========================================================================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-app);
  position: relative;
  overflow: hidden;
}

/* Background animated decorative orbs */
.auth-bg-blob-1 {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 56, 35, 0.15) 0%, rgba(255, 56, 35, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.auth-bg-blob-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.12) 0%, rgba(255, 107, 74, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(20px);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-surface-secondary);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

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

.form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form-help-banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid rgba(255, 56, 35, 0.2);
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 56, 35, 0.45);
}

/* Status Alert in Login */
.status-alert {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.4;
}

.status-alert.pending {
  background: rgba(255, 149, 0, 0.12);
  color: #FF9500;
  border: 1px solid rgba(255, 149, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Admin Panel Specific Styles
   ========================================================================== */

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

.admin-stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-stat-icon.pending {
  background: rgba(255, 149, 0, 0.12);
  color: #FF9500;
}

.admin-stat-icon.approved {
  background: rgba(52, 199, 89, 0.12);
  color: #34C759;
}

.admin-stat-icon.total {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

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

/* User Table */
.user-table-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.user-table-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.user-table-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.table-filter-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-surface-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.table-filter-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.table-filter-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.vd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.vd-table th {
  padding: 16px 24px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-light);
}

.vd-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.vd-table tr:hover td {
  background: var(--bg-surface-secondary);
}

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

.badge-status.approved {
  background: rgba(52, 199, 89, 0.12);
  color: #34C759;
}

.badge-status.pending {
  background: rgba(255, 149, 0, 0.12);
  color: #FF9500;
}

.badge-status.rejected {
  background: rgba(255, 59, 48, 0.12);
  color: #FF3B30;
}

.action-btn-group {
  display: flex;
  gap: 8px;
}

.table-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.table-btn.approve {
  background: rgba(52, 199, 89, 0.15);
  color: #2da84a;
}
.table-btn.approve:hover {
  background: #34C759;
  color: #fff;
}

.table-btn.reject {
  background: rgba(255, 59, 48, 0.15);
  color: #FF3B30;
}
.table-btn.reject:hover {
  background: #FF3B30;
  color: #fff;
}

.table-btn.delete {
  background: var(--bg-surface-secondary);
  color: var(--text-muted);
}
.table-btn.delete:hover {
  background: var(--bg-surface-tertiary);
  color: #FF3B30;
}
