.layout-profile {
    display: flex;
    background: linear-gradient(
            to bottom,
            rgba(10, 12, 15, 0.5), /* Top color with 80% opacity */ rgba(28, 30, 38, 0.5), /* Middle color with 70% opacity */ rgba(14, 14, 14, 1) /* Bottom color with 60% opacity */
    );
    gap: 1vw;
    padding: 5vw 15vw;
    height: auto;
}

/* Left Sidebar */
.sidebar-profile {
    width: 21vw;
    background: linear-gradient(
            to bottom right,
            rgba(5, 5, 5, 0.8),
            rgba(20, 20, 20, 1)
    );
    border: 0.1px solid #212121;
    padding: 4vw 1vw 2vw 1vw;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.profile-side-links {
     background: linear-gradient(
            to bottom right,
            rgba(5, 5, 5, 0.8),
            rgba(20, 20, 20, 1)
    );
    border: 0.1px solid #212121;
}

.initials-profile {
    background: #00bcd4;
    color: white;
    font-weight: 500;
    font-size: 2rem;
    width: 5vw;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 2vh;
}

.sidebar-profile h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1vh 0 0.5vh 0;
}

.sidebar-profile p {
    font-size: 0.95rem;

}

.label-profile {
    font-size: 12px;
    /*background: #e0e0e0;*/
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 0 1vh 0;
}

.nav-section-profile {
    margin-top: 20px;
}

.nav-item-profile {
    background-color: #f1f4f9;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.nav-item-profile.active {
    background-color: #01a7c2;
    color: white;
}

/* Main Content */
.main-profile {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.card-profile {
    background: linear-gradient(
            to bottom right,
            rgba(5, 5, 5, 0.8),
            rgba(20, 20, 20, 1)
    );
    border: 0.1px solid #212121;
    padding: 2vw;
    padding-top: 2.5vw;

    border-radius: 8px;
    height: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.card-header-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;

}

.card-section-profile {
    display: flex;
    flex-direction: row;
    margin-top: 1vw;
    gap: 1vw;
}

.toggle-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid #212121;
    padding: 1vw;
    width: 28vw;
}

.toggle-box-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 7vw;
    height: 11vh;
    border-radius: 10px;
    border: 1px solid #212121;
    padding: 1vw;
}

.toggle-profile-card-21 {
    display: flex;
    flex-direction: column;

    border-radius: 12px;
    border: 1px solid #212121;
    padding: 1vw;
    width: 100%;
    max-width: 28vw;
    box-sizing: border-box;
}

.card-header-21 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1vh;
}

.switch-21 {
    position: relative;
    display: inline-block;
    width: 3vw; /* responsive width */
    min-width: 36px; /* prevents being too small */
    height: 24px;
}

.switch-21 input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-21 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider-21:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px; /* start position */
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch-21 input:checked + .slider-21 {
    background-color: #06b6d4;
}

.switch-21 input:checked + .slider-21:before {
    left: calc(100% - 21px); /* track width minus knob size and padding */
}

.card-subtext-21 {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    flex-direction: column;
}


.resume-file-profile {
    border: 0.1px solid #212121;
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.btn-profile {
    padding: 0.5vh;
    border: 1.5px solid #212121;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-profile:hover {
    background: #efefef;
    color: black;
}

.experience-entry-profile {
    margin-top: 16px;
}

.experience-entry-profile h4 {
    margin: 0 0 4px 0;
}

.experience-meta-profile {
    font-size: 13px;
    color: #e1e1e1;
    margin-bottom: 6px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7vw;
    margin-top: 1vw;
}

.skill {
    position: relative;
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #212121;
    font-size: 0.8rem;
    padding: 0.7vh 1.4vh;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill:hover {
    background: rgba(255, 255, 255, 0.07);
}

.remove-skill-btn {
  position: absolute;
  top: -0.7vh;
  right: -0.7vh;
  width: 1.2vw;
  height: 1.2vw;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.4s ease;
    display: none;
}

.remove-skill-btn:hover line {
  stroke: #ff4d4d;
}

.remove-skill-btn:hover circle {
  stroke: #ff4d4d;
}



.experience-desc-profile {
    font-size: 14px;
    color: #777;
}

.overlay-profile {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s ease;
}

.overlay-profile.active {
    opacity: 1;
    visibility: visible;
}

.slide-card-profile {
    position: fixed;
    top: 0;
    left: -70vw;
    width: 63vw;
    margin-top: 7vh;
    height: 93vh;
    overflow-y: auto;
    border-right: 1px solid #212121;
    background: linear-gradient(
            to bottom,
            rgba(10, 12, 15, 0.5), /* Top color with 80% opacity */ rgba(28, 30, 38, 0.5), /* Middle color with 70% opacity */ rgba(14, 14, 14, 1) /* Bottom color with 60% opacity */
    );
    padding: 1vh 1vw 0 1vw;

    transition: left 0.7s ease;
    z-index: 999;
}

.slide-card-profile.open {
    left: 0;
}

.btn-slide-profile {
    width: 18vw;
    padding: 1.5vh 1vw;
    border-radius: 12px;
    border: 1px solid #212121;
    cursor: pointer;
    font-weight: 500;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.5s ease;
}

.btn-slide-profile:hover {
    background: #efefef;
    color: black;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emoji {
    font-size: 20px;
}

.text-group .title {
    font-weight: 600;
    font-size: 16px;
}

.text-group .subtitle {
    font-weight: 400;
    font-size: 14px;
    color: #4b5563; /* subtle gray */
}

.btn-right {
    font-size: 18px;
}

.close-btn-profile {
    position: absolute;
    top: 1vh;
    right: 1.5vw;
    background: none;
    border: none;
    font-size: 1vw;
    cursor: pointer;
}

.content-personal-profile {
    padding: 20px;
}

.info-card-personal {
    background: linear-gradient(
            to bottom right,
            rgba(5, 5, 5, 0.8),
            rgba(5, 5, 5, 0.9),
            rgba(20, 20, 20, 0.8),
            rgba(20, 20, 20, 0.95)
    );
    border: 0.1px solid #212121;
    border-radius: 8px;
    padding: 3vh 1vw;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);

    margin: 1vw 0;
    opacity: 1;
    max-height: 60vh; /* Adjust as the bug not moving up and down */
    overflow-y: auto; /* Enable scrolling for the personal info card */
}

.card-header-personal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1vh;
}

.card-header-personal h3 {

    font-size: 1rem;
    font-weight: 700;
}

.edit-btn-personal {
    border-radius: 8px;
    cursor: pointer;
    padding: 0.8vh 0.8vh;
    border: 1.5px solid #212121;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.edit-btn-personal:hover {
    background: #efefef;
    color: black;
}

.edit-btn-profile {
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5vh 0.5vh;
    border: 1.5px solid #212121;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.edit-btn-profile:hover {
    background: #efefef;
    color: black;
}

.info-grid-personal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5vh;
    column-gap: 2vw;
}

.info-item-personal .label {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.2vh;
}

.info-item-personal .value {
    font-size: 1rem;
    font-weight: 500;
}

.slide-card-profile-right {
    position: fixed;
    top: 0;
    right: -70vw; /* Hidden initially */
    width: 57vw;
    margin-top: 7vh;
    height: 93vh;
    overflow-y: auto;
    border-left: 1px solid #212121;
    background: linear-gradient(
            to bottom,
            rgba(10, 12, 15, 0.5),
            rgba(28, 30, 38, 0.8),
            rgba(14, 14, 14, 1)
    );
    padding: 1vh 1vw 0 1vw;
    transition: right 0.7s ease;
    z-index: 999;
}

.slide-card-profile-right.open {
    right: 0;
}

.form-card-form {
    background: linear-gradient(
            to bottom right,
            rgba(5, 5, 5, 0.95),
            rgba(20, 20, 20, 0.9)
    );
    border: 0.1px solid #212121;
    border-radius: 8px;
    margin: 3vh 0;
    padding: 1vw 1vw;
}

.form-group-form {
    margin: 1vh 0.8vw;

}

.label-form {
    color: #ccc;
    font-size: 0.9rem;

}

.input-profile-form {
  width: 100%;
}

.input-profile-form-textarea {
  width: 100%;

    height: 15vh;
    resize: vertical;

}

.select-profile-form {
  background: transparent;
  padding: 1vh 1vw;
  font-size: 14px;
  border: 1px solid #212121;
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
  color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" width="18" height="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5H7z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1vw center;
  background-size: 14px;
}
.select-profile-form:disabled {
  color: #666;
  border: 1px dashed #444;
  background-color: #1a1a1a;
  background-image: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.inline-group-form {
    display: flex;
    gap: 16px;
}

.inline-group-form .form-group-form {
    flex: 1;
}

textarea {
    height: 100px;
    resize: vertical;
}

.checkbox-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-form label {
    margin: 0;
    font-weight: normal;
}

.form-buttons-form {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.form-buttons-form button {
    margin: 0 auto;
    padding: 0.8vh 2vw;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 0.1px solid #454545;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.buttons-shared-profile {
    margin: 0 auto;
    padding: 0.8vh 2vw;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 0.1px solid #454545;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}



.btn-save-form {
    background: rgba(255, 255, 255, 0.05);


}


.checkbox-form {
  margin: 1vh 1vw;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}

.custom-checkbox-input {
  display: none; /* hide native checkbox */
}

.custom-checkbox-box {
  width: 18px;
  height: 18px;
  border: 1px solid #212121;
  border-radius: 4px;
  background-color: transparent;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

/* Checkmark styling */
.custom-checkbox-input:checked + .custom-checkbox-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Checkbox background on checked */
.custom-checkbox-input:checked + .custom-checkbox-box {
  background-color: #06b6d4;
  border-color: #06b6d4;
}

.checkbox-text {
  font-size: 14px;
  color: white;
}

.form-header-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5vh;
  margin-bottom: 2vh;
  padding: 0 0.5vw;
}

.form-title-form {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.input_personal_card {

            background: transparent;
            padding: 1vh 1vw;
  font-size: 14px;
  border: 1px solid #212121;
  border-radius: 8px;
  box-sizing: border-box;
    width: 100%;
}

.value-input {
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.value-input.editing {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #454545;
}

.value-input:read-only {
    cursor: default;
}

.value-input:not(:read-only) {
    cursor: text;
}

.value-input:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.1);
}

.value-input[readonly] {
  border: none;
  background: transparent;
pointer-events: none;

}
.value-input.input_personal_card {
  all: unset;
  background: transparent;
            padding: 1vh 1vw;
  font-size: 14px;
  border: 1px solid #212121;
  border-radius: 8px;
  box-sizing: border-box;
    width: 100%;
}

/* Dropdown Profile Button (inside .nav-buttons) */

.dropdown-toggle {

  border-radius: 5px;

  transition: background 0.3s;
}





.dropdown-container.open .dropdown-menu {
  display: flex;
}

.dropdown-arrow{
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.dropdown-container.open .dropdown-arrow{
  transform: rotate(180deg);
}



.arrow-rotate {
  transform: rotate(180deg);
}
.dropdown-container {
            position: relative;
        }

        .dropdown-toggle {

            background: linear-gradient(to bottom right, #000000, #040409, #050509, #000007);
            border: #454545 solid 1px;
            color: #ffffff;
            width: 3.2vw;
            height: 3vw;
            padding: 0;
            font-size: 1.4rem;
            font-weight: 500;
        }

        .dropdown-menu {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 140%;
            right: 0;

            background: rgba(4, 4, 9, 0.2);
            border-radius: 4px;
            border: 1px solid #212121;
            min-width: 14vw;
            z-index: 999;
            transition: all 0.5s ease;
        }

        .dropdown-menu a {
            padding: 1vh 1vw;
            font-size: 0.9rem;
            text-decoration: none;
            font-weight: 400;
            display: block;
            color: #a1a1a1;
            transition: all 0.2s ease;

        }

        .dropdown-menu a:hover {
            font-weight: 550;
            transform: scale(1.01);
            color: white;
        }