@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #050816;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --primary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
  --glow-gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(124, 58, 237, 0.4));
  --text-main: #ffffff;
  --text-sub: #9ca3af;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Gradient Blobs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: floatBlob 8s infinite alternate ease-in-out;
}

body::before {
  background: #4f46e5;
  top: -50px;
  left: -50px;
}

body::after {
  background: #7c3aed;
  bottom: 10%;
  right: -50px;
  animation-delay: -4s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.2); }
}

/* ================= Clean Navbar & Flex Layout ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Auth Buttons Container (Right Alignment) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Secondary Button for Login */
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Primary Button for Register */
.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.2)); }
  100% { filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.8)); }
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.hero {
  text-align: center;
  padding: 8rem 1rem 5rem 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-sub);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 8%;
}

.footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  margin-top: 5rem;
}

/* ================= Modern Pure CSS Animated Logo ================= */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

/* Outer Glowing Frame */
.logo-icon-box {
  position: relative;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

/* Animated Rotating Gradient Background Ring */
.logo-icon-box::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: conic-gradient(#4f46e5, #7c3aed, #22c55e, #4f46e5);
  animation: rotateGlow 4s linear infinite;
  z-index: 1;
}

/* Inner Dark Core for Glass Effect */
.logo-icon-core {
  position: absolute;
  width: 36px;
  height: 36px;
  background: #050816;
  border-radius: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner Pulse AI Lens/Pupil */
.ai-lens {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #22c55e, #4f46e5);
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseCore 2s ease-in-out infinite alternate;
}

/* Logo Text Styles */
.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.logo-title span {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Keyframe Animations */
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseCore {
  0% { transform: scale(0.85); box-shadow: 0 0 5px #22c55e; }
  100% { transform: scale(1.15); box-shadow: 0 0 12px #a855f7; }
}

/* Toast Notification Popup */
.toast-message {
  position: fixed;
  top: 25px;
  right: 25px;
  padding: 12px 24px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container & Header */
.report-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.report-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.subtitle {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 4px;
}

.category-badge {
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c084fc;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 2x2 Grid Layout */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

/* Report Card Design */
.report-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-title {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.score-value {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.status-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.text-green {
  color: #22c55e;
}

.card-subtext {
  color: #6b7280;
  font-size: 0.85rem;
}

.report-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.desc-text {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.report-card h4 {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

/* Indicators Pills / Badges */
.indicator-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
}

/* Progress Bars */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
}

.green-fill {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.purple-fill {
  background: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* ================= Sample Buttons & Modal Styling ================= */
.sample-container {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-sample {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-sample:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.result-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
  width: 90%;
  max-width: 520px;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 0.3s ease-out;
}

.score-meter {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 15px 0 20px 0;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 0%;
  transition: width 1s ease-in-out;
  border-radius: 10px;
}
/* Light Mode Dynamic Text Colors */
body.theme-light-clean {
  background-color: #f4f5f9 !important;
  color: #1e293b !important;
}

/* Sidebar Menu Text in Light Mode */
body.theme-light-clean .sidebar a {
  color: #64748b !important;
}

body.theme-light-clean .sidebar a:hover,
body.theme-light-clean .sidebar a.active {
  color: #ffffff !important; /* Active link text */
  background: #7c3aed !important;
}

/* Main Titles and Descriptions */
body.theme-light-clean h1,
body.theme-light-clean h2,
body.theme-light-clean h3,
body.theme-light-clean h4 {
  color: #0f172a !important;
}

body.theme-light-clean p,
body.theme-light-clean label,
body.theme-light-clean .setting-desc {
  color: #475569 !important;
}

/* Glass Cards and Inputs in Light Mode */
body.theme-light-clean .glass-card,
body.theme-light-clean .setting-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light-clean input,
body.theme-light-clean textarea,
body.theme-light-clean select {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

body.theme-light-clean textarea::placeholder {
  color: #94a3b8 !important;
}
