/* #drawer  */
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

body {
    margin: 0;
    display: flex;
    justify-content: center;
    /* padding-top: 70px; */
    font-family: Roboto;
}

#drawer {
    font-family: Roboto, Noto, sans-serif;
    min-width: 230px;
    max-width: 230px;
    padding: 10px;
    background-color: #f8f9fa;
    height: 638px;
    overflow-y: auto;
    grid-area: drawer;
    grid-column-start: 1;
    transition: all 0.4s ease-in-out;
}

#drawer.collapsed {
    min-width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

#drawer ol {
    list-style: none;
    margin: 0px auto !important;
    padding: 0;
}

#drawer ol li {
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 6px 0;
    padding: 3px 10px;
    min-height: 48px;
    border-radius: 5px;
    border: 1px solid rgb(218, 220, 224);
    counter-increment: li-count;
    opacity: 0.7;
    line-height: 20px;
    font-stretch: 100%;
}

#drawer ol li a .step {
    display: flex;
    justify-content: center;
    align-items: center;
}

#drawer ol li a .step::before {
    content: counter(li-count);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background-color: gray;
    margin-right: 8px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.right-container {
    /* overflow: hidden; */
    width: 100%;
    display: flex;
}

.active {
    box-shadow: -1px 2px 9px 0px rgb(0 0 0 / 57%);
    font-weight: bold !important;
    opacity: 1 !important;
    transition: 0.4s;
    animation: blink 0.5s;
}

@keyframes blink {
    from {
        background-color: #9f91cc;
        transform: translateY(20px);
    }

    to {
        background: white;
    }
}

.active .step::before {
    background-color: #2b80ee !important;
}

.completed {
    opacity: 1 !important;
    font-weight: 400;
}

.completed .step::before {
    background-color: #2b80ee !important;
}

/* Other */
.main-container {
    display: flex;
    /* gap: 25px; */
    /* display: grid; */
    /* grid-template-areas: "drawer progressBar" */
    /* "drawer mainWindow"; */
}

.main-window {
    background-color: #f1ece3;
    position: relative;
    grid-area: mainWindow;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: calc(100vh - 78px - 60px); */
    min-height: calc(404px + 200px);
    width: 950px;
    border: 2px solid;
    overflow: hidden;
}

.main-window .anime-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 50px;
    color: white;
    background-color: #3D246C;
    z-index: 6000;
    position: relative;
    user-select: none;
}

.header-controls {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    gap: 2px;
    z-index: 501;
    transition: background-color 0.3s;
}

.header-controls:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.header-controls .btn {
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    margin: 0 !important;
    margin-right: 1px !important;
    height: 30px !important;
    width: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    color: white;
}

.header-controls .btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.header-btn {
    color: white;
}

.header-btn svg {
    height: 20px;
    width: 20px;
}

.header-controls .divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.icon-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.speed-icon {
  width: 22px;
  height: 22px;
  color: white;
  flex-shrink: 0;
}

.speed-badge {
  position: absolute;
  bottom: 0px;
  font-size: 9px;
  font-weight: bold;
  color: #9f91cc;
  background: white;
  padding: 0px 3px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  line-height: normal;
}

.speed-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

#speed-slider {
  width: 0;
  height: 4px;
  cursor: pointer;
  accent-color: #9f91cc;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}

.speed-control:hover {
  gap: 2px;
}

.speed-control:hover #speed-slider {
  width: 80px;
  opacity: 1;
  pointer-events: auto;
  margin-left: 4px;
}

.drawer-toggle {
    position: absolute;
    left: 12px;
    width: 38px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.drawer-toggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.drawer-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.drawer-toggle:hover span {
    background-color: white;
    /* Keep white on hover to match toolbar style */
}

/* Animate bars to X when open */
.drawer-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.drawer-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.drawer-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


.anime-footer .btn-back {
    visibility: hidden;
}

.main-window .anime-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* height: 70px; */
    height: 55px;
    color: white;
    background-color: #5C4B99;
}

.right-box {
    display: flex;
    margin-left: 1%;
    flex-direction: column;
    overflow: hiddenw1;
}

.anime-footer .steps-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anime-footer .steps-subtitle .user-name {
    font-size: 1.05rem;
    font-weight: bold;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
}

.anime-footer .steps-subtitle .subtitle {
    font-size: 1.1rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
}

/* Steps Title description */
.step-heading {
    display: none;
    gap: 10px;
    margin-left: 20px;
    align-items: center;
}

.step-heading .step-title {
    background-color: #9F91CC;
    border-radius: 20px;
    font-weight: bold;
    padding: 10px 15px;
}

.step-heading .step-description {
    font-weight: bold;
}

.anime-main .measurements {
    position: absolute;
    z-index: 300;
    /* border: 1px solid; */
    display: none;
}

.anime-main .measurements .cell {
    border: 1px solid;
}

/* temp text */
.anime-main .temp-text,
.temp-text2 {
    position: absolute;
    background-color: white;
    padding: 5px 10px;
    display: none;
}

/* Project Welcome */
.welcome-box {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
}

.welcome-box .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    gap: 4px;
}

.welcome-box .iit-logo {
    height: 140px;
    width: 200px;
}

.welcome-box .prof-img {
    /* margin-top: 20px; */
    height: 120px;
    width: 100px;
}

.welcome-box .title span {
    font-size: 1.5rem;
}

.welcome-box .title span:nth-child(2n - 1) {
    color: red
}

.welcome-box .title span:nth-child(2n) {
    font-weight: bold;
    color: black;
    font-family: Roboto;
}

.welcome-box .prof-description {
    font-size: 0.8rem;
    transform: translate(40px, 15px);
    display: flex;
    flex-direction: column;
    align-items: end;
    padding: 5px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border: 2px solid;
    border-radius: 5px;
    align-self: end;
}

/* Mute Btn */
.btn-mute {
    z-index: 500;
    margin: 0 !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Video box */
.video-box {
    position: absolute;
    display: none;
    /* display: flex; */
    flex-direction: column;
    border: 2px solid;
    box-shadow: 5px 5px 10px 2px black;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: fit-content;
    height: fit-content;
    border-radius: 3px;
    overflow: hidden;
}

.video-box .video {
    /* height: 150px!important; */
}

.video-box .title {
    background-color: purple;
    font-size: 1.4rem;
    margin: 0;
    text-align: center;
    color: white;
    padding: 3px;
}

.video-box .controls {
    display: flex;
    background-color: purple;
    align-items: center;
    justify-content: space-around;
}

.video-box .controls img {
    height: 26px;

}

.video-box .controls .restart {
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Temp texts/titles */
.temp {
    display: none;
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    text-align: justify;
}


/* Content Adder Boxc */
.content-adder-box {
    padding: 10px 5px;
    /* display: flex; */
    display: none;
    flex-direction: column;
    gap: 5px;
    height: fit-content;
    width: fit-content;
    z-index: 10;
    border-radius: 10px;
    background-color: #5c4b99;
    box-shadow: 3px 3px 5px;
    position: absolute;
    right: 20px;
    top: 0;
}



/* for transparent box */
.transparent-box {
    display: none;
    height: 92%;
    bottom: 0;
    width: 950px;
    background-color: #00000040;
    z-index: 1100;
    position: absolute;

}

/* ! Next Btn Deactive class */
.btn-deactive {
    transition: 1s;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    background-color: rgb(97, 97, 97) !important;
    box-shadow: none !important;
    color: black;
}


.btn-deactive:hover {
    box-shadow: none !important;
}

.btn-deactive:active {
    opacity: none !important;
    transform: none !important;
}

.transparent-box {
    display: none;
    height: 92%;
    bottom: 0;
    width: 950px;
    background-color: #00000040;
    z-index: 1100;
    position: absolute;

}

/* ! Next Btn Deactive class */
.btn-deactive {
    transition: 1s;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    background-color: rgb(97, 97, 97) !important;
    box-shadow: none !important;
    color: black;
}


.btn-deactive:hover {
    box-shadow: none !important;
}

.btn-deactive:active {
    opacity: none !important;
    transform: none !important;
}