/* Ultra-Premium New Era Styling for TAT Certificate System */

:root {
  /* Vibrant "New Era" Palette */
  --primary: #020617;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --accent-glow: #60a5fa;
  --success: #10b981;
  --danger: #f43f5e;
  
  /* Glassmorphism System */
  --glass: rgba(15, 23, 42, 0.65);
  --glass-bright: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Effects */
  --blur: 20px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #f8fafc;
  background-color: var(--primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, rgba(2, 6, 23, 1) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Shell - Centered & Premium Alignment */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header - Floating Glass Navigation */
.topbar {
  margin-top: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 1.5rem;
  z-index: 1000;
  box-shadow: var(--shadow-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 2px solid rgba(96, 165, 250, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.02em;
}

.brand-copy small {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.topnav {
  display: flex;
  gap: 1rem;
}

.topnav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: all 0.3s;
}

.topnav a:hover, .topnav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section - The "WOW" Entrance */
.hero-minimal {
  padding: 8rem 0;
  text-align: center;
}

.hero-minimal h2 {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
}

.hero-minimal p {
  font-size: 1.4rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* Modern Card System */
.card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-bright), transparent);
}

.card-head {
  margin-bottom: 3.5rem;
  text-align: left;
}

.card-head h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: white;
}

.section-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* Form Styling - New Era High-End */
.form-shell {
  display: grid;
  gap: 3.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.full-span {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

input, select, textarea {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Buttons - "Just Looking Like a Wow" */
.button {
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
}

.button.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.button.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--glass-border);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tables - Workspace of the Future */
.table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--glass-border);
}

td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  color: #e2e8f0;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Status Tracking - Cyberpunk Dynamic Feel */
.status-card {
  background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.progress-bar {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Alignment & Spacing Overhaul */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.student-layout {
  justify-content: center;
}

.form-section {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.form-section:last-of-type {
  border-bottom: none;
}

/* Admin Dashboard Pro Layout */
.admin-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
}

.admin-sidebar {
  background: var(--glass-bright);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.2rem;
  height: calc(100vh - 8rem);
  position: sticky;
  top: 7rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 0.5rem;
}

.nav-link:hover, .nav-link.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.4);
  transform: translateX(5px);
}

/* Utilities */
.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.text-center { text-align: center; }
.mb-10 { margin-bottom: 1rem; }
.mt-10 { margin-top: 1rem; }

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
  .hero-minimal h2 {
    font-size: 3.5rem;
  }
}

.hidden {
  display: none !important;
}