
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 25px;
  align-items: center;
  position: relative;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: #2563eb;
  background-color: #f1f5f9;
}

/* LOGIN SECTION */
.login-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.login-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.register-btn {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
  padding: 6px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background: #2563eb;
  color: white;
}

.logout-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

/* SEARCH AND FILTER SECTION */
.search-filter-section {
  background: white;
  padding: 30px 0;
  border-bottom: 1px solid #e2e8f0;
}

.search-box {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 300px;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.filter-tag.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* DROPDOWN STYLES */
/* DROPDOWN FIXES */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 800px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  gap: 30px;
  border: 1px solid #e2e8f0;
  pointer-events: auto;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
  pointer-events: auto;
}

.dropdown-section {
  min-width: 200px;
}

.dropdown-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 2px solid #2563eb;
}

.dropdown-section a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-section a:hover {
  color: #2563eb;
  padding-left: 10px;
}

/* Employer Dropdown */
.employer-dropdown .dropdown-menu {
  min-width: 250px;
  display: block;
  padding: 0;
}

.employer-dropdown .dropdown-section h4 {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  margin: 0;
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 15px;
}

.employer-dropdown .dropdown-section a {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f5f9;
}

.employer-dropdown .dropdown-section a:hover {
  background-color: #f8fafc;
  padding-left: 20px;
}

.employer-dropdown .dropdown-section a:last-child {
  border-bottom: none;
}

/* Ensure dropdown stays above other content */
.nav {
  position: relative;
  z-index: 1001;
}

.dropdown {
  z-index: 1002;
}
/* Employer Dropdown Specific Styles */
.employer-dropdown .dropdown-menu {
  min-width: 250px;
  max-width: 300px;
  display: block;
  overflow: visible;
  padding: 0;
}

.employer-dropdown .dropdown-section {
  min-width: auto;
}

.employer-dropdown .dropdown-section h4 {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  margin: 0;
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 15px;
  font-size: 15px;
}

.employer-dropdown .dropdown-section a {
  padding: 12px 15px;
  border-left: none;
  border-bottom: 1px solid #f1f5f9;
}

.employer-dropdown .dropdown-section a:hover {
  background-color: #f8fafc;
  padding-left: 20px;
  border-left: none;
}

.employer-dropdown .dropdown-section a:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

/* NAV STYLES */
.nav {
  display: flex;
  gap: 25px;
  align-items: center;
  position: relative;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: #2563eb;
  background-color: #f1f5f9;
}

/* HEADER STYLES */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGIN SECTION STYLES */
.login-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.login-btn, .register-btn, .logout-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

.login-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.register-btn {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.register-btn:hover {
  background: #2563eb;
  color: white;
}

.logout-btn {
  background: #dc2626;
  color: white;
}

.logout-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 95vw;
    max-width: 95vw;
  }

  .dropdown.active .dropdown-menu {
    transform: translateX(-50%) translateY(5px);
  }

  .dropdown-section {
    min-width: 180px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .login-section {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* Employer Dropdown Specific Styles */
.employer-dropdown .dropdown-menu {
  min-width: 250px;
  max-width: 300px;
  display: block;
  overflow: visible;
  padding: 0;
}

.employer-dropdown .dropdown-section {
  min-width: auto;
}

.employer-dropdown .dropdown-section h4 {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  margin: 0;
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 15px;
  font-size: 15px;
}

.employer-dropdown .dropdown-section a {
  padding: 12px 15px;
  border-left: none;
  border-bottom: 1px solid #f1f5f9;
}

.employer-dropdown .dropdown-section a:hover {
  background-color: #f8fafc;
  padding-left: 20px;
  border-left: none;
}

.employer-dropdown .dropdown-section a:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

/* MAIN LAYOUT */
.main-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 30px 0;
}

/* SIDEBAR */
.sidebar {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 35px;
}

.sidebar-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  margin-bottom: 12px;
}

.sidebar-section a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.sidebar-section a:hover {
  color: #2563eb;
  background-color: #f8fafc;
  padding-left: 10px;
}

.vip-badge {
  color: #dc2626;
  font-weight: 700;
  margin-left: 5px;
}

/* JOB LISTINGS */
.job-listings {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.view-all {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.view-all:hover {
  text-decoration: underline;
}

/* JOB CARDS */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.job-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: #2563eb;
}

.job-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.job-card .company {
  color: #475569;
  font-weight: 600;
  margin-bottom: 5px;
}

.job-card .location {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 5px;
}

.job-card .type {
  color: #059669;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.job-card .salary {
  color: #dc2626;
  font-weight: 700;
  font-size: 16px;
}

/* FEATURED SECTIONS */
.featured-section {
  margin-top: 40px;
}

.featured-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.category-card {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

.category-card h4 {
  font-size: 16px;
  font-weight: 600;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90vw;
}

.modal-content h3 {
  margin-bottom: 20px;
  text-align: center;
  color: #1e293b;
}

.modal-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.modal-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-btn.primary {
  background: #2563eb;
  color: white;
}

.modal-btn.primary:hover {
  background: #1d4ed8;
}

.modal-btn.secondary {
  background: #6b7280;
  color: white;
  margin-top: 10px;
}

.modal-btn.secondary:hover {
  background: #4b5563;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 95vw;
    max-width: 95vw;
  }

  .dropdown.active .dropdown-menu {
    transform: translateX(-50%) translateY(5px);
  }

  .dropdown-section {
    min-width: 180px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-input {
    min-width: auto;
  }

  .login-section {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .login-section {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .filter-tags {
    justify-content: center;
  }
}
/* Job Details Modal Styles */
.job-details-modal {
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #dc2626;
}

.job-details-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.job-details-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.job-details-header .company {
  font-size: 16px;
  color: #475569;
  font-weight: 600;
}

.job-details-content {
  margin-bottom: 25px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.detail-label {
  font-weight: 600;
  color: #374151;
  min-width: 120px;
  margin-right: 15px;
}

.detail-value {
  flex: 1;
  color: #475569;
}

.detail-value.salary {
  color: #dc2626;
  font-weight: 700;
  font-size: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #2563eb;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.no-tags {
  color: #94a3b8;
  font-style: italic;
}

.job-details-actions {
  display: flex;
  gap: 15px;
}

.apply-btn, .save-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.save-btn {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.save-btn:hover {
  background: #2563eb;
  color: white;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #2563eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3000;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-left-color: #059669;
}

.notification.error {
  border-left-color: #dc2626;
}

.notification-message {
  flex: 1;
  color: #1e293b;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.notification-close:hover {
  color: #dc2626;
}

/* Responsive for modals */
@media (max-width: 768px) {
  .job-details-modal {
    width: 95%;
    margin: 20px;
  }
  
  .job-details-actions {
    flex-direction: column;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .detail-label {
    min-width: auto;
    margin-right: 0;
  }
  
  .notification {
    left: 20px;
    right: 20px;
    max-width: none;
    min-width: auto;
  }
}

/* Animation for modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  animation: modalFadeIn 0.3s ease;
}

/* Thêm các style mới */

/* No jobs found */
.no-jobs-found {
    text-align: center;
    color: #666;
    grid-column: 1/-1;
    padding: 60px 20px;
}

.no-jobs-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-jobs-found h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-jobs-found p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Badges */
.urgent-badge {
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    background: linear-gradient(135deg, var(--warning-color), #b45309);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge {
    background: linear-gradient(135deg, var(--success-color), #047857);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-badges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Job card header */
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.job-card-header h4 {
    flex: 1;
    margin: 0;
}

/* Modal improvements */
.job-details-modal {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

.job-details-header {
    position: relative;
}

.job-details-content ul {
    list-style: none;
    padding-left: 0;
}

.job-details-content li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.job-details-content li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Login section styles */
.login-btn, .register-btn, .logout-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.register-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.register-btn:hover {
    background: var(--primary-color);
    color: white;
}

.logout-btn {
    background: var(--danger-color);
    color: white;
}

.logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-details-actions {
        flex-direction: column;
    }
    
    .job-badges {
        justify-content: flex-start;
    }
}

/* Animation for new jobs */
@keyframes highlightNew {
    0% { background-color: rgba(34, 197, 94, 0.1); }
    100% { background-color: transparent; }
}

.job-card.new {
    animation: highlightNew 2s ease;
}

/* Icon styles */
.icon {
    font-size: 14px;
}

.job-action-btn .icon {
    font-size: 16px;
}

/* Company logo */
.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}