/* =====================================================================
   GURU DIGITAL COACH - ADMIN DASHBOARD LUXURY STYLESHEET
   Black & Gold Creative Agency Admin UI
   ===================================================================== */

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

:root {
  --bg-primary: #080808;
  --bg-sidebar: #0d0d0d;
  --bg-secondary: #121212;
  --bg-card: #171717;
  --bg-card-hover: #1e1e1e;
  --bg-input: #0a0a0a;

  --gold-primary: #D4AF37;
  --gold-light: #F5D98B;
  --gold-accent: #E5B94B;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-glow-intense: rgba(212, 175, 55, 0.45);
  --gold-border: rgba(212, 175, 55, 0.22);
  --gold-border-hover: rgba(212, 175, 55, 0.6);

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography & Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF1C5 0%, #F5D98B 25%, #D4AF37 55%, #E5B94B 80%, #AA8015 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.btn-gold {
  background: linear-gradient(135deg, #F5D98B 0%, #D4AF37 60%, #C29323 100%);
  color: #080808;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5D98B 40%, #D4AF37 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  color: #fff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* Auth / Login Container */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.1) 0%, #080808 65%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 35px var(--gold-glow);
}

.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon-box {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f1b11, #13120d);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-weight: 900;
  font-size: 1.75rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  background: #101010;
}

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

/* Dashboard App Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.sidebar-nav {
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-weight: 700;
  border-left: 3px solid var(--gold-primary);
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #d1d5db;
}

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Main Dashboard Content Area */
.dashboard-main {
  flex-grow: 1;
  padding: 2.25rem 2.5rem;
  background: var(--bg-primary);
  overflow-y: auto;
}

@media (max-width: 768px) {
  .dashboard-main {
    padding: 1.25rem;
  }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1;
}

/* Upload Card & Drop Area */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.drop-zone {
  border: 2px dashed rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(10, 10, 10, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #1e1e1e;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
  display: none;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F5D98B, #D4AF37);
  width: 0%;
  transition: width 0.3s ease;
}

/* Table Styles for Manage Portfolio */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

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

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

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

.data-table th {
  background: #111111;
  padding: 1rem 1.25rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-thumb-preview {
  width: 72px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-published {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-draft {
  background: rgba(161, 161, 170, 0.15);
  color: #a1a1aa;
  border: 1px solid rgba(161, 161, 170, 0.3);
}

.badge-featured {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px var(--gold-glow);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Setup / Warning Banners */
.alert-banner {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.alert-info {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #1c1c1c;
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideIn 0.3s ease;
}

.toast.toast-success {
  border-color: #22c55e;
}

.toast.toast-error {
  border-color: #ef4444;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
