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

:root {
  --bg-color: #0b0d19;
  --panel-bg: rgba(22, 28, 45, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-pink: #d946ef;
  --accent-orange: #f97316;
  --glow-pink: rgba(217, 70, 239, 0.4);
  --glow-blue: rgba(59, 130, 246, 0.4);
  --font-family: 'Outfit', sans-serif;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius-main: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-color) 70%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  padding: 2rem 1rem;
}

/* Glassmorphic Container */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 2.5rem;
  width: 100%;
  max-width: 900px;
  margin-top: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* GPU Layer Promotion to prevent scroll crashes */
  transform: translateZ(0);
  will-change: transform, filter;
  backface-visibility: hidden;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 600px;
  margin-top: 10vh;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #60a5fa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.2);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Custom Buttons with Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-pink);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Item List / Cards */
.items-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.item-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.item-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-item {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.logout-link:hover {
  color: var(--text-primary);
}

/* Loading/Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}
.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.1);
}
