/* ==========================================================================
   D-hub Admin Portal - CSS Stylesheet
   ========================================================================== */

:root {
  --bg-main: #090a10;
  --bg-secondary: #121420;
  --panel-bg: rgba(20, 23, 38, 0.75);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-glow: rgba(224, 169, 109, 0.15);

  --accent-gold: #e0a96d;
  --accent-gold-hover: #f4c085;
  --accent-magenta: #ff007f;
  --accent-cyan: #00f0ff;
  --accent-green: #06d6a0;

  --text-main: #f8f9fa;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
}

/* Glassmorphic Panel */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Login Screen Centered Container */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at center, rgba(224, 169, 109, 0.08) 0%, var(--bg-main) 70%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.login-logo-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #c98845);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  width: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(224, 169, 109, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 169, 109, 0.5);
  background: linear-gradient(135deg, var(--accent-gold-hover), #d89854);
}

/* Custom Input Styling */
.form-control, .form-select {
  background-color: rgba(10, 12, 22, 0.8) !important;
  border: 1px solid var(--panel-border) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.9rem !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 10px rgba(224, 169, 109, 0.3) !important;
}

/* Admin Dashboard Navbar */
.admin-navbar {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(9, 10, 16, 0.9);
  backdrop-filter: blur(15px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Metrics Cards */
.metric-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

/* Tables */
.admin-table {
  color: var(--text-main);
}

.admin-table th {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--panel-border);
}

.admin-table td {
  padding: 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast-container.show {
  opacity: 1;
  transform: translateY(0);
}
