/* Fauji Niveshak - Dark Futuristic Theme */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #111729;
  --bg-card: rgba(17, 23, 41, 0.7);
  --accent-primary: #00f0ff;
  --accent-secondary: #7000ff;
  --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --border-color: rgba(0, 240, 255, 0.2);
  --success: #00ff88;
  --danger: #ff0055;
  --warning: #ffaa00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at top, rgba(112, 0, 255, 0.15), transparent 50%), 
              radial-gradient(ellipse at bottom, rgba(0, 240, 255, 0.15), transparent 50%);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 48px rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
}

/* Buttons */
.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: var(--text-primary);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* Navigation */
.navbar {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  margin: 0 1rem;
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Course Cards */
.course-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.course-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 240, 255, 0.2);
}

.course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.course-card-body {
  padding: 1.5rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Leaderboard */
.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.leaderboard-table thead th {
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem;
  text-align: left;
}

.leaderboard-table tbody tr {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
}

.leaderboard-table tbody td {
  padding: 1rem;
  border: none;
}

.gain {
  color: var(--success);
  font-weight: 600;
}

.loss {
  color: var(--danger);
  font-weight: 600;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent-primary);
}

/* Forms */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
  outline: none;
}

.form-label {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Video Player */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.progress {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background: var(--accent-gradient);
  height: 100%;
  transition: width 0.3s ease;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: rgba(255, 0, 85, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: rgba(255, 170, 0, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

/* Tables */
.table {
  width: 100%;
  color: var(--text-primary);
}

.table thead th {
  border-bottom: 2px solid var(--border-color);
  padding: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.table tbody td {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.table tbody tr:hover {
  background: rgba(0, 240, 255, 0.05);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(0, 255, 136, 0.2);
  color: var(--success);
}

.badge-danger {
  background: rgba(255, 0, 85, 0.2);
  color: var(--danger);
}

.badge-warning {
  background: rgba(255, 170, 0, 0.2);
  color: var(--warning);
}

.badge-info {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-primary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(0, 240, 255, 0.1);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Neon Glow Effect */
.neon-text {
  text-shadow: 0 0 10px var(--accent-primary), 
               0 0 20px var(--accent-primary), 
               0 0 30px var(--accent-primary);
}

/* Sidebar */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
  padding: 2rem 0;
}

.sidebar-link {
  display: block;
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.05);
  border-left-color: var(--accent-primary);
}

/* Dashboard Stats */
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Fix input text visibility */
.form-control,
.form-control:focus,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
textarea,
select {
    color: #F1F5F9 !important;  /* Light text color */
    background-color: #1E293B !important;  /* Dark input background */
    border-color: #334155 !important;
}

/* Input placeholder color */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #64748B !important;  /* Gray placeholder */
    opacity: 1;
}
