body {
  box-sizing: border-box;
}

* {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.gradient-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 50%, #1a365d 100%);
}

.gradient-saffron {
  background: linear-gradient(135deg, #ff9933 0%, #ff7b00 100%);
}

.new-badge-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e; }
  to { box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes loadingDots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}

.loading-dots::after {
  animation: loadingDots 1.4s infinite;
}

@keyframes newsRotate {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slideIn {
  animation: slideIn 0.3s ease-out forwards;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.category-card {
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: scale(1.02);
}

.mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.hidden {
  transform: translateX(-100%);
  opacity: 0;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tricolor-border {
  border-top: 3px solid #ff9933;
  border-bottom: 3px solid #138808;
}

.ashoka-wheel {
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dark Mode Styles */
.dark {
  color-scheme: dark;
}

.dark body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.dark .text-slate-800 {
  color: #e2e8f0 !important;
}

.dark .text-slate-600 {
  color: #94a3b8 !important;
}

.dark .text-slate-500 {
  color: #64748b !important;
}

.dark .text-slate-400 {
  color: #475569 !important;
}

.dark .bg-white {
  background-color: #1e293b !important;
}

.dark .bg-slate-50 {
  background-color: #0f172a !important;
}

.dark .bg-slate-100 {
  background-color: #1e293b !important;
}

.dark .border-slate-200 {
  border-color: #334155 !important;
}

.dark .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

.details-page {
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38%),
              radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 42%),
              linear-gradient(180deg, #f8fbff 0%, #f1f5f9 60%, #e2e8f0 100%);
}

.details-section-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.details-section-card:hover {
  box-shadow: 0 14px 40px rgba(30, 64, 175, 0.14);
  transform: translateY(-2px);
  transition: all 0.25s ease;
}

.details-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  position: relative;
  padding-bottom: 10px;
}

.details-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.details-nav-link {
  border: 1px solid transparent;
}

.details-nav-link:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.14);
}

.quick-status-row {
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dark .details-page {
  background: linear-gradient(180deg, #020617 0%, #0f172a 60%, #111827 100%);
}

.dark .details-section-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(71, 85, 105, 0.5);
}

.dark .details-section-title {
  color: #e2e8f0;
}

.dark .quick-status-row {
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-color: rgba(71, 85, 105, 0.45);
}

.details-hero-glow {
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.details-action-btn {
  transition: all 0.22s ease;
}

.details-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.28);
}

.details-fade-item {
  animation: fadeInUp 0.45s ease both;
}

@media (max-width: 768px) {
  .details-section-title {
    font-size: 1rem;
  }

  .details-section-card {
    border-radius: 14px;
  }
}
/* ===== UNIQUE DESIGN ENHANCEMENTS ===== */

/* Form Styling - Modern Glassmorphism */
fieldset {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.98) 100%) !important;
  border: 1px solid rgba(203, 213, 225, 0.6) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

fieldset:hover {
  border-color: rgba(149, 165, 210, 0.4) !important;
  box-shadow: 0 8px 24px rgba(88, 127, 255, 0.08) !important;
}

fieldset legend {
  padding: 0 12px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #1e293b !important;
}

/* Input & Textarea Enhancements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="number"],
textarea,
select {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #3b82f6 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.5) !important;
  outline: none !important;
}

textarea {
  font-family: 'Monaco', 'Courier New', monospace;
  resize: vertical;
}

/* Button Styling - Professional & Modern */
button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

button:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover:before {
  width: 300px;
  height: 300px;
}

button:active {
  transform: scale(0.98);
}

/* Template Preset Buttons */
.template-preset-btn {
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.template-preset-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.template-preset-btn:active {
  transform: translateY(-1px);
}

/* Admin Control Panel Styling */
#admin-controls {
  animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#admin-controls button {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

#admin-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* JSON Suggestion Buttons */
.json-suggest-btn {
  font-weight: 600;
  transition: all 0.25s ease;
  border-radius: 5px;
}

.json-suggest-btn:hover {
  background-color: #cbd5e1 !important;
  transform: translateX(2px);
}

/* Job Card Styling (Main listing page improvements) */
.job-card {
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  position: relative;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-card:hover::before {
  opacity: 1;
}

.job-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.job-card h3,
.job-card h4 {
  color: #1e293b;
  font-weight: 700;
}

.job-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Variant-specific card styles */
.job-card.variant-gradient {
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(139,92,246,0.05) 100%);
  border-left: 4px solid #3b82f6;
}

.job-card.variant-featured {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(245,158,11,0.2);
}

.job-card.variant-outline {
  background: transparent;
  border: 2px solid #64748b;
}

.job-card.variant-minimal {
  background: #f8f9fa;
  border: none;
  border-bottom: 2px solid #3b82f6;
}

/* Action Button Styling */
.action-btn {
  font-weight: 600;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  border: none;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.action-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.action-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

/* Section Card Improvements (Details Page) */
.details-section-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.details-section-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.details-section-title {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Badge Styling */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  transition: all 0.25s ease;
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}

/* Smooth Transition for All Interactive Elements */
* {
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  fieldset {
    border-radius: 10px !important;
    padding: 12px !important;
  }

  fieldset legend {
    font-size: 0.9rem !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="date"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 10px !important;
  }

  button {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .job-card {
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .details-section-card {
    border-radius: 12px;
    padding: 16px;
  }

  .template-preset-btn {
    font-size: 0.75rem;
    padding: 0.6rem !important;
  }
}

/* Accessibility Improvements */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  fieldset {
    background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.95) 100%) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="date"],
  input[type="number"],
  textarea,
  select {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155 !important;
    color: #e2e8f0;
  }

  .job-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(71, 85, 105, 0.5);
  }

  .job-card h3,
  .job-card h4 {
    color: #f1f5f9;
  }

  .job-card p {
    color: #cbd5e1;
  }
}