.voice-visualizer__buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    row-gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px
}

.voice-visualizer__btn-center {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #c5c5c5;
    outline: none;
    cursor: pointer;
    transition: border-color .3s, background-color .3s
}

.voice-visualizer__btn-center:disabled {
    opacity: .85;
    cursor: default
}

.voice-visualizer__btn-center:hover {
    background-color: #eaeaea;
    border: 4px solid #9f9f9f
}

.voice-visualizer__btn-center>img {
    width: auto;
    height: 50%;
    max-height: 30px
}

.voice-visualizer__btn-center.voice-visualizer__btn-center-pause {
    background-color: #ff3030
}

.voice-visualizer__btn-center.voice-visualizer__btn-center-pause:hover {
    background-color: #ff4f4f
}

.voice-visualizer__btn-center.voice-visualizer__btn-center-pause>img {
    height: 50%;
    max-height: 16px
}

.voice-visualizer__btn-center.voice-visualizer__btn-center--border-transparent {
    border-color: transparent
}

.voice-visualizer__btn-center.voice-visualizer__btn-center--border-transparent:hover {
    background-color: #fff
}

.voice-visualizer__btn-left {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ff3030;
    border: 4px solid #c5c5c5;
    outline: none;
    cursor: pointer;
    transition: border-color .3s, background-color .3s, opacity .3s
}

.voice-visualizer__btn-container {
    min-width: 100px;
    display: flex;
    justify-content: flex-end
}

.voice-visualizer__btn-left:hover {
    background-color: #ff4f4f
}

.voice-visualizer__btn-left:disabled {
    opacity: .6;
    background-color: #ff3030;
    cursor: default
}

.voice-visualizer__btn-left.voice-visualizer__btn-left-microphone {
    background-color: #fff
}

.voice-visualizer__btn-left.voice-visualizer__btn-left-microphone>img {
    width: auto;
    height: 50%;
    max-height: 30px
}

.voice-visualizer__btn-left>img {
    width: auto;
    height: 50%;
    max-height: 16px
}

.voice-visualizer__btn-left:hover {
    border: 4px solid #9f9f9f
}

.voice-visualizer__btn {
    box-sizing: border-box;
    min-width: 100px;
    min-height: 60px;
    padding: 5px 20px;
    border-radius: 40px;
    font-size: 15px;
    background-color: #f0f0f0;
    transition: background-color .3s, opacity .3s
}

.voice-visualizer__btn:disabled {
    opacity: .8;
    background-color: #f0f0f0;
    cursor: default
}

.voice-visualizer__btn:hover {
    background-color: #bebebe
}

.voice-visualizer__canvas-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    overflow: hidden
}

.voice-visualizer__canvas-container canvas {
    display: block
}

.voice-visualizer__canvas-microphone-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: 12%;
    min-width: 24px;
    height: 50%;
    max-height: 100px;
    background-color: transparent;
    border: none;
    outline: none;
    transform: translate(-50%, -50%)
}

.voice-visualizer__canvas-microphone-icon {
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform .3s
}

.voice-visualizer__canvas-microphone-btn:hover .voice-visualizer__canvas-microphone-icon {
    transform: scale(1.03)
}

.voice-visualizer__canvas-audio-wave-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: 40%;
    height: 40%;
    max-height: 100px;
    transform: translate(-118%, -50%) scale(-1)
}

.voice-visualizer__canvas-audio-wave-icon2 {
    transform: translate(18%, -50%)
}

.voice-visualizer__canvas-audio-processing {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%)
}

.voice-visualizer__progress-indicator-hovered {
    position: absolute;
    top: 0;
    pointer-events: none;
    height: 100%;
    width: 1px;
    background-color: #85858599
}

.voice-visualizer__progress-indicator-hovered-time {
    position: absolute;
    top: 3%;
    left: 1px;
    width: fit-content;
    margin: 0;
    padding: 0 7px;
    opacity: .8;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
    background-color: #575757;
    text-align: left
}

.voice-visualizer__progress-indicator-hovered-time.voice-visualizer__progress-indicator-hovered-time-left {
    left: unset;
    right: 1px;
    border-radius: 4px 0 0 4px
}

.voice-visualizer__progress-indicator {
    position: absolute;
    top: 0;
    pointer-events: none;
    height: 100%;
    width: 1px;
    background-color: #efefef
}

.voice-visualizer__progress-indicator-time {
    position: absolute;
    top: 3%;
    left: 1px;
    width: fit-content;
    box-sizing: border-box;
    min-width: 37px;
    margin: 0;
    padding: 0 7px;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
    text-align: left;
    color: #000;
    font-weight: 500;
    background-color: #efefef
}

.voice-visualizer__progress-indicator-time.voice-visualizer__progress-indicator-time-left {
    left: unset;
    right: 1px;
    border-radius: 4px 0 0 4px
}

.voice-visualizer__audio-info-container {
    box-sizing: border-box;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px
}

.voice-visualizer__audio-info-time {
    margin: 15px 0;
    min-width: 38px;
    text-align: left
}

.voice-visualizer__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 4px solid #c5c5c5;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden
}

.relative {
    position: relative
}

.spinner__wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center
}

.spinner {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(197, 197, 197, .5);
    border-radius: 50%;
    border-top-color: #b7b7b7;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@-webkit-keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.result-box {
    width: 90%;
    padding: 15px;
    margin: 20px auto;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    text-align: left;
    max-height: 400px;  /* Adjust this height as needed */
    overflow-y: auto;
}

.result-box .title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #363636;
}

.result-box .text {
    line-height: 1.6;
    color: #555;
}

/* Google search result box */
#google_results_list {
max-height: 400px;  /* Adjust this height as needed */
overflow-y: auto;   /* Enables scrolling */
}

.sidebar {
    width: 260px; /* Default expanded width */
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px; /* Collapsed width */
}

#custom-splitter {
    width: calc(100% - 260px); /* Default content width */
    transition: width 0.3s ease;
}

.sidebar.collapsed ~ #custom-splitter {
    width: calc(100% - 60px); /* Adjust content width when sidebar is collapsed */
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px; /* Adjusted width for collapsed state */
    height: 100%;
    background-color: #fcfcfc;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.toggle-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
}
/* button style for overlayed */
.overlay-btn {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 768px) {



    .d_flex.gap_2.justify_space-between.items_flex-start.pr_2.pl_5.pt_2.pb_2.bg_white.rounded_lg.border-w_1px.border-style_solid.w_100\%.ml_auto.mr_auto.mb_5.mt_2.max-h_400px {
        position: fixed;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        width: 90%;
        max-width: none;
        z-index: 1000;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }
    /* Full-width adjustments for mobile */
    .result-box {
        width: 100%;
        padding: 10px;
        margin: 10px auto;
        max-height: 300px; /* Adjust as needed */
        overflow-y: auto;  /* Allow scrolling if content exceeds height */
    }

    /* Adjusting Google search results container */
    #google_results {
        width: 100%;
        padding-left: 0;
        margin-top: 10px;
        margin-bottom: 40%;
    }

    /* Full-width textarea and submit button for chatbot */
    .d_flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    textarea#messageTextArea {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        margin-bottom: 10px;
        min-height: 60px;
    }

    button#submitBtn {
        width: 100%;
        margin-top: 10px;
    }

    /* Ensure sidebar collapses correctly */
    .sidebar {
        width: 0; /* Completely hide the sidebar on mobile */
        display: none;
    }
    /* Ensure chatbot area remains visible */
    .result-box {
        margin-bottom: 20px;
    }
}

#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: black;

    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;
}

/* Fancy blur effect */
#nprogress .peg {
    display: block;
    position: absolute;
    right: 0px;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px black, 0 0 5px black;
    opacity: 1;

    -webkit-transform: rotate(3deg) translate(0px, -4px);
    -ms-transform: rotate(3deg) translate(0px, -4px);
    transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
    display: block;
    position: fixed;
    z-index: 1031;
    top: 15px;
    right: 15px;

    /* fixes because of react-voice-visualizer */
    height: 0 !important;
    width: 18px !important;
    border: none;
    border-radius: unset;
    animation: none !important;
    -webkit-animation: none !important;
}

#nprogress .spinner-icon {
    width: 18px;
    height: 18px;
    box-sizing: border-box;

    border: solid 2px transparent;
    border-top-color: black;
    border-left-color: black;
    border-radius: 50%;

    -webkit-animation: nprogress-spinner 400ms linear infinite;
    animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
    overflow: hidden;
    position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
    position: absolute;
}

@-webkit-keyframes nprogress-spinner {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes nprogress-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.sidebar {
    width: 260px; /* Default expanded width */
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px; /* Collapsed width */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px; /* Adjusted width for collapsed state */
    height: 100%;
    background-color: white;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.toggle-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
}
/* 덮는 레이어에 있는 버튼 스타일 */
.overlay-btn {
    position: absolute;
    top: 4%; /* 상단에 위치 */
    left: 50%; /* 가로 가운데 정렬 */
    transform: translateX(-50%);
}
