.ParentBlurDiv {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--formJobColor), 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
}

.formDiv {
  opacity: 1 !important;
  isolation: isolate;
  background: var(--box-color);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 90%, 1200px);
  max-width: 1200px;
  height: clamp(400px, 85vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2001;
}
.upperDiv {
  display: flex;
  position: relative;
  background: var(--box-color);
  box-shadow: 0 4px 6px var(--box-shadow);
  border-radius: 12px;
  width: 100%;
}

.lowerDiv {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.formLeftDiv {
  display: flex;
  flex: 2;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  background: var(--box-color);
  box-shadow: 0 4px 6px var(--box-shadow);
  border-radius: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}
.formRightDiv {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  background: var(--box-color);
  box-shadow: 0 4px 6px var(--box-shadow);
  border-radius: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.formLeftDiv::-webkit-scrollbar,
.formRightDiv::-webkit-scrollbar,
.details-container::-webkit-scrollbar {
  width: 10px;
  background-color: var(--border-color);
}
.formLeftDiv::-webkit-scrollbar-thumb,
.formRightDiv::-webkit-scrollbar-thumb,
.details-container::-webkit-scrollbar-thumb {
  background-color: var(--scrollBar);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.formLeftDiv::-webkit-scrollbar-thumb:hover,
.formRightDiv::-webkit-scrollbar-thumb:hover,
.details-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}

.close-btn {
  position: absolute;
  top: -20px;
  left: -30px;
  color: white;
  background: var(--text-muted);
  border-radius: 16px;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.close-btn-inner{
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.form-bookmark {
  position: absolute;
  top: 20px;
  right: 60px;
  cursor: pointer;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.form-bookmark:not(.bookmarked) {
  fill: none;
}

.job-posted-time-form {
  background-color: rgba(var(--primary-color-rgb), 0.12);
  color: var(--primary-color);
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.job-info-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 16px 20px;
  gap: 8px;
  box-sizing: border-box;
  margin: 0;
}

.job-header-form {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.job-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.job-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.job-title-form {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.15;
  margin: 0;
  overflow: hidden;
}

.job-company-form {
  font-size: 0.95rem;
  color: var(--secondary-text-color);
  margin: 0;
  overflow: hidden;
}

.job-logo-form {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(var(--primary-color-rgb), 0.04);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.job-details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.job-detail-item-form {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--secondary-text-color);
  padding: 6px 10px;
  background: rgba(var(--primary-color-rgb), 0.06);
  border-radius: 8px;
}

.job-detail-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.job-type-badge {
  font-weight: 500;
}

.details-container {
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
}

.job-description-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.job-description-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.job-skills-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.job-skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.job-skill {
  background: rgba(var(--primary-color-rgb), 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  margin-right: 8px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.job-tags-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-color);
}

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

.job-tag {
  background: rgba(var(--primary-color-rgb), 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.companyWebsite {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--secondary-color);

  text-decoration: none;
}

.application-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  gap: 12px;
  box-sizing: border-box;
}
.application-form-title {
  font-size: 1.2rem;
  color: var(--text-color);
}
.application-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}
.application-form input,
.application-form textarea,
.application-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-color);
  background: var(--box-color);
  box-sizing: border-box;
}
.application-form input:focus,
.application-form textarea:focus,
.application-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

#resume{
  padding: 4px;
  border: none;
  color: var(--text-color);
  background: var(--box-color);
  box-sizing: border-box;
}
#resume::file-selector-button {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  background: var(--box-color);
  color: var(--text-color);
  cursor: pointer;
}

#experience-level{
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  background: var(--box-color);
  box-sizing: border-box;
  width: 100%;
}
#experience-level-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}
.application-form button {
  margin-top: 12px;
  padding: 10px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.application-form button:hover {
  background: var(--secondary-color);
}

.label-with-tooltip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--primary-color);
}

.tooltip-icon svg {
  transition: color 0.2s ease;
}

.tooltip-icon:hover svg {
  color: var(--secondary-color);
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  background-color: var(--text-color);
  color: var(--box-color);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  white-space: normal;
  max-width: 350px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.application-notice {
  background: rgba(127, 0, 0, 0.05);
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  
}

.application-notice-text {
  color: var(--error);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 768px) {
  .formDiv {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    height: 100vh;
    width: 100vw;
    max-width: 100%;
    background: var(--box-color);
    overflow-y: scroll;
    overflow-x: hidden;
    border-radius: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
  }
  
  .upperDiv {
    display: block;
    position: relative;
    background: var(--box-color);
    box-shadow: none;
    border-radius: 0;
    border-bottom: 2px solid var(--border-color);
    width: 100%;
    min-height: fit-content;
    flex-shrink: 0;
    z-index: 100;
  }

  .lowerDiv {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 0;
    flex: none;
    display: flex;
    align-items: stretch;
  }
  
  .formLeftDiv {
    width: 100%;
    height: auto;
    min-height: fit-content;
    flex: none;
    background: var(--box-color);
    box-shadow: none;
    border-radius: 0;
    overflow-y: visible;
    overflow-x: hidden;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
  }
  
  .formRightDiv {
    width: 100%;
    height: auto;
    min-height: fit-content;
    flex: none;
    background: var(--box-color);
    box-shadow: none;
    border-radius: 0;
    overflow-y: visible;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: 60px;
    box-sizing: border-box;
  }

  .form-bookmark {
    top: 80px;
    right: 20px;
    width: 24px;
    height: 24px;
    z-index: 10;
  }
  
  .close-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10;
  }
  
  .job-info-form {
    padding: 16px;
    margin-top:60px;
    border-top: 2px solid var(--border-color);
    gap: 12px;
  }
  
  .job-header-form {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  
  .job-header-left {
    width: 100%;
  }
  
  .job-header-info {
    gap: 4px;
  }
  
  .job-logo-form {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
  
  .job-title-form {
    font-size: 1.1rem;
  }
  
  .job-company-form {
    font-size: 0.9rem;
  }
  
  .job-detail-item-form {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .job-details-row {
    flex-direction: row;
    margin-top: 12px;
    gap: 8px;
  }
  
  .details-container {
    padding: 16px;
  }
  
  .job-description-title,
  .job-skills-title,
  .job-tags-title {
    font-size: 1rem;
    margin-top: 12px;
    margin-bottom: 6px;
  }
  
  .job-description-content {
    font-size: 0.9rem;
  }
  
  .application-form {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .application-form input,
  .application-form textarea,
  .application-form select {
    box-sizing: border-box;
  }
  
  .application-form-title {
    font-size: 1.1rem;
  }
  
}
