/* ==== MAIN.CSS ==== */
/* Dùng chung cho toàn bộ website */

/* Reset cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Toàn trang */
body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Header & Navbar */
header {
  background: #007bff;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: 0.2s;
}

nav a:hover {
  text-decoration: underline;
  color: #ffea00;
}

/* Dropdown Menu (phần Nhà tuyển dụng) */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: white;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 12px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  top: 100%;
  left: 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-section {
  padding: 10px;
}

.dropdown-section h4 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.dropdown-section a {
  display: block;
  padding: 6px 10px;
  color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.2s;
}

.dropdown-section a:hover {
  background-color: #f1f3f5;
}

/* Footer */
footer {
  background: #20232a;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
  font-size: 0.9rem;
}

/* Nút chung */
button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

button:hover {
  background-color: #0056b3;
}
/* common.css - Common styles for all pages */

/* Loading animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Badges */
.urgent-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Job cards enhancements */
.job-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.job-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-expired {
    background: #fecaca;
    color: #dc2626;
}

.status-archived {
    background: #e5e7eb;
    color: #374151;
}

/* Global notification */
#global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: none;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Responsive helpers */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .job-card {
        margin-bottom: 1rem;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }