/* ==================== GLASSMORPHISM BLACK SPLASH SCREEN ==================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.splash-content {
  text-align: center;
  animation: splashFadeIn 1.2s ease-out;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.splash-logo {
  margin-bottom: 25px;
}

.splash-logo i {
  font-size: 5rem;
  color: #00d4ff;
  animation: splashPulse 2s infinite ease-in-out;
  text-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

.splash-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 15px 0;
  letter-spacing: -1px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.splash-tagline {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.splash-loader {
  display: flex;
  justify-content: center;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #007bff;
  animation: splashBounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

.splash-footer {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  color: #adb5bd;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease-out 1.5s both;
}

/* Splash Animations */
@keyframes splashFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
    text-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.5));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
    filter: drop-shadow(0 0 25px rgba(0, 123, 255, 0.8));
  }
}

@keyframes splashBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Splash */
@media (max-width: 768px) {
  .splash-logo i {
    font-size: 4rem;
  }
  
  .splash-title {
    font-size: 2.5rem;
  }
  
  .splash-tagline {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .splash-footer {
    bottom: 20px;
  }
  
  .copyright {
    font-size: 0.8rem;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .splash-logo i {
    font-size: 3.5rem;
  }
  
  .splash-title {
    font-size: 2rem;
  }
  
  .splash-tagline {
    font-size: 0.9rem;
  }
}

/* ==================== END SPLASH SCREEN ==================== */

/* ==================== GLASSMORPHISM THEME ==================== */

/* Root Variables for Glassmorphism */
:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(0, 123, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --glass-text: #f1f1f1;
  --glass-text-light: #b0b0b0;
  --glass-accent: #00d4ff;
  --glass-accent-hover: #00b8e6;
  --glass-success: #00ff88;
  --glass-warning: #ffaa00;
  --glass-danger: #ff4757;
}

/* Body Background for Glassmorphism Effect */
body {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #1a1a1a 50%, #0d1421 75%, #000000 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f1f1f1;
  padding-top: 70px; /* Match navbar height exactly */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,123,255,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(0,123,255,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,123,255,0.05)"/><circle cx="10" cy="50" r="0.5" fill="rgba(0,123,255,0.05)"/><circle cx="90" cy="50" r="0.5" fill="rgba(0,123,255,0.05)"/><circle cx="50" cy="90" r="0.5" fill="rgba(0,123,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

/* Floating Animation Elements */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.10) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Glassmorphism Cards */
.card, .glassmorphism-card, .bg-glass {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow) !important;
  color: #f1f1f1 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Section Spacing & Transparent Cards */
.section-spacing {
  padding: 2rem 0 !important;
  margin: 1rem 0 !important;
}

.transparent-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 25px !important;
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  backdrop-filter: blur(25px) saturate(120%);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  padding: 1.75rem 2rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.transparent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 212, 255, 0.6), 
    rgba(0, 123, 255, 0.6), 
    transparent
  );
  pointer-events: none;
}

.transparent-card:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-8px);
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.section-card {
  margin-bottom: 2rem;
}

.section-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 2.2rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.feature-card h5 {
  color: #ffffff !important;
  font-weight: 700;
}

.feature-card .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* About Section Styling */
.about-desc {
  max-width: 800px;
  margin: auto;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.8;
  font-size: 1.2rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive Section Spacing */
@media (min-width: 1200px) {
  .section-spacing {
    padding: 2rem 0 !important;
    margin: 1rem auto !important;
  }
  
  .transparent-card {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 1.5rem 0 !important;
    margin: 0.75rem 0 !important;
  }
  
  .transparent-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 20px !important;
    max-width: 100%;
  }
  
  .section-title {
    font-size: 1.9rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .about-desc {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 576px) {
  .section-spacing {
    padding: 1.25rem 0 !important;
    margin: 0.5rem 0 !important;
  }
  
  .transparent-card {
    padding: 1.25rem 1rem !important;
    border-radius: 15px !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-title {
    font-size: 1.7rem !important;
    margin-bottom: 1rem !important;
  }
  
  .about-desc {
    font-size: 1rem !important;
  }
}

/* Language Select Dropdown Styling */
#analysis-lang-select,
#newsLanguageSelect {
  max-width: 120px !important;
}

/* Enhanced Form Controls */
.form-select-sm {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.form-select-sm:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00d4ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
  color: #ffffff;
}

.form-select-sm option {
  background: #2c3e50;
  color: #ffffff;
}

/* Mobile Placeholder Font Size Optimization */
@media (max-width: 768px) {
  .form-control::placeholder,
  .form-control-sm::placeholder {
    font-size: 0.8rem !important;
    opacity: 0.9;
  }
  
  /* Specific targeting for text areas and inputs */
  #text::placeholder {
    font-size: 0.75rem !important;
  }
  
  #comment::placeholder,
  #newsSearchInput::placeholder {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 576px) {
  .form-control::placeholder,
  .form-control-sm::placeholder {
    font-size: 0.75rem !important;
    opacity: 0.85;
  }
  
  #text::placeholder {
    font-size: 0.7rem !important;
  }
  
  #comment::placeholder,
  #newsSearchInput::placeholder {
    font-size: 0.75rem !important;
  }
}

/* Ensure all content is above background animations */
.container, .container-fluid, section, nav, footer {
  position: relative;
  z-index: 2;
}

.card::before, .glassmorphism-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.4), transparent);
  pointer-events: none;
}

.card:hover, .glassmorphism-card:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-5px);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.8) !important;
}

/* Glassmorphism Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-hover)) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 25px !important;
  color: white !important;
  font-weight: 600;
  padding: 12px 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--glass-accent-hover), var(--glass-accent)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  color: white !important;
}

.btn-outline-primary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid var(--glass-accent) !important;
  border-radius: 25px !important;
  color: var(--glass-accent) !important;
  font-weight: 600;
  padding: 12px 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--glass-accent) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Additional button styles */
.btn {
  border-radius: 15px !important;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline-info {
  background: rgba(23, 162, 184, 0.1) !important;
  border: 1px solid #17a2b8 !important;
  color: #17a2b8 !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline-info:hover {
  background: #17a2b8 !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-outline-success {
  background: rgba(40, 167, 69, 0.1) !important;
  border: 1px solid #28a745 !important;
  color: #28a745 !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline-success:hover {
  background: #28a745 !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-outline-danger {
  background: rgba(220, 53, 69, 0.1) !important;
  border: 1px solid #dc3545 !important;
  color: #dc3545 !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline-danger:hover {
  background: #dc3545 !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-outline-warning {
  background: rgba(255, 193, 7, 0.1) !important;
  border: 1px solid #ffc107 !important;
  color: #ffc107 !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline-warning:hover {
  background: #ffc107 !important;
  color: #212529 !important;
  transform: translateY(-2px);
}

/* Glassmorphism Form Controls */
.form-control, .form-select {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 15px !important;
  color: #f1f1f1 !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: var(--glass-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25) !important;
  color: #f1f1f1 !important;
}

.form-control::placeholder {
  color: rgba(241, 241, 241, 0.6) !important;
}

/* Glassmorphism Navigation */
.navbar {
  background: rgba(0, 0, 0, 0.4) !important;
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  height: 70px; /* Fixed navbar height */
  padding: 0.5rem 1rem;
  z-index: 1050; /* Ensure navbar stays on top */
  top: -3px; /* Move navbar up slightly on desktop too */
}

.navbar-brand {
  color: white !important;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 0 5px;
}

.nav-link:hover {
  color: var(--glass-accent) !important;
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

/* Glassmorphism Hero Section */
.hero-section {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  margin: 20px 0 30px 0; /* Add top margin for separation from navbar */
  position: relative;
  overflow: hidden;
  z-index: 2;
  padding: 60px 0; /* Add generous padding for content visibility */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glass-accent), var(--glass-success), var(--glass-accent));
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(-20px) scale(1); opacity: 0.3; }
  50% { transform: translateY(20px) scale(1.1); opacity: 0.6; }
}

/* Enhanced Hero Content */
.hero-title {
  background: linear-gradient(135deg, var(--glass-accent), #ffffff, var(--glass-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: none;
  animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-cta {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.hero-cta:hover::before {
  left: 100%;
}

/* Glassmorphism Typography */
h1, h2, h3, h4, h5, h6 {
  color: #f1f1f1 !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.text-primary {
  color: var(--glass-accent) !important;
}

.text-muted {
  color: rgba(241, 241, 241, 0.6) !important;
}

/* Glassmorphism Badges */
.badge {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-success {
  background: linear-gradient(135deg, var(--glass-success), #00cc70) !important;
  color: white;
}

.badge.bg-danger {
  background: linear-gradient(135deg, var(--glass-danger), #e73c7e) !important;
  color: white;
}

.badge.bg-warning {
  background: linear-gradient(135deg, var(--glass-warning), #ffa502) !important;
  color: white;
}

.badge.bg-info {
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-hover)) !important;
  color: white;
}

/* Glassmorphism Footer */
footer {
  background: rgba(0, 0, 0, 0.4) !important;
  border-top: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #f1f1f1 !important;
}

footer a {
  color: rgba(241, 241, 241, 0.6) !important;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--glass-accent) !important;
}

/* Dark mode text colors */
body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.text-dark {
  color: #ffffff !important;
}

.bg-light {
  background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Navbar enhancements */
.navbar .dropdown-toggle, .navbar .form-select, .navbar select {
  border: 2px solid #00bfff !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #f1f1f1 !important;
  box-shadow: 0 0 0 2px rgba(0,191,255,0.18);
  border-radius: 6px !important;
  transition: border 0.18s, box-shadow 0.18s;
}

#themeToggle {
  background: rgba(0, 0, 0, 0.6) !important;
  color: #00bfff !important;
  border: 2px solid #00bfff !important;
  box-shadow: 0 0 0 2px rgba(0,191,255,0.3) !important;
  font-weight: 600 !important;
}

#themeToggle:hover, #themeToggle:focus {
  background: #00bfff !important;
  color: #000000 !important;
  border: 2px solid #00bfff !important;
  box-shadow: 0 0 0 3px rgba(0,191,255,0.4) !important;
  transform: scale(1.05);
}

/* Mobile navbar toggler */
.navbar-toggler {
  border: 2px solid #00bfff !important;
  background: rgba(0, 0, 0, 0.6) !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 2px rgba(0,191,255,0.3) !important;
}

.navbar-toggler:focus, .navbar-toggler:hover {
  background: #00bfff !important;
  border: 2px solid #00bfff !important;
  box-shadow: 0 0 0 3px rgba(0,191,255,0.4) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300bfff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 20px !important;
  height: 20px !important;
}

/* Glassmorphism Responsive Design */
@media (max-width: 768px) {
  /* Account for mobile navbar height - move navbar up */
  body {
    padding-top: 60px; /* Reduced padding for mobile */
  }
  
  /* Move navbar up slightly on mobile */
  .navbar {
    padding: 0.25rem 1rem; /* Reduced padding to move navbar up */
    height: 60px; /* Slightly shorter on mobile */
    top: -10px; /* Move navbar up more by 10px */
  }
  
  /* Container spacing */
  .container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Cards mobile optimization */
  .card, .glassmorphism-card {
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 1rem;
  }
  
  .hero-section {
    border-radius: 20px;
    padding: 3rem 1.5rem; /* Increase padding to push subtitle down */
    margin: 30px 0 20px 0; /* More top margin to separate from navbar */
  }
  
  /* Push hero content down on tablet */
  .hero-section .hero-title {
    margin-top: 15px !important;
    margin-bottom: 12px !important;
  }
  
  .hero-section .hero-lead {
    margin-bottom: 20px !important;
  }
  
  /* Button mobile optimization */
  .btn-primary, .btn-outline-primary {
    border-radius: 20px;
    padding: 12px 25px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn {
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Form controls mobile */
  .form-control, .form-select {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
  }
  
  /* Mobile navbar functionality */
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    flex-direction: column;
    padding: 1rem;
  }
  
  .navbar-nav.show {
    display: flex;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link {
    width: 100%;
    text-align: center;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff !important;
    transform: translateY(-1px);
  }
  
  /* Typography mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  /* Table mobile scrolling */
  .table-responsive {
    border-radius: 12px;
    overflow-x: auto;
  }
  
  table {
    min-width: 600px;
  }
  
  th, td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Modal mobile */
  .modal-content {
    margin: 1rem;
    border-radius: 15px;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 1rem;
  }
  
  /* Badges mobile */
  .badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  /* Pagination mobile */
  .pagination {
    font-size: 0.9rem;
  }
  
  .page-link {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 576px) {
  /* Extra small devices */
  body {
    font-size: 0.9rem;
    padding-top: 55px; /* Even less padding for small screens */
  }
  
  /* Move navbar up more on extra small screens */
  .navbar {
    padding: 0.25rem 0.75rem;
    height: 55px; /* Even shorter for small screens */
    top: -12px; /* Move navbar up even more */
  }
  
  .container, .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Cards extra small */
  .card, .glassmorphism-card {
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 0.75rem;
  }
  
  .hero-section {
    border-radius: 15px;
    padding: 50px 1rem 40px 1rem; /* More top padding to push subtitle down */
    margin: 25px 0 15px 0; /* Better spacing from navbar */
  }
  
  /* Push hero title and subtitle down more on mobile */
  .hero-section .hero-title {
    margin-top: 20px !important;
    margin-bottom: 15px !important;
  }
  
  .hero-section .hero-lead {
    margin-bottom: 25px !important;
  }
  
  /* Buttons extra small */
  .btn-primary, .btn-outline-primary {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  /* Forms extra small */
  .form-control, .form-select {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  /* Navigation extra small */
  .navbar {
    padding: 0.4rem 0.8rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* Typography extra small */
  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  h4 {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  /* Table extra small */
  th, td {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  /* Modal extra small */
  .modal-content {
    margin: 0.5rem;
    border-radius: 12px;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 0.75rem;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
  
  /* Utility spacing adjustments */
  .mt-3 { margin-top: 0.75rem !important; }
  .mt-4 { margin-top: 1rem !important; }
  .mt-5 { margin-top: 1.5rem !important; }
  .mb-3 { margin-bottom: 0.75rem !important; }
  .mb-4 { margin-bottom: 1rem !important; }
  .mb-5 { margin-bottom: 1.5rem !important; }
  .p-3 { padding: 0.75rem !important; }
  .p-4 { padding: 1rem !important; }
  .py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

@media (max-width: 400px) {
  /* Very small devices */
  .container, .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .card, .glassmorphism-card {
    border-radius: 10px;
    padding: 0.5rem;
  }
  
  .hero-section {
    border-radius: 12px;
    padding: 1rem 0.75rem;
  }
  
  .btn-primary, .btn-outline-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .form-control, .form-select {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .navbar {
    padding: 0.3rem 0.6rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .form-control, .form-select {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .nav-link {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .page-link {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .dropdown-item {
    min-height: 44px;
    padding: 12px 16px;
  }
}

/* Mobile-specific glassmorphism adjustments */
@media (max-width: 768px) {
  /* Reduce blur for better performance on mobile */
  .card, .glassmorphism-card, .bg-glass {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }
  
  .navbar {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }
  
  .form-control, .form-select {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  
  /* Simplify animations for mobile performance */
  body::after {
    animation: float 30s ease-in-out infinite;
  }
  
  .hero-section::after {
    display: none; /* Hide decorative elements on mobile */
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 1.5rem 1rem;
  }
  
  .splash-screen {
    padding: 1rem;
  }
  
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ==================== END GLASSMORPHISM THEME ==================== */

/* Table styles */
table {
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid rgba(0, 123, 255, 0.2);
  padding: 0.75rem 1rem;
}

tr:hover {
  background: rgba(0, 212, 255, 0.1) !important;
}

th {
  background: rgba(0, 123, 255, 0.2) !important;
  color: #00bfff !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 255, 0.6);
  border-radius: 6px;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #00bfff;
}

/* Loading dots animation */
.loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glass-accent);
  animation: loadingBounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Utility classes */
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

/* Mobile utility classes */
@media (max-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  
  .text-md-center { text-align: center !important; }
  .text-md-start { text-align: left !important; }
  
  .w-md-100 { width: 100% !important; }
  .w-md-auto { width: auto !important; }
  
  .flex-md-column { flex-direction: column !important; }
  .flex-md-row { flex-direction: row !important; }
  
  .justify-content-md-center { justify-content: center !important; }
  .justify-content-md-start { justify-content: flex-start !important; }
  
  .align-items-md-center { align-items: center !important; }
  .align-items-md-start { align-items: flex-start !important; }
  
  .gap-md-2 { gap: 0.5rem !important; }
  .gap-md-3 { gap: 0.75rem !important; }
  
  .p-md-2 { padding: 0.5rem !important; }
  .p-md-3 { padding: 0.75rem !important; }
  .px-md-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .px-md-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .py-md-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
  .py-md-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  
  .m-md-2 { margin: 0.5rem !important; }
  .m-md-3 { margin: 0.75rem !important; }
  .mx-md-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
  .mx-md-3 { margin-left: 0.75rem !important; margin-right: 0.75rem !important; }
  .my-md-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
  .my-md-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
  /* Reduce complex animations */
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  
  /* Optimize transforms for mobile */
  .card:hover, .glassmorphism-card:hover {
    transform: translateY(-2px);
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
  
  /* Improve touch targets */
  .btn, .nav-link, .dropdown-item, .page-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Prevent zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Analysis result styling */
#result {
  color: #f8f9fa !important;
}

#result .card {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 1px solid rgba(0, 191, 255, 0.3) !important;
  color: #f8f9fa !important;
}

/* Mobile-specific result styling */
@media (max-width: 768px) {
  #result .card {
    margin: 1rem 0;
    padding: 1rem;
  }
  
  #result .card-body {
    padding: 0.75rem;
  }
  
  #result #score {
    font-size: 1.2rem;
  }
  
  #result #message {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

#result .card strong {
  color: #00bfff !important;
}

#result #score {
  color: #fff !important;
  font-weight: 600;
}

#result #message {
  color: #e9ecef !important;
}

#result #status {
  font-weight: 600;
}

/* Blog post cards */
.corrected-news-card {
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  color: #f8f9fa !important;
}

.corrected-news-card .card-title {
  color: #00bfff !important;
  font-weight: 600;
}

.corrected-news-card .card-text {
  color: #e9ecef !important;
  line-height: 1.5;
}

.corrected-news-card .text-muted {
  color: #adb5bd !important;
}

/* Mobile blog card optimization */
@media (max-width: 768px) {
  .corrected-news-card {
    margin-bottom: 1rem;
  }
  
  .corrected-news-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .corrected-news-card .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .corrected-news-card .text-muted {
    font-size: 0.8rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.corrected-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

/* Form enhancements */
.form-label {
  color: #f1f1f1 !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Dropdown menu styling */
.dropdown-menu {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 10px !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
  color: #f1f1f1 !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1) !important;
  color: var(--glass-accent) !important;
}

/* Alert styling */
.alert {
  border-radius: 15px !important;
  border: none !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #28a745 !important;
  border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
  border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1) !important;
  color: #ffc107 !important;
  border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

.alert-info {
  background: rgba(23, 162, 184, 0.1) !important;
  color: #17a2b8 !important;
  border: 1px solid rgba(23, 162, 184, 0.3) !important;
}

/* Modal styling */
.modal-content {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.modal-header {
  border-bottom: 1px solid var(--glass-border) !important;
}

.modal-footer {
  border-top: 1px solid var(--glass-border) !important;
}

.modal-title {
  color: #f1f1f1 !important;
}

/* Pagination styling */
.pagination .page-link {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--glass-border) !important;
  color: #f1f1f1 !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pagination .page-link:hover {
  background: var(--glass-accent) !important;
  color: white !important;
}

.pagination .page-item.active .page-link {
  background: var(--glass-accent) !important;
  border-color: var(--glass-accent) !important;
}
