/* Job Application System Frontend Styles */
.jas-job-listings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.jas-job-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.jas-job-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jas-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  cursor: pointer;
}

.jas-job-info {
  flex: 1;
}

.jas-job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px 0;
}

.jas-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #6c757d;
}

.jas-job-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.jas-job-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jas-apply-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.jas-apply-btn:hover {
  background: #005a87;
}

.jas-toggle-details {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  color: #6c757d;
}

.jas-job-details {
  border-top: 1px solid #e1e5e9;
  padding: 20px;
  background: #f8f9fa;
}

.jas-job-section {
  margin-bottom: 20px;
}

.jas-job-section:last-child {
  margin-bottom: 0;
}

.jas-job-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px 0;
}

.jas-job-section ul {
  margin: 0;
  padding-left: 20px;
}

.jas-job-section li {
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Modal Styles */
.jas-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jas-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.jas-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e1e5e9;
}

.jas-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #2c3e50;
}

.jas-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jas-modal-close:hover {
  color: #dc3545;
}

/* Form Styles */
#jas-application-form {
  padding: 20px;
}

.jas-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.jas-form-group {
  flex: 1;
  margin-bottom: 15px;
}

.jas-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #2c3e50;
}

.jas-form-group input,
.jas-form-group select,
.jas-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.jas-form-group input:focus,
.jas-form-group select:focus,
.jas-form-group textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.jas-form-group small {
  display: block;
  margin-top: 5px;
  color: #6c757d;
  font-size: 12px;
}

.jas-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
}

.jas-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.jas-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.jas-btn-primary,
.jas-btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.jas-btn-primary {
  background: #007cba;
  color: white;
}

.jas-btn-primary:hover {
  background: #005a87;
}

.jas-btn-secondary {
  background: #6c757d;
  color: white;
}

.jas-btn-secondary:hover {
  background: #545b62;
}

.jas-no-jobs {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jas-job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .jas-job-actions {
    width: 100%;
    justify-content: space-between;
  }

  .jas-job-meta {
    flex-direction: column;
    gap: 8px;
  }

  .jas-form-row {
    flex-direction: column;
    gap: 0;
  }

  .jas-modal-content {
    width: 95%;
    margin: 20px;
  }

  .jas-form-actions {
    flex-direction: column;
  }
}

/* Loading and Success States */
.jas-loading {
  opacity: 0.6;
  pointer-events: none;
}

.jas-success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #c3e6cb;
}

.jas-error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
}
