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

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  /* Primary Color Brand */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-rgb: 59, 130, 246;
  
  --secondary: #6366f1;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Neutral Color Themes */
  --bg-dark: #090d16;
  --bg-card-dark: rgba(17, 24, 39, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-primary-dark: #f3f4f6;
  --text-muted-dark: #9ca3af;
  
  --bg-light: #f8fafc;
  --bg-card-light: rgba(255, 255, 255, 0.85);
  --border-light: rgba(0, 0, 0, 0.06);
  --text-primary-light: #0f172a;
  --text-muted-light: #64748b;
  
  /* Active Theme Placeholders (Defaults to Light) */
  --bg-main: var(--bg-light);
  --bg-card: var(--bg-card-light);
  --border-color: var(--border-light);
  --text-color: var(--text-primary-light);
  --text-muted: var(--text-muted-light);
}

/* Dark Theme Toggle Styles */
[data-theme="dark"] {
  --bg-main: var(--bg-dark);
  --bg-card: var(--bg-card-dark);
  --border-color: var(--border-dark);
  --text-color: var(--text-primary-dark);
  --text-muted: var(--text-muted-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

/* Hero Section Gradients */
.hero-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
              var(--bg-main);
  padding: 120px 0 80px;
  position: relative;
}

/* Timeline Layout */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

/* Premium Buttons */
.btn-premium {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border: none;
  font-weight: 500;
  border-radius: 10px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-premium:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Custom Navigation Header */
.custom-navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(var(--bg-card), 0.85);
  transition: all 0.3s ease;
}

/* Mega Menu Styles */
.mega-menu {
  position: static !important;
}

.mega-menu-content {
  width: 100%;
  left: 0;
  right: 0;
  padding: 24px;
  border-radius: 0 0 16px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
}

/* Animated Counters */
.counter-card {
  text-align: center;
  padding: 24px;
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Footer Section */
.footer-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

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

.sidebar-panel {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px;
  flex-shrink: 0;
}

.dashboard-content {
  flex-grow: 1;
  padding: 40px;
  background-color: rgba(var(--bg-main), 0.95);
}

/* Active Class */
.nav-link.active-premium {
  color: var(--primary) !important;
  font-weight: 600;
  background-color: rgba(var(--primary-rgb), 0.08);
  border-radius: 8px;
}

/* Custom Card Badges */
.status-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 12px;
}

.badge-submitted { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-under-review { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-revision { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.badge-accepted { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-published { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

/* Custom Forms */
.form-control-premium {
  background-color: rgba(var(--bg-card), 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.form-control-premium:focus {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  outline: none;
  color: var(--text-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
