/* =================================================== 
   CAREER PAGE STYLES 
   =================================================== */

.career-page-modern {
  min-height: 100vh;
  background: #f8f9fa;
}

/* Hero Section */
.career-hero-section {
  background: linear-gradient(135deg, #62411e 0%, #8b5a3c 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.career-hero-content {
  text-align: center;
}

.career-main-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.career-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: white;
}

.career-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Tab Navigation Modern */
.career-tabs-container {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.career-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border: none;
}

.career-nav-link {
  padding: 1rem 2rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 50px;
  color: #666;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.career-nav-link.active,
.career-nav-link:hover {
  background: #62411e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(98, 65, 30, 0.3);
}

/* Job Listings Grid */
.job-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.job-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.job-card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #62411e;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.job-meta-item i {
  color: #e78b26;
}

.job-card-body {
  padding: 1.5rem;
}

.job-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.job-card.expanded .job-description {
  max-height: 500px;
}

.job-requirements {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.job-requirements h4 {
  font-size: 1.1rem;
  color: #62411e;
  margin-bottom: 0.75rem;
}

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

.job-requirements li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.job-requirements li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e78b26;
  font-weight: bold;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.job-deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.job-deadline i {
  color: #e78b26;
}

.btn-apply-now {
  padding: 0.8rem 1.5rem;
  background: #62411e;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-apply-now:hover {
  background: #8b5a3c;
  transform: translateY(-2px);
  color: white;
}

.test-login-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.test-login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(231, 139, 38, 0.05) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(20px, -40px) rotate(240deg);
  }
}

/* Form Header Enhanced */
.test-login-container .form-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.test-login-container .form-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #62411e 0%, #e78b26 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.test-login-container .form-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Form Grid Enhanced */
.test-login-container .form-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Form Group Enhanced */
.test-login-container .form-group {
  position: relative;
}

.test-login-container .form-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.test-login-container .form-label .required {
  color: #e74c3c;
  font-weight: 700;
  margin-left: 2px;
}

/* Form Control Enhanced */
.test-login-container .form-control {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid #e1e8ed;
  border-radius: 15px;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.test-login-container .form-control:hover {
  border-color: #d1d8dd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.test-login-container .form-control:focus {
  outline: none;
  border-color: #e78b26;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(231, 139, 38, 0.1),
    0 4px 20px rgba(231, 139, 38, 0.15);
  transform: translateY(-2px);
}

.test-login-container .form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* Animated Input Effect */
.test-login-container .form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e78b26, #62411e);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.test-login-container .form-group:focus-within::after {
  width: 100%;
}

/* Test Code Input Special Styling */
#test_code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* Validation Styles Enhanced */
.test-login-container .form-control.is-invalid {
  border-color: #dc3545;
  background-color: #fff5f5;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.test-login-container .invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  animation: slideDown 0.3s ease;
}

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

.test-login-container .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Success State */
.test-login-container .form-control.is-valid {
  border-color: #28a745;
  background-color: #f8fff9;
}

/* Form Actions Enhanced */
.test-login-container .form-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

/* Submit Button Enhanced */
.test-login-container .btn-submit {
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #62411e 0%, #8b5a3c 100%);
  color: white;
  border: none;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(98, 65, 30, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.test-login-container .btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.test-login-container .btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.test-login-container .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(98, 65, 30, 0.4);
  background: linear-gradient(135deg, #8b5a3c 0%, #62411e 100%);
}

.test-login-container .btn-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(98, 65, 30, 0.3);
}

.test-login-container .btn-submit i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.test-login-container .btn-submit:hover i {
  transform: translateX(3px);
}

/* Info Cards for Test Dashboard */
.test-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.test-info-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.test-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e78b26, #62411e);
}

.test-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.test-info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(231, 139, 38, 0.1) 0%,
    rgba(98, 65, 30, 0.1) 100%
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.test-info-icon i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #e78b26 0%, #62411e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.test-info-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.test-info-desc {
  color: #6c757d;
  line-height: 1.6;
}

/* Test Instructions Accordion */
.test-instructions {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.test-instructions-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.test-instructions-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.test-instructions-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.instruction-item {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #e78b26;
  transition: all 0.3s ease;
}

.instruction-item:hover {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateX(5px);
}

.instruction-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #e78b26;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1rem;
}

/* Loading States */
.test-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.test-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e78b26;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .test-login-container {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .test-login-container .form-title {
    font-size: 1.8rem;
  }

  .test-login-container .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .test-info-cards {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .test-login-container {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .test-login-container .form-control {
    background: #1a1a1a;
    border-color: #3a3a3a;
    color: #ffffff;
  }

  .test-login-container .form-control:focus {
    background: #2a2a2a;
    border-color: #e78b26;
  }

  .test-login-container .form-label {
    color: #e0e0e0;
  }
}

/* Additional Hover Effects */
.test-login-container {
  position: relative;
  transition: transform 0.3s ease;
}

.test-login-container:hover {
  transform: translateY(-2px);
}

/* Success Animation */
@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.success-animation {
  animation: successPulse 1.5s ease-in-out;
}

/* Password Strength Indicator (if needed) */
.password-strength {
  height: 5px;
  background: #e9ecef;
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.password-strength-weak {
  width: 33%;
  background: #dc3545;
}

.password-strength-medium {
  width: 66%;
  background: #ffc107;
}

.password-strength-strong {
  width: 100%;
  background: #28a745;
}

/* Application Form Modern */
.application-form-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #62411e;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: #666;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-label span.required {
  color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #e78b26;
  background: white;
  box-shadow: 0 0 0 3px rgba(231, 139, 38, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* File Upload Modern */
.file-upload-group {
  position: relative;
}

.file-upload-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  left: -9999px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background: white;
  border-color: #e78b26;
}

.file-upload-label i {
  font-size: 1.5rem;
  color: #e78b26;
}

.file-upload-text {
  color: #666;
}

.file-info {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

.file-selected {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #d4edda;
  border-radius: 8px;
  color: #155724;
  font-size: 0.9rem;
}

/* Submit Button */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-submit {
  padding: 1rem 3rem;
  background: #62411e;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #8b5a3c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(98, 65, 30, 0.3);
}

.btn-reset {
  padding: 1rem 3rem;
  background: #e9ecef;
  color: #333;
  border: 2px solid #dee2e6;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Contact Section */
.career-contact-section {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e78b26, #62411e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.contact-icon i {
  font-size: 2rem;
  color: white;
}

.career-contact-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #62411e;
  margin-bottom: 1rem;
}

.career-contact-section p {
  color: #666;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #f8f9fa;
  border-radius: 50px;
  text-decoration: none;
  color: #62411e;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: #62411e;
  color: white;
  transform: translateY(-2px);
}

/* Empty State */
.empty-jobs-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .career-main-title {
    font-size: 2rem;
  }

  .career-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .job-listings-grid {
    grid-template-columns: 1fr;
  }

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

  .career-nav-tabs {
    flex-direction: column;
  }

  .career-nav-link {
    width: 100%;
    text-align: center;
  }
}
