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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-bottom: 40px;
}

header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background: #131627;
  color: white;
}

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

h1 {
  color: white;
  text-align: center;
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.search-input {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  width: 400px;
  max-width: 90%;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-btn {
  padding: 12px 30px;
  background: #FF6B6B;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
  background: #ee5a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Filter Section */
.filter-section {
  margin-bottom: 40px;
  text-align: center;
}

.filter-toggle {
  padding: 12px 30px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-toggle:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.filter-panel {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-form {
  max-width: 900px;
  margin: 0 auto;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.filter-item {
  text-align: left;
}

.filter-item label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.filter-item input,
.filter-item select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-item input:focus,
.filter-item select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Bulletin Board Styling */
.bulletin-board {
  background: 
    linear-gradient(90deg, rgba(139, 69, 19, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(139, 69, 19, 0.03) 1px, transparent 1px),
    #C19A6B;
  background-size: 20px 20px;
  border: 15px solid #8B4513;
  border-radius: 8px;
  padding: 60px 40px;
  box-shadow: 
    0 0 0 2px #654321,
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 0 100px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  position: relative;
}

/* Cork texture overlay */
.bulletin-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(160, 120, 80, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(140, 100, 60, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(180, 140, 100, 0.1) 1px, transparent 1px);
  background-size: 30px 30px, 40px 40px, 50px 50px;
  pointer-events: none;
}

/* Job Card Styling */
.job-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 4px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 320px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.job-card:hover {
  transform: rotate(0deg) !important;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Pushpin */
.pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #FF6B6B, #CC5555);
  border-radius: 50%;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.pin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.pin::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: linear-gradient(to bottom, #CC5555, #AA4444);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.job-card h2 {
  font-size: 1.5em;
  color: #333;
  margin: 15px 0 10px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

.description {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
  margin: 15px 0;
  min-height: 60px;
}

.job-card p {
  margin: 8px 0;
  color: #444;
  font-size: 0.9em;
}

.job-card p strong {
  color: #333;
}

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

.tag {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}

.view-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tilt-left { transform: rotate(-2deg); }
.tilt-center { transform: rotate(0deg); }
.tilt-right { transform: rotate(2deg); }

.job-card .save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.job-card-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.job-card-actions .view-btn,
.job-card-actions .btn-primary {
  flex: 1;
  text-align: center;
  padding: 10px;
}

/* Save Job Button */
.save-btn {
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  padding: 8px 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.save-btn:hover {
  transform: scale(1.2);
}

.save-btn.saved {
  filter: none;
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Employer Action Buttons */
.employer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.action-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-btn {
  background: #667eea;
  color: white;
}

.edit-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.submissions-btn {
  background: #17a2b8;
  color: white;
}

.submissions-btn:hover {
  background: #138496;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.archive-btn {
  background: #ffc107;
  color: #333;
}

.archive-btn:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.delete-btn {
  background: #dc3545;
  color: white;
}

.delete-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }
  
  .action-btn {
    flex: 0 1 calc(50% - 5px);
    min-width: auto;
  }
  
  .search-form input {
    width: 250px;
  }
  
  .bulletin-board {
    padding: 40px 20px;
    gap: 30px;
  }
  
  .job-card {
    width: 100%;
    max-width: 350px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .search-form {
    flex-direction: column;
    align-items: center;
  }
  
  .search-form input,
  .search-form button {
    width: 100%;
    max-width: 300px;
  }
}

/* Authentication Pages Styling */
.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 100%;
  max-width: 800px;
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.auth-card:hover {
  transform: rotate(0deg);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.2);
}

.auth-card h1 {
  color: #333;
  text-align: center;
  font-size: 2em;
  margin: 15px 0 10px;
  text-shadow: none;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  font-size: 1em;
  margin-bottom: 30px;
}

.auth-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-group select option {
  padding: 10px;
}

/* Multiselect Styling */
.form-group select[multiple] {
  appearance: auto;
  background-image: none;
  padding-right: 15px;
  height: auto;
  min-height: 120px;
}

.form-group select[multiple] option {
  padding: 8px 10px;
  border-radius: 4px;
  margin: 2px 0;
}

.form-group select[multiple] option:checked {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 0.9em;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #555;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.forgot-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #5568d3;
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
  margin-top: 10px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

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

.auth-footer {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.auth-footer p {
  color: #666;
  font-size: 0.95em;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #5568d3;
  text-decoration: underline;
}

/* Responsive Auth Forms */
@media (max-width: 768px) {
  .auth-card {
    padding: 30px 25px;
    transform: rotate(0deg);
  }
  
  .auth-card h1 {
    font-size: 1.75em;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 20px 15px;
  }
  
  .auth-card {
    padding: 25px 20px;
  }
  
  .auth-card h1 {
    font-size: 1.5em;
  }
}

/* Form Sections and Advanced Styling */
.form-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px dashed #ddd;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
}

.section-title {
  color: #667eea;
  font-size: 1.3em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: "📋";
  margin-right: 10px;
  font-size: 1.2em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.required {
  color: #FF6B6B;
  font-weight: bold;
}

.field-hint {
  display: block;
  color: #888;
  font-size: 0.85em;
  margin-top: 5px;
  font-style: italic;
}

textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  min-height: 100px;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Application Page (direct apply) */
.application-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.application-page .apply-container {
  max-width: 800px;
  margin: 0 auto;
}

.application-page .apply-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.application-page .apply-header {
  margin-bottom: 30px;
  position: relative;
}

.application-page .apply-header .pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #667eea;
  border-radius: 50%;
  top: -6px;
  left: 30px;
  display: block;
}

.application-page .apply-header h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.application-page .apply-header p {
  color: #667eea;
  font-size: 16px;
  margin-bottom: 20px;
}

.application-page .job-summary {
  background: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #667eea;
  margin-bottom: 30px;
  border-radius: 4px;
}

.application-page .job-summary strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.application-page .job-summary div {
  color: #667eea;
  font-weight: 600;
}

.application-page .form-section {
  margin-bottom: 25px;
  padding-bottom: 0;
  border-bottom: none;
}

.application-page .form-section h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.application-page .form-group {
  margin-bottom: 18px;
}

.application-page .form-group label {
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.application-page .form-group textarea {
  min-height: 120px;
}

.application-page .form-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.application-page .field-hint {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  font-style: normal;
}

.application-page .form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.application-page .btn-submit {
  flex: 1;
  background: #667eea;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.application-page .btn-submit:hover {
  background: #5568d3;
}

.application-page .btn-cancel {
  flex: 1;
  background: #e9ecef;
  color: #333;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.application-page .btn-cancel:hover {
  background: #dee2e6;
}

.application-page .back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.application-page .back-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .application-page .apply-card {
    padding: 25px;
  }

  .application-page .form-row {
    grid-template-columns: 1fr;
  }

  .application-page .form-actions {
    flex-direction: column;
  }
}

/* My Applications (VA) */
.my-applications-page .submissions-stats {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.my-applications-page .applications-list {
  max-width: 1000px;
  margin: 0 auto;
}

.my-applications-page .application-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 2px solid #f0f0f0;
}

.my-applications-page .application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  gap: 10px;
}

.my-applications-page .application-title {
  margin: 0 0 10px 0;
}

.my-applications-page .application-link {
  color: #667eea;
  text-decoration: none;
}

.my-applications-page .application-link:hover {
  text-decoration: underline;
}

.my-applications-page .application-company {
  margin: 0;
}

.my-applications-page .application-details {
  margin: 20px 0;
}

.my-applications-page .detail-row {
  display: flex;
  gap: 30px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.my-applications-page .detail-item {
  color: #555;
  font-size: 0.95em;
}

.my-applications-page .cover-letter-preview {
  margin: 15px 0;
}

.my-applications-page .cover-letter-snippet {
  margin-top: 8px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.my-applications-page .application-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.my-applications-page .status-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  position: relative;
}

.my-applications-page .status-timeline::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.my-applications-page .timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.my-applications-page .timeline-dot {
  width: 16px;
  height: 16px;
  background: #e0e0e0;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.my-applications-page .timeline-step.completed .timeline-dot {
  background: #4CAF50;
}

.my-applications-page .timeline-step.rejected .timeline-dot {
  background: #FF6B6B;
}

.my-applications-page .timeline-label {
  font-size: 0.85em;
  color: #666;
  font-weight: 500;
}

.my-applications-page .timeline-step.completed .timeline-label {
  color: #4CAF50;
  font-weight: 600;
}

.my-applications-page .timeline-step.rejected .timeline-label {
  color: #FF6B6B;
  font-weight: 600;
}

.my-applications-page .status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}

.my-applications-page .status-pending { background: #FFF3CD; color: #856404; }
.my-applications-page .status-reviewed { background: #D1ECF1; color: #0C5460; }
.my-applications-page .status-interviewed { background: #D4EDDA; color: #155724; }
.my-applications-page .status-accepted { background: #D4EDDA; color: #155724; }
.my-applications-page .status-rejected { background: #F8D7DA; color: #721C24; }
.my-applications-page .status-withdrawn { background: #E2E3E5; color: #383D41; }

.my-applications-page .empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.my-applications-page .empty-helper {
  margin-top: 10px;
  color: #666;
}

.my-applications-page .empty-state .btn-primary {
  margin-top: 20px;
  display: inline-block;
}

@media (max-width: 768px) {
  .my-applications-page .application-header {
    flex-direction: column;
    gap: 15px;
  }

  .my-applications-page .detail-row {
    flex-direction: column;
    gap: 10px;
  }

  .my-applications-page .status-timeline {
    overflow-x: auto;
  }

  .my-applications-page .timeline-label {
    font-size: 0.75em;
  }
}

/* Confirm Reactivate */
.reactivate-page {
  background: #f7f8fc;
}

.reactivate-page .auth-container {
  padding: 60px 20px;
}

.reactivate-page .auth-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 35px;
  background: #ffffff;
  border: 1px solid #e6e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
  transform: none;
}

.reactivate-page .auth-card:hover {
  transform: none;
  box-shadow: 0 12px 38px rgba(0,0,0,0.14);
}

.reactivate-page .auth-card h1 {
  margin-bottom: 10px;
}

.reactivate-page .reactivate-info {
  background: #eef2ff;
  border: 1px solid #cdd7ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 15px 0;
  color: #1f2a56;
}

.reactivate-page .reactivate-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 15px 0;
  color: #8c2d04;
}

.reactivate-page .reactivate-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #713f12;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.reactivate-page .button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.reactivate-page .button-group .auth-btn,
.reactivate-page .button-group .btn-cancel {
  min-width: 160px;
  text-align: center;
}

@media (max-width: 640px) {
  .reactivate-page .auth-card {
    padding: 28px 22px;
  }

  .reactivate-page .button-group {
    flex-direction: column;
  }

  .reactivate-page .button-group .auth-btn,
  .reactivate-page .button-group .btn-cancel {
    width: 100%;
  }
}

/* Application Detail Page */
.application-detail-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
}

.application-detail-page header {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.application-detail-page header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.application-detail-page header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.application-detail-page header nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.application-detail-page header nav a:hover {
  color: #667eea;
}

.application-detail-page .container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.application-detail-page .back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.application-detail-page .back-link:hover {
  text-decoration: underline;
}

.application-detail-page .application-header {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.application-detail-page .application-header h1 {
  color: #333;
  margin-bottom: 10px;
}

.application-detail-page .job-info {
  color: #667eea;
  font-size: 18px;
  margin-bottom: 15px;
}

.application-detail-page .status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.application-detail-page .status-pending { background: #fff3cd; color: #856404; }
.application-detail-page .status-reviewing { background: #d1ecf1; color: #0c5460; }
.application-detail-page .status-interview-scheduled { background: #cce5ff; color: #004085; }
.application-detail-page .status-interviewed { background: #d4edda; color: #155724; }
.application-detail-page .status-accepted { background: #d4edda; color: #155724; }
.application-detail-page .status-rejected { background: #f8d7da; color: #721c24; }

.application-detail-page .content-section {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.application-detail-page .content-section h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.application-detail-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.application-detail-page .info-item {
  padding: 10px 0;
}

.application-detail-page .info-label {
  font-weight: 600;
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.application-detail-page .info-value {
  color: #333;
  font-size: 16px;
}

.application-detail-page .work-history-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 15px;
}

.application-detail-page .work-history-item h4 {
  color: #333;
  margin-bottom: 5px;
}

.application-detail-page .work-history-item .company {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 5px;
}

.application-detail-page .work-history-item .dates {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.application-detail-page .detail-text {
  color: #555;
  line-height: 1.6;
}

.application-detail-page .detail-text--block {
  white-space: pre-wrap;
}

.application-detail-page .detail-text--spaced {
  margin-top: 10px;
}

.application-detail-page .notes-block {
  margin-top: 15px;
}

.application-detail-page .action-bar {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  bottom: 20px;
}

.application-detail-page .action-title {
  margin-bottom: 15px;
  color: #333;
}

.application-detail-page .action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.application-detail-page .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.application-detail-page .btn-primary { background: #667eea; color: white; }
.application-detail-page .btn-primary:hover { background: #5568d3; }

.application-detail-page .btn-success { background: #28a745; color: white; }
.application-detail-page .btn-success:hover { background: #218838; }

.application-detail-page .btn-warning { background: #ffc107; color: #333; }
.application-detail-page .btn-warning:hover { background: #e0a800; }

.application-detail-page .btn-danger { background: #dc3545; color: white; }
.application-detail-page .btn-danger:hover { background: #c82333; }

.application-detail-page .btn-secondary { background: #6c757d; color: white; }
.application-detail-page .btn-secondary:hover { background: #5a6268; }

@media (max-width: 768px) {
  .application-detail-page .info-grid {
    grid-template-columns: 1fr;
  }

  .application-detail-page .action-buttons {
    flex-direction: column;
  }

  .application-detail-page .btn {
    width: 100%;
    justify-content: center;
  }
}

.checkbox-group {
  margin: 15px 0;
}

.checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-group .checkbox-label span {
  line-height: 1.5;
}

.checkbox-group a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.form-note {
  text-align: center;
  color: #888;
  font-size: 0.9em;
  margin-top: 20px;
  font-style: italic;
}

/* Responsive Form Sections */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.1em;
  }
  
  .form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }
}

/* No Jobs Message */
.no-jobs {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.2em;
}

/* Company Name on Job Cards */
.company-name {
  color: #667eea;
  font-weight: 600;
  font-size: 0.95em;
  margin: 5px 0 10px;
}

/* Job Details Page */
.job-details-container {
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

.job-details-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.job-details-card:hover {
  transform: rotate(0deg);
}

.job-header {
  background: linear-gradient(135deg, #d18d11 0%, #cb0e6e 100%);
  color: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.job-header h1 {
  color: #f1f1f1;
  font-size: 2.2em;
  margin: 0 0 10px 0;
  text-shadow: none;
  border: none;
  padding: 0;
}

.job-header p {
  margin: 5px 0;
  opacity: 0.95;
}

.company-info {
  color: #555;
  font-size: 1.1em;
  margin: 0;
}

.separator {
  margin: 0 10px;
  color: #999;
}

.job-salary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  text-align: center;
}

.salary-label {
  font-size: 0.9em;
  opacity: 0.9;
}

.salary-amount {
  font-size: 2em;
  font-weight: bold;
  margin: 0 5px;
}

.salary-period {
  font-size: 1em;
  opacity: 0.9;
}

.job-meta {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.meta-badge {
  background: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

.job-description,
.job-benefits {
  margin: 30px 0;
}

.job-description h3,
.job-benefits h3,
.share-section h4,
.contact-info h4 {
  color: #667eea;
  font-size: 1.4em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.job-description p {
  color: #444;
  line-height: 1.8;
  font-size: 1.05em;
}

.job-benefits ul {
  list-style: none;
  padding: 0;
}

.job-benefits li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #444;
  line-height: 1.6;
}

/* Job Submissions Page */
.submissions-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.submissions-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.submissions-list {
  display: grid;
  gap: 15px;
}

.submission-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.submission-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.applicant-info {
  display: grid;
  gap: 10px;
}

.applicant-name {
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.applicant-details {
  display: grid;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.applicant-details p {
  margin: 0;
}

.submission-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-link {
  padding: 10px 15px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.view-profile {
  background: #667eea;
  color: white;
}

.view-profile:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-pending:hover {
  background: #ffeaa7;
}

.status-interviewed {
  background: #d1ecf1;
  color: #0c5460;
}

.status-interviewed:hover {
  background: #bee5eb;
}

.status-accepted {
  background: #d4edda;
  color: #155724;
}

.status-accepted:hover {
  background: #c3e6cb;
}

.no-submissions {
  text-align: center;
  padding: 60px 20px;
  color: #e5e5e5;
}

.no-submissions-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .submission-card {
    grid-template-columns: 1fr;
  }

  .submission-actions {
    flex-direction: row;
  }

  .action-link {
    flex: 1;
  }

  .job-header h1 {
    font-size: 1.5em;
  }
}

.job-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.2em;
}

.job-actions {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.share-section {
  margin: 30px 0;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 8px;
}

.share-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.share-form input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
}

.btn-share {
  padding: 12px 24px;
  background: #FF6B6B;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.contact-info {
  margin: 30px 0;
  padding: 25px;
  background: #f0f4ff;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.contact-info p {
  margin: 10px 0;
  color: #444;
}

/* Profile Page Styling */
.profile-container {
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

.profile-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: rotate(0deg);
}

.profile-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 3px solid #667eea;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.profile-header h1 {
  color: #333;
  font-size: 2em;
  margin: 10px 0;
  text-shadow: none;
  border: none;
  padding: 0;
}

.profile-role {
  color: #667eea;
  font-size: 1.1em;
  font-weight: 600;
}

.profile-section {
  margin: 30px 0;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 8px;
}

.profile-section h3 {
  color: #667eea;
  font-size: 1.3em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-label {
  color: #888;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #333;
  font-size: 1.05em;
}

.info-value a {
  color: #667eea;
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

.company-description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

.company-description p {
  color: #555;
  line-height: 1.6;
}

.profile-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-danger {
  display: inline-block;
  padding: 14px 28px;
  background: #FF6B6B;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: #ee5a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.btn-cancel {
  display: inline-block;
  padding: 14px 28px;
  background: #999;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.delete-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px dashed #ddd;
  text-align: center;
}

/* Responsive Profile */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-actions a,
  .profile-actions button {
    width: 100%;
    text-align: center;
  }
  
  .job-actions {
    flex-direction: column;
  }
  
  .share-form {
    flex-direction: column;
  }
}

/* Dashboard Styling */
.dashboard-container {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 40px;
}

.welcome-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 40px;
  text-align: center;
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.welcome-card:hover {
  transform: rotate(0deg);
}

.welcome-card h1 {
  color: #333;
  font-size: 2.5em;
  margin: 15px 0 10px;
  text-shadow: none;
  border: none;
  padding: 0;
}

.dashboard-subtitle {
  color: #666;
  font-size: 1.2em;
  margin: 10px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: center;
  position: relative;
  transform: rotate(-1deg);
  transition: all 0.3s ease;
}

.dashboard-card:nth-child(even) {
  transform: rotate(1deg);
}

.dashboard-card:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.dashboard-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.dashboard-card h3 {
  color: #667eea;
  font-size: 1.4em;
  margin: 15px 0;
}

.dashboard-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.dashboard-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.dashboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: #f0f4ff;
  border: 1px solid #d0d9ff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  position: relative;
  transform: rotate(0.5deg);
}

.stat-card h4 {
  color: #667eea;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.stat-value {
  color: #333;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0;
}

/* Resume Builder Styling */
.resume-builder {
  max-width: 1000px;
}

.template-selection {
  margin: 30px 0;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 8px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.template-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.template-option input[type="radio"] {
  display: none;
}

.template-preview {
  width: 150px;
  height: 200px;
  border: 3px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: white;
  transition: all 0.3s ease;
  position: relative;
}

.template-option input[type="radio"]:checked + .template-preview {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.preview-header {
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  font-size: 0.9em;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-line {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
}

.preview-line.short {
  width: 60%;
}

.template-preview.modern .preview-header {
  color: #667eea;
  border-bottom-color: #667eea;
}

.template-preview.classic .preview-header {
  color: #333;
  border-bottom-color: #333;
}

.template-preview.creative .preview-header {
  color: #FF6B6B;
  border-bottom-color: #FF6B6B;
}

.template-preview.professional .preview-header {
  color: #4CAF50;
  border-bottom-color: #4CAF50;
}

.template-name {
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Warning and Info Boxes */
.warning-icon,
.info-icon {
  font-size: 4em;
  margin: 20px 0;
  text-align: center;
}

.warning-text {
  color: #FF6B6B;
  font-weight: 600;
}

.warning-box,
.info-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.info-box {
  background: #d1ecf1;
  border-color: #17a2b8;
}

.warning-box h3,
.info-box h3 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.warning-box ul,
.info-box ul {
  margin: 15px 0;
  padding-left: 25px;
}

.warning-box li,
.info-box li {
  margin: 8px 0;
  color: #555;
}

/* Apply Job Page (authenticated apply flow) */
.apply-job-page .auth-card.apply-job-card {
  max-width: 900px;
}

.apply-job-page .job-summary-box {
  margin: 25px 0;
}

.apply-job-page .job-summary-title {
  margin-top: 0;
  color: #667eea;
}

.apply-job-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.apply-job-page .info-item {
  display: flex;
  flex-direction: column;
}

.apply-job-page .info-label {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 4px;
}

.apply-job-page .info-value {
  font-weight: 600;
  color: #333;
}

.apply-job-page .tips-box {
  background: #f0f4ff;
  border: 2px solid #667eea;
  border-left: 4px solid #667eea;
  margin-bottom: 30px;
}

.apply-job-page .tips-title {
  margin-top: 0;
}

.apply-job-page .info-list {
  margin: 0;
  padding-left: 20px;
}

.apply-job-page .file-upload-wrapper {
  margin-top: 10px;
}

.apply-job-page .file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-job-page .file-upload-area:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.apply-job-page .file-upload-area input[type="file"] {
  display: none;
}

.apply-job-page .upload-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

.apply-job-page .upload-text {
  margin: 10px 0 5px;
  font-weight: 600;
  color: #333;
}

.apply-job-page .upload-hint {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

.apply-job-page .file-name-display {
  margin-top: 15px;
}

.apply-job-page .file-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #e8f5e9;
  border-radius: 8px;
  border: 2px solid #4CAF50;
}

.apply-job-page .file-icon {
  font-size: 2em;
}

.apply-job-page .file-info strong {
  display: block;
  color: #2e7d32;
}

.apply-job-page .file-info p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #666;
}

.apply-job-page .current-resume {
  background: #e8f5e9;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.apply-job-page .current-resume p {
  margin: 0;
  color: #2e7d32;
}

.apply-job-page .current-resume-link {
  color: #1976d2;
  font-size: 0.9em;
  display: inline-block;
  margin-top: 8px;
}

/* Application Success Page */
.application-success-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.application-success-page .success-container {
  max-width: 600px;
  width: 100%;
}

.application-success-page .success-card {
  background: white;
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.application-success-page .success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 48px;
}

.application-success-page h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 15px;
}

.application-success-page .subtitle {
  color: #667eea;
  font-size: 18px;
  margin-bottom: 30px;
}

.application-success-page .job-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid #667eea;
}

.application-success-page .job-info h3 {
  color: #333;
  margin-bottom: 10px;
}

.application-success-page .job-info p {
  color: #667eea;
  margin: 5px 0;
  font-weight: 600;
}

.application-success-page .next-steps {
  text-align: left;
  margin: 30px 0;
}

.application-success-page .next-steps h3 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.application-success-page .step {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.application-success-page .step-number {
  background: #667eea;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.application-success-page .step p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.application-success-page .action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.application-success-page .btn {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.application-success-page .btn-primary {
  background: #667eea;
  color: white;
}

.application-success-page .btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.application-success-page .btn-secondary {
  background: #e9ecef;
  color: #333;
}

.application-success-page .btn-secondary:hover {
  background: #dee2e6;
  transform: translateY(-2px);
}

.application-success-page .confirmation-email {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 6px;
  margin: 30px 0;
  color: #155724;
}

.application-success-page .confirmation-email strong {
  display: block;
  margin-bottom: 5px;
}

.application-success-page .success-note {
  color: #999;
  font-size: 12px;
  margin-top: 30px;
}

@media (max-width: 600px) {
  .application-success-page .success-card {
    padding: 35px 20px;
  }

  .application-success-page h1 {
    font-size: 24px;
  }

  .application-success-page .action-buttons {
    flex-direction: column;
  }

  .application-success-page .btn {
    width: 100%;
  }
}

.btn-warning {
  display: inline-block;
  padding: 14px 28px;
  background: #FFA500;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
  border: none;
  cursor: pointer;
}

.btn-warning:hover {
  background: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 0, 0.4);
}

.help-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #ddd;
  text-align: center;
}

.help-section p {
  color: #666;
  font-size: 1em;
}

.help-section a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.help-section a:hover {
  text-decoration: underline;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .welcome-card h1 {
    font-size: 1.8em;
  }
  
  .dashboard-card {
    transform: rotate(0deg);
  }
  
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-stats {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Widgets */
.widget-section {
  margin: 40px 0;
}

.widget-title {
  color: #667eea;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.widget-card {
  background: #FFFEF0;
  border: 1px solid #E8E5D5;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 30px;
  position: relative;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.widget-card:hover {
  transform: rotate(0deg);
}

.widget-item {
  padding: 20px;
  border-bottom: 2px dashed #ddd;
  transition: all 0.3s ease;
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item:hover {
  background: #f9f9f9;
  border-radius: 8px;
}

.widget-item h4 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.widget-meta {
  color: #666;
  font-size: 0.9em;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.widget-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.widget-btn {
  padding: 8px 16px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.widget-btn:hover {
  background: #667eea;
  color: white;
}

.widget-btn-primary {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.widget-btn-primary:hover {
  background: #45a049;
  transform: translateY(-2px);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-inactive {
  background: #f8d7da;
  color: #721c24;
}

.status-reviewing {
  background: #d1ecf1;
  color: #0c5460;
}

.status-accepted {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.saved-jobs-page .empty-state {
  padding: 60px 20px;
}

.saved-jobs-page .empty-state .empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.saved-jobs-page .empty-helper {
  margin-top: 10px;
  color: #666;
}

.saved-jobs-page .empty-state .btn-primary {
  margin-top: 20px;
  display: inline-block;
}

.view-all-link {
  display: block;
  text-align: center;
  padding: 15px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-top: 2px dashed #ddd;
  margin-top: 15px;
}

.view-all-link:hover {
  color: #5568d3;
  background: #f9f9f9;
}

/* Homepage CTA Section */
.cta-section {
  margin: 60px 0 40px;
  display: flex;
  justify-content: center;
}

.cta-card {
  background: linear-gradient(135deg, #97a100 0%, #a9ab32 100%);
  border-radius: 15px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.cta-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.cta-card h2 {
  color: white;
  font-size: 2.2em;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.apply-btn {
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 34px;
}

.cta-employer {
  background: white;
  color: #667eea;
}

.cta-employer:hover {
  background: #f0f4ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-va {
  background: #4CAF50;
  color: white;
}

.cta-va:hover {
  background: #45a049;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.company-name {
  color: #667eea;
  font-size: 0.95em;
  font-weight: 600;
  margin: 5px 0 10px;
}

.no-jobs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-jobs .empty-state h2 {
  color: #333;
  font-size: 2em;
  margin-bottom: 15px;
}

.no-jobs .empty-state p {
  color: #666;
  font-size: 1.2em;
  margin-bottom: 25px;
}

/* Page Header Section (for jobs page) */
.page-header-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 20px 80px;
  margin-bottom: 40px;
}

.page-header-section h1 {
  color: white;
  font-size: 3em;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: none;
  padding: 0;
}

.page-header-section .tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3em;
  text-align: center;
  margin-bottom: 30px;
}

.page-header-section .search-form {
  margin-bottom: 20px;
}

.page-header-section .filter-section {
  max-width: 900px;
  margin: 0 auto;
}

.page-header p {
  color: #d9d7d7;
  font-size: 16px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #bfc0c3;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #301151;
}

@media (max-width: 480px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

/* File Upload Styling */
.file-upload-label {
  cursor: pointer;
  display: block;
}

.file-upload-area {
  border: 3px dashed #ddd;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.file-upload-area:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.upload-icon {
  font-size: 4em;
  margin-bottom: 15px;
}

.upload-text {
  color: #333;
  font-size: 1.1em;
  font-weight: 600;
  margin: 10px 0;
}

.upload-hint {
  color: #888;
  font-size: 0.9em;
  margin: 5px 0;
}

.file-name-display {
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e9;
  border-radius: 6px;
  display: none;
}

.file-name-display:not(:empty) {
  display: block;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-icon {
  font-size: 2em;
}

.file-info strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.file-info p {
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

.link-button {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid #667eea;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.link-button:hover {
  background: #667eea;
  color: white;
}

.current-resume {
  margin-top: 30px;
  padding: 25px;
  background: #e8f5e9;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  text-align: center;
}

.current-resume h4 {
  color: #4CAF50;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.current-resume p {
  color: #555;
  margin-bottom: 15px;
}

/* Logout Page Styling */
.logout-card {
  text-align: center;
  max-width: 600px;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5em;
  font-weight: bold;
  margin: 20px auto;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logout-message {
  padding: 25px;
  background: #f0f4ff;
  border-radius: 8px;
  margin: 25px 0;
}

.logout-message p {
  color: #555;
  font-size: 1.05em;
  margin: 10px 0;
  line-height: 1.6;
}

.logout-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.logout-actions a {
  width: 100%;
  text-align: center;
}

.logout-tips {
  margin-top: 30px;
  padding: 25px;
  background: #fff9e6;
  border-radius: 8px;
  border-left: 4px solid #FFA500;
}

.logout-tips h4 {
  color: #FFA500;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.logout-tips ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.logout-tips li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #555;
}

.logout-tips li::before {
  content: "💡";
  position: absolute;
  left: 0;
}

/* Thank You Page Styling */
.thank-you-card {
  text-align: center;
  max-width: 800px;
}

.welcome-message {
  padding: 25px;
  background: #e8f5e9;
  border-radius: 8px;
  margin: 25px 0;
  border-left: 4px solid #4CAF50;
}

.welcome-message p {
  color: #2e7d32;
  font-size: 1.1em;
  margin: 8px 0;
  line-height: 1.6;
}

.next-steps {
  margin: 40px 0;
  text-align: left;
}

.next-steps h3 {
  color: #667eea;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 25px;
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  background: #f0f4ff;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #667eea;
  text-align: center;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.step-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.step-card h4 {
  color: #667eea;
  font-size: 1.1em;
  margin: 10px 0;
}

.step-card p {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

.welcome-actions {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.help-info {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px dashed #ddd;
}

.help-info p {
  color: #666;
  font-size: 1em;
}

.help-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.help-info a:hover {
  text-decoration: underline;
}

/* Error and Success Messages */
.error-message,
.success-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.error-message {
  background: #fee;
  border: 2px solid #f88;
  color: #c33;
}

.success-message {
  background: #efe;
  border: 2px solid #8c8;
  color: #3c3;
}

.error-icon,
.success-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.error-message p,
.success-message p {
  margin: 0;
  color: inherit;
  font-weight: 500;
  line-height: 1.5;
}

/* Employer Admin View Styles */
.employer-admin-view {
  background: #f8f9ff;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 30px;
  margin-top: 34px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.stat-icon {
  font-size: 2.5em;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-action-btn {
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-action-btn.edit {
  background: #667eea;
  color: white;
}

.admin-action-btn.edit:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.admin-action-btn.submissions {
  background: #17a2b8;
  color: white;
}

.admin-action-btn.submissions:hover {
  background: #138496;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
}

.admin-action-btn.archive {
  background: #ffc107;
  color: #333;
}

.admin-action-btn.archive:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.admin-action-btn.delete {
  background: #dc3545;
  color: white;
}

.admin-action-btn.delete:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .admin-actions {
    grid-template-columns: 1fr;
  }
  
  .employer-admin-view {
    padding: 20px;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applications Page */
.applications-page {
  background-color: #f5f5f5;
}

.applications-page header {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.applications-page header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.applications-page header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.applications-page header nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.applications-page header nav a:hover {
  color: #667eea;
}

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

.applications-page .page-header {
  margin-bottom: 30px;
}

.applications-page .page-header h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 32px;
}

.applications-page .page-header p {
  color: #d5d2d2;
  font-size: 16px;
  text-align: center;
}

.applications-page .filter-bar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.applications-page .filter-bar label {
  font-weight: 600;
  color: #333;
}

.applications-page .filter-bar select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.applications-page .applications-grid {
  display: grid;
  gap: 20px;
}

.applications-page .application-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
  transition: transform 0.2s, box-shadow 0.2s;
}

.applications-page .application-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.applications-page .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.applications-page .applicant-info h3 {
  color: #333;
  margin-bottom: 5px;
  font-size: 18px;
}

.applications-page .applicant-info p {
  color: #666;
  font-size: 14px;
  margin: 3px 0;
}

.applications-page .job-title {
  color: #667eea;
  font-weight: 600;
}

.applications-page .status-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.applications-page .status-pending { background: #fff3cd; color: #856404; }
.applications-page .status-reviewing { background: #d1ecf1; color: #0c5460; }
.applications-page .status-interview-scheduled { background: #cce5ff; color: #004085; }
.applications-page .status-interviewed { background: #d4edda; color: #155724; }
.applications-page .status-accepted { background: #d4edda; color: #155724; }
.applications-page .status-rejected { background: #f8d7da; color: #721c24; }
.applications-page .status-withdrawn { background: #e2e3e5; color: #383d41; }

.applications-page .card-body {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.applications-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}

.applications-page .info-item {
  font-size: 14px;
}

.applications-page .info-item label {
  color: #666;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.applications-page .info-item value {
  color: #333;
}

.applications-page .cover-letter {
  margin-top: 10px;
}

.applications-page .cover-letter-text {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.applications-page .card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.applications-page .btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  font-weight: 600;
}

.applications-page .btn-view { background: #667eea; color: white; }
.applications-page .btn-view:hover { background: #5568d3; }
.applications-page .btn-update { background: #28a745; color: white; }
.applications-page .btn-update:hover { background: #218838; }
.applications-page .btn-reject { background: #dc3545; color: white; }
.applications-page .btn-reject:hover { background: #c82333; }
.applications-page .btn-schedule { background: #17a2b8; color: white; }
.applications-page .btn-schedule:hover { background: #138496; }

.applications-page .empty-state {
  background: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
}

.applications-page .empty-state h2 {
  color: #333;
  margin-bottom: 10px;
}

.applications-page .empty-state p {
  color: #666;
  margin-bottom: 20px;
}

.applications-page .btn-primary { background: #667eea; color: white; }
.applications-page .btn-primary:hover { background: #5568d3; }

.applications-page .stat-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.applications-page .stat-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.applications-page .stat-card .number {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
}

.applications-page .stat-card .label {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .applications-page .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .applications-page .card-header {
    flex-direction: column;
  }

  .applications-page .status-badge {
    margin-top: 10px;
  }

  .applications-page .info-grid {
    grid-template-columns: 1fr;
  }

  .applications-page .card-footer {
    flex-direction: column;
  }

  .applications-page .btn {
    width: 100%;
    text-align: center;
  }
}

/* Upload Resume Page Styles */
.upload-resume-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.upload-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.upload-section h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.upload-info {
  background: #f0f4ff;
  border-left: 4px solid #667eea;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 6px;
}

.upload-info h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.upload-info ul {
  margin-left: 20px;
  color: #555;
}

.upload-info li {
  margin: 8px 0;
}

.file-upload-wrapper {
  margin: 30px 0;
}

.current-resume {
  background: #e8f5e9;
  border-left: 4px solid #4CAF50;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 6px;
}

.current-resume h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.preview-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-section h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.preview-frame {
  width: 100%;
  height: 600px;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-top: 20px;
}

.no-preview {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 1.1em;
}

.resume-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-download {
  background: #17a2b8;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

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

.btn-back {
  background: #6c757d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-back:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .upload-section, .preview-section {
    padding: 25px 20px;
  }

  .preview-frame {
    height: 400px;
  }
}

/* Share Success Page Styles */
.success-container {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.success-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-container h1 {
  color: #333;
  margin-bottom: 15px;
  font-size: 28px;
}

.job-title {
  color: #667eea;
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0;
  word-wrap: break-word;
}

.success-container p {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

.confirmation-message {
  background: #f0f4ff;
  border-left: 4px solid #667eea;
  padding: 15px;
  margin: 25px 0;
  border-radius: 4px;
  text-align: left;
  color: #333;
}

.confirmation-message strong {
  color: #667eea;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-direction: column;
}

.share-details {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #333;
}

.detail-value {
  color: #666;
  word-break: break-word;
}

.note {
  font-size: 14px;
  color: #999;
  margin-top: 20px;
  font-style: italic;
}

@media (max-width: 600px) {
  .success-container {
    padding: 30px 20px;
  }

  .success-container h1 {
    font-size: 24px;
  }

  .job-title {
    font-size: 18px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }
}

/* Applicant Profile Page */
.applicant-profile-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.applicant-profile-page .profile-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0;
}

.applicant-header-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
}

.applicant-header-card .profile-avatar.large {
  width: 120px;
  height: 120px;
  font-size: 48px;
  flex-shrink: 0;
}

.applicant-header-card .header-info h1 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 32px;
}

.applicant-header-card .profile-email {
  color: #667eea;
  font-size: 16px;
  margin: 5px 0;
}

.applicant-header-card .profile-phone {
  color: #666;
  margin: 5px 0;
}

.applicant-profile-page .info-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.08);
}

.applicant-profile-page .info-section h2 {
  color: #333;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.applicant-profile-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.applicant-profile-page .info-item {
  display: flex;
  flex-direction: column;
}

.applicant-profile-page .info-label {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.applicant-profile-page .info-value {
  color: #333;
  font-size: 16px;
}

.applicant-profile-page .info-value a {
  color: #667eea;
  text-decoration: none;
}

.applicant-profile-page .info-value a:hover {
  text-decoration: underline;
}

.applicant-profile-page .resume-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.applicant-profile-page .resume-status {
  color: #4CAF50;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.applicant-profile-page .no-resume {
  color: #999;
  font-style: italic;
}

.applicant-profile-page .applications-summary,
.applicant-profile-page .jobs-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.applicant-profile-page .app-summary-card,
.applicant-profile-page .job-summary-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #667eea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.applicant-profile-page .app-summary-card h3,
.applicant-profile-page .job-summary-card h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.applicant-profile-page .app-company,
.applicant-profile-page .job-company {
  color: #667eea;
  font-size: 14px;
  margin: 5px 0;
  font-weight: 500;
}

.applicant-profile-page .job-location {
  color: #666;
  font-size: 13px;
  margin: 8px 0;
}

.applicant-profile-page .app-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.applicant-profile-page .app-title-info {
  flex: 1;
}

.applicant-profile-page .app-status-badge {
  margin-left: 15px;
}

.applicant-profile-page .btn-small {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.applicant-profile-page .btn-small:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.applicant-profile-page .empty-section {
  color: #999;
  text-align: center;
  padding: 30px 20px;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 8px;
}

.applicant-profile-page .contact-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 30px;
  color: white;
  margin-top: 30px;
}

.applicant-profile-page .contact-section h2 {
  color: white;
  margin-top: 0;
  margin-bottom: 20px;
}

.applicant-profile-page .contact-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.applicant-profile-page .contact-buttons .btn-primary,
.applicant-profile-page .contact-buttons .btn-secondary {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.applicant-profile-page .contact-buttons .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.applicant-profile-page .contact-buttons .btn-secondary:hover {
  background: #f0f0f0;
}

@media (max-width: 768px) {
  .applicant-header-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .applicant-header-card .header-info h1 {
    font-size: 24px;
  }

  .applicant-profile-page .info-grid {
    grid-template-columns: 1fr;
  }

  .applicant-profile-page .applications-summary,
  .applicant-profile-page .jobs-summary {
    grid-template-columns: 1fr;
  }

  .applicant-profile-page .app-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .applicant-profile-page .app-status-badge {
    margin-left: 0;
    margin-top: 10px;
  }

  .applicant-profile-page .contact-buttons {
    flex-direction: column;
  }

  .applicant-profile-page .contact-buttons .btn-primary,
  .applicant-profile-page .contact-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Filter Tabs for Job Submissions */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
}

.filter-tab {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  background: #f0f2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.filter-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .filter-tabs {
    padding: 15px;
  }
  
  .filter-tab {
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
    text-align: center;
    font-size: 0.9em;
    padding: 8px 12px;
  }
}