/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Sora:wght@100..800&display=swap');

/* CSS Variables for Premium Theme */
:root {
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Sora', sans-serif;
  
  /* Modern HSL Color Palette */
  --bg-primary: #0b0f19;       /* Ultra dark navy */
  --bg-secondary: #131b2e;     /* Medium dark navy for cards */
  --bg-tertiary: #1e293b;      /* Light navy for borders/hovers */
  
  --text-main: #f8fafc;        /* High contrast white-gray */
  --text-muted: #94a3b8;       /* Slate gray */
  --text-dark: #0f172a;        /* Navy for rare light sections */
  
  --accent-blue: #3b82f6;      /* Electric blue */
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-hover: #2563eb;     /* Deeper electric blue */
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Status Colors */
  --status-applied-bg: rgba(59, 130, 246, 0.15);
  --status-applied-text: #60a5fa;
  --status-shortlisted-bg: rgba(16, 185, 129, 0.15);
  --status-shortlisted-text: #34d399;
  --status-rejected-bg: rgba(239, 68, 68, 0.15);
  --status-rejected-text: #f87171;

  --border-radius: 12px;
  --transition-speed: 0.3s;
  --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-effect: backdrop-filter: blur(12px);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Sticky Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(19, 27, 46, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.logo-text {
  font-size: 1.5rem;
  color: var(--text-main);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Card Styling base */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Status Badges */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-applied {
  background-color: var(--status-applied-bg);
  color: var(--status-applied-text);
}

.badge-shortlisted {
  background-color: var(--status-shortlisted-bg);
  color: var(--status-shortlisted-text);
}

.badge-rejected {
  background-color: var(--status-rejected-bg);
  color: var(--status-rejected-text);
}

/* Main Container Layout */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
}

/* Spinner / Loader */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notification System */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-weight: 500;
  min-width: 280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease-out forwards;
}

.toast.success {
  border-left: 4px solid var(--status-shortlisted-text);
}

.toast.error {
  border-left: 4px solid var(--status-rejected-text);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  .container {
    padding: 1rem;
  }
}

/* Global Utility Classes */
.hidden {
  display: none !important;
}

