/* main style file bhaiyas ke liye */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* naye fonts aur colors idhar hain */
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #ec4899;
  
  /* background ke gradients wagera */
  --bg-color: #f8fafc;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --footer-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  
  /* shadow effects ekdum mast wale */
  --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  --transition-speed: 0.3s;
}

/* body ka background aur text color set kar rahe */
body {
  font-family: var(--bs-body-font-family);
  background: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* background pattern ke liye mast effect */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

main {
  flex: 1;
}

/* saare headers bold aur thode dark */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
}

/* text me gradient dalne ka class */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* navbar jiska design transparent jaisa hai */
#mainNav {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all var(--transition-speed);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* logo ya text brand ka */
#mainNav .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
}

#mainNav .navbar-brand i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* navbar k links */
#mainNav .nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  transition: all var(--transition-speed);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

/* link hover karega to color change hoga */
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-1px);
}

/* glassmorphism wale cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* card pe hover effect */
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(255,255,255,0.9);
}

.card-header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.75rem;
}

/* primary button ka styling */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: all var(--transition-speed);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  color: white;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.35);
  color: white;
}

/* form fields ka design */
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0.8rem 1.2rem;
  background: #ffffff;
  color: #0f172a;
  transition: all var(--transition-speed);
  font-weight: 500;
}

/* focus pe outline color */
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  background: #ffffff;
}

/* home page ka hero area */
.hero-section {
  position: relative;
  overflow: visible;
  padding: 6rem 0;
  border-bottom: none;
  text-align: center;
}

.hero-bg-shape {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, rgba(255,255,255,0) 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* dashboard pe jo gol gol icons hai */
.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
  color: var(--primary-color);
  font-size: 1.6rem;
  transition: all var(--transition-speed);
}
.card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-color);
  color: white;
  box-shadow: var(--glow-shadow);
}

/* badi feature wala icon */
.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: #ffffff;
  color: var(--primary-color);
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--soft-shadow);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.02);
}
.card:hover .feature-icon {
  transform: translateY(-8px);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: var(--hover-shadow);
}

/* flash error messages dikhane k liye toast/alerts */
.alert {
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-weight: 500;
  padding: 1rem 1.25rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* sabse naku me footer */
.footer {
  background-color: var(--footer-bg);
  border-top: 1px solid rgba(0,0,0,0.05);
  color: #64748b;
  font-size: 0.9rem;
  padding: 3rem 0;
  margin-top: auto; /* taaki footer bottom me rahe hamesha */
  position: relative;
  z-index: 10;
}

.footer .fw-semibold {
  color: #0f172a;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

/* lists tables ka naya look */
.table {
  color: #334155;
}
.table-hover tbody tr {
  transition: all var(--transition-speed);
}
.table-hover tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.03);
  transform: scale(1.002);
}
.table th {
  font-weight: 600;
  color: #475569;
  border-bottom-width: 2px;
  border-bottom-color: #e2e8f0;
}
.table td {
  vertical-align: middle;
  border-color: #f1f5f9;
}

/* score bar jo percentage dikhata hai */
.progress {
  border-radius: 99px;
  background-color: #f1f5f9;
  height: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
}
.progress-bar {
  border-radius: 99px;
  transition: width 1s ease-in-out;
}
.progress-bar.bg-success { background: linear-gradient(90deg, #22c55e, #16a34a); }
.progress-bar.bg-warning { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-bar.bg-danger { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* login wagera ka centered box */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

/* baaki helpers bhai */
.hover-lift {
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
}

.badge {
  font-weight: 600;
  padding: 0.5em 0.8em;
  border-radius: 8px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

