.popup-form-company{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 90%, 1200px);
    max-height: 95vh;
    overflow-y: hidden;
    background-color: transparent;
    z-index: 2000;
}

#close-btn-company {
    position: fixed;
    top: 50px;
    right: 40px;
    z-index: 2100;
    background-color: transparent;
    border: none;
    padding: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.2s ease;

}

#close-btn-company:hover {
    background-color: white;
}

.container-company-popup{
    position: relative;
    width: 100%;
    margin: 40px auto;
    background-color: var(--background-color);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 80px);
}
.container-company-popup::-webkit-scrollbar {
  width: 8px;
  right: 10px;
  border-radius: 4px;
}
.container-company-popup::-webkit-scrollbar-thumb {
  background-color: var(--scrollBar);
  border-radius: 4px;
}
.container-company-popup::-webkit-scrollbar-track {
  background-color: var(--box-color);
  border-radius: 4px;
}

.top{
  position: sticky;
  top: 0;
  background-color: var(--primary-color);
  border-radius: 20px 20px 0px 0px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bottom-row {
  display: flex;
  flex-direction: row;
}
.bottom-right{
    flex: 2.5;
    background: var(--box-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bottom-left {
    flex: 1.6;
    background: var(--box-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bottom-up{
  display: flex;
  flex-direction: row;
  height: 40%;
}
.up-right{
  display: flex;
  flex-direction: column;
  width: 45%;
  height: 100%;
  padding: 20px;
  gap: 20px;
  border-right: 1px solid (--border-color);
}
.up-left{
  display: flex;
  flex-direction: column;
  width: 45%;
  height: 100%;
  padding: 20px;
  gap: 20px;
  border-left: 1px solid (--border-color);
}
.bottom-down{
  border-top: 1px solid (--border-color);
  width: 90%;
  height: 60%;
  padding: 20px;
  padding-top: 0px;
  padding-bottom: 5px;
}
.section-title {
  font-size:xx-large;
  font-weight: 600;
  align-self: flex-start;
  margin-left: 50px;
  color: white;
}
label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.input-box {
  width: 90%;
  padding: 10px;
  border: 1px solid var(--border-color);
  outline: var(--primary-color);
  border-radius: 6px;
  margin-top: 5px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-box:focus{
  border-color: var(--primary-color);
  outline: none;
  transition: all 0.2s ease;
}
textarea.large {
  height: 205px;
  width: 99%;
  outline: var(--primary-color);
  resize: none;
}
.salary {
  width: 200px;
  margin-right: 0px;
}
.job-time-cat-container{
    border: 1px solid var(--border-color);
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.Options-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}
select.option-group {
    width: 100%;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--box-color);
    font-size: 0.9rem;
    cursor: pointer;
}
.optgroup-category {
    font-weight: bold;
    color: var(--primary-color);
}
.option-category {
    font-size: 0.9rem;
    padding-left: 10px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
}
.option-category:hover {
    background: var(--primary-color);
    color: white;
}
select:focus {
    border-color: var(--primary-color);
    outline: none;
}
.add-button {
    width: 100%;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.add-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.input-box #job-description {
  height: 150px;
  width: 99% !important;
  outline: var(--primary-color);
  resize: none;
  overflow-y: auto;
}
.skillsLabel {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.requiredSkills, .requiredtag {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  height: 100px;
  border: 1px solid var(--border-color);
  position: relative;
  border-radius: 6px;
}

.requiredSkills .skills-disp, .requiredtag .tag-disp {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 150px;
  height: 80%;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 6px;
  padding: 10px;
  flex: 1;
}

.requiredSkills .skill, .requiredtag .tag {
  width: auto;
  height: 30px;
  padding: 0 15px;
  margin: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  transition: all 0.2s ease;
}

.requiredSkills .skill:hover, .requiredtag .tag:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#addSkill, #addtag {
  width: 40px;
  height: 100%;
  bottom: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0px 8px 8px 0px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  transition: all 0.2s ease;
}

#addSkill:hover, #addtag:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .bottom-row {
    display: flex;
    flex-direction: column;
    
  }
  .bottom-right, .bottom-left {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .bottom-up {
    flex-direction: row;
  }
  .bottom-down {
    width: 100%;
    margin-top: 10px;
  }
  textarea.large {
    width: 85%;
    height: 150px;
  }
 .requiredSkills,
.requiredtag {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 120PX;
}
.requiredSkills .skills-disp,
.requiredtag .tag-disp {
  flex: 1;
  height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  border-radius: 6px;
  box-sizing: border-box;
}

#addSkill,
#addtag {
  width: 45px;
  height: 100%;
  flex-shrink: 0;
}
}


#addSkill:disabled,
#addtag:disabled {
    background: grey;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



