/* style.css v5.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #080808;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

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

.sidebar {
  width: 240px;
  background: #0D0D0D;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Responsive Desktop Navigation Header */
.desktop-only-nav {
  display: none !important;
}

@media (min-width: 768px) {
  .desktop-only-nav {
    display: flex !important;
  }
  .main-content {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  .main-content {
    padding: 16px;
    padding-top: 66px; /* Space for mobile header */
    padding-bottom: 90px; /* Space for mobile bottom nav */
  }
}

/* Sidebar Elements */
.sidebar-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #D4AF37, #F5D060);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 14px;
}
.sidebar-logo .logo-text {
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.sidebar-logo .logo-version {
  font-size: 10px;
  color: #D4AF37;
  font-weight: 700;
  margin-top: 4px;
}

.sidebar-user-card {
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-avatar {
  width: 40px;
  height: 40px;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sidebar-username {
  font-weight: 700;
  font-size: 14px;
}
.sidebar-class-level {
  font-size: 11px;
  color: #D4AF37;
  font-weight: 600;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #6B7280;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}
.sidebar-nav-item:hover {
  color: #D1D5DB;
  background: rgba(255,255,255,0.04);
}
.sidebar-nav-item.active {
  color: #FFFFFF;
  background: rgba(212,175,55,0.08);
  border-left-color: #D4AF37;
}

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}
@media (min-width: 768px) {
  .mobile-header {
    display: none;
  }
}
.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 16px;
}
.mobile-avatar-btn {
  background: transparent;
  border: none;
  font-size: 20px;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px 20px;
  z-index: 100;
}
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  color: #6B7280;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s;
  background: transparent;
  border: none;
  font-family: inherit;
}
.mobile-nav-btn.active {
  color: #D4AF37;
}
.mobile-nav-btn.active i {
  transform: translateY(-1px);
}
.mobile-nav-btn-center {
  background: #D4AF37;
  color: #000;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  border: none;
  transform: translateY(-10px);
}

/* Cards */
.card {
  background: #111111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.card:hover {
  border-color: rgba(255,255,255,0.12);
}
.card-sm {
  padding: 14px 16px;
  border-radius: 12px;
}

/* Progress Bars */
.progress-bar-wrapper {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}
.progress-bar-gold { background: linear-gradient(90deg, #D4AF37, #F5D060); }
.progress-bar-red { background: linear-gradient(90deg, #DC2626, #EF4444); }
.progress-bar-blue { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.progress-bar-green { background: linear-gradient(90deg, #10B981, #34D399); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold { background: rgba(212,175,55,0.15); color: #D4AF37; border: 1px solid rgba(212,175,55,0.3); }
.badge-red { background: rgba(220,38,38,0.15); color: #EF4444; border: 1px solid rgba(220,38,38,0.3); }
.badge-green { background: rgba(16,185,129,0.15); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.badge-blue { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.badge-purple { background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.3); }

/* Quest Cards */
.quest-card {
  background: #111111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.quest-card:hover {
  background: #161616;
}
.quest-card.completed {
  opacity: 0.5;
}
.quest-card .quest-accent {
  width: 3px;
  height: 100%;
  border-radius: 999px;
  align-self: stretch;
  min-height: 40px;
}

/* Buttons */
.btn-primary {
  background: #D4AF37;
  color: #000;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #E5C04B;
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #D1D5DB;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}
.btn-danger {
  background: rgba(220,38,38,0.1);
  color: #EF4444;
  border: 1px solid rgba(220,38,38,0.2);
}
.btn-danger:hover {
  background: rgba(220,38,38,0.2);
}

/* Stat Cards */
.stat-card {
  background: #111111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 32px;
  font-weight: 900;
  color: white;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Utilities */
.hidden {
  display: none !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pill-btn {
  padding: 6px 16px;
  border-radius: 999px;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.1);
  color: #D1D5DB;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill-btn.active {
  background: #D4AF37;
  color: #000;
  border-color: #D4AF37;
  font-weight: 800;
}

input, select, textarea {
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(212,175,55,0.5);
  outline: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #111111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
  width: calc(100% - 32px);
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* Animations */
.fade-in { animation: fadeIn 0.3s ease forwards; }
.slide-up { animation: slideUp 0.4s ease forwards; }
.pulse-gold { animation: pulseGold 2s infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGold { 
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

.grid-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .grid-two-col {
    grid-template-columns: 60% 40%;
  }
}

.text-gold { color: #D4AF37; }
.text-red { color: #DC2626; }
.text-blue { color: #3B82F6; }
.text-green { color: #10B981; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* Custom Dark Thin Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Bright Calendar Picker Icon on Dark Inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

