* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-100);
}

.line{
    height: .5rem;
    width: 100%;
    border-bottom: 1px solid var(--background-300);
    margin-bottom: 1rem;
}

header {
    background: var(--background-200);
    color: var(--font-300);
    padding: .5rem 2rem .5rem 2rem;
    display: grid; 
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: fixed;
    gap: .5rem;
    top: 0;
    left: 0;
    width: 100vw;
    height: 4rem;
    border-bottom: 1px solid var(--background-300);
}

header .user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-300);
    cursor: pointer;
    position: relative;

    background-image: url("../assets/user/43.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;


}

#userOptions{
    display: flex;
    flex-direction: column;
    gap: .5rem;
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--background-200);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: .5rem;
    color: var(--font-200);
    z-index: 80;
}

.sidebar.active {
    right: 0;
}

#nav {
    background: var(--background-200);
    color: lightgray;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    border-top: 1px solid var(--background-300);
    height: 4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.sidebar .close-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

#content {
    margin-top: 4rem;
    height: calc(100vh - 8rem);
    background-color: var(--background-100);
    color: var(--font-300);
    overflow-y: scroll;

}

#statusIndicator {
    position: fixed;
    top: .5rem;
    right: .5rem;
    font-weight: bold;
    background-color: var(--success);
    z-index: 1000;
    transition: background-color 0.3s ease;
    height: .5rem;
    width: .5rem;
    border-radius: 50%;
}

#statusIndicator.offline {
    background-color: var(--error);
}



.nav_button{
    height: 3rem;
    width: 3rem;
    border-radius: .25rem;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
}


.side_bar_icon{
    height: 2rem;
    width: 2rem;
    border-radius: .25rem;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
}



.nav_button_active{
    background-color: var(--background-300);
}



input{
    background-color: var(--background-100);
    border: solid 1px var(--background-300);
    border-radius: .25rem;
    width: 100%;
    height: 2rem;
    outline: none;
    color: var(--font-300);
    padding: .25rem;
}

.side_button{
    background-color: var(--background-300);
    border-radius: .25rem;
    padding: .125rem;
    width: 100%;
    display: grid;
    grid-template-columns: 2rem 1fr;
    justify-content: center;
    align-items: center;
    gap: 1rem
}






#loginFormContainer{
    border: solid 1px var(--background-300);
    background-color: var(--background-300);
    border-radius: .25rem;
    padding: .5rem;
}



.pdf_container{
    width: 100%;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}





.pdf_description{
    padding: .5rem;
    font-size: 10px;
}


.sheet_layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile default: 2 columns */
    gap: 0.5rem;
    margin: 1rem;
}

@media (min-width: 600px) {
    .sheet_layout {
        grid-template-columns: repeat(3, 1fr); /* Tablet: 3 columns */
    }
}

@media (min-width: 1024px) {
    .sheet_layout {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
    }
}



.pdf_card{
    max-width: 100%;
}











.pdf_preview{
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: .25rem;
    overflow: hidden;
    position: relative;
}




.search_filter{
    height: fit-content;
    border-radius: 10rem;
    background-color: var(--background-200);
    padding: .25rem 1rem .25rem 1rem;
    width: fit-content;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
    color: white;
}







.draggable_panel{
    position: absolute;
    top: 4rem;
    left: 0;
    width: 300px;
    height: fit-content;

    background-color: var(--background-200);
    border: solid 1px var(--background-300);
    border-radius: .25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    z-index: 1000;
    overflow: hidden;
}

.draggable_panel_header{
    background-color: var(--action);
    color: white;
    padding: .25rem;
    height:fit-content;
    justify-content: center;
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
}

.panel_icon{
    
    width: 2rem; 
    height: 2rem;
    background-position: center;
    background-size: cover;
}


.metronome_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--font-300);
    gap: .5rem;
}










/* Entire scrollbar */
::-webkit-scrollbar {
    width: .5rem; /* Width of the scrollbar */
    height: .5rem; /* Height of the scrollbar (for horizontal scroll) */
}

/* Track (background of the scrollbar) */
::-webkit-scrollbar-track {
    background: white; /* Light gray background */
    border-radius: .25rem; /* Rounded edges */
}

/* Thumb (scroll handle) */
::-webkit-scrollbar-thumb {
    background: var(--action); /* Green scroll handle */
    border-radius: .25rem; /* Rounded edges */ /* Adds padding around the thumb */
}

/* Thumb hover effect */
::-webkit-scrollbar-thumb:hover {
    background: var(--action); /* Darker green on hover */
}

/* Corner (intersection of vertical and horizontal scrollbars) */
::-webkit-scrollbar-corner {
    background: var(--background-100); /* Match the track background */
}

/* Firefox scrollbar styling (fallback) */
html {
    scrollbar-width: thin; /* Use a thin scrollbar */
    scrollbar-color: var(--action) var(--background-100); /* Thumb and track colors */
}

/* Edge case styling for overflow containers */
.custom-scrollbar {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--action) var(--background-100);
}














#logoutButton{
    margin-top: 1rem;
    background-color: var(--action);
    border-radius: .25rem;
    padding: .125rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    color: var(--font-300);
    padding: .5rem;
    height: 2rem;
    text-align: center;
}

.user_image{

    background-color: var(--background-300);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    position: relative;

    background-image: url("../assets/user/max.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.user_info{
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#instrument_icon_layout{
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    display: flex;
    flex-direction: row;
    height: 1.5rem;
    width: fit-content;
}


.instrument_icon{
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    background-color: white;
    background-position: center;
    background-size:cover;
    margin-left: -0.25rem;
}



#search_bar{
    border: solid var(--background-300) 1px;
    width: calc(100% - 2rem);
    background-color: var(--background-200);
    padding: .5rem;
    margin: 1rem;
    height: 2rem;
    border-radius: .25rem;

}



#pdf_viewer{
    max-width: 100vw;
    max-height: calc(100vh - 8rem);
    height: 100%;
    aspect-ratio: 1/1.414;
}


.pdf_viewer_button_layout{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: var(--font-200);
    align-items: center;
    max-width: 100vw;;
}





#pdf_control_button{
    display: flex;
    flex-direction: row;
    gap: 2rem;
}


#sheet_viewer{
    display: none;
    justify-content: center;

    grid-template-rows: 4rem 1fr 4rem;
    align-items: center;
    display: none;
    z-index: 50;
    position: fixed;
    top: 4rem;
    left: 0;
    height: calc(100vh - 4rem);
    max-height: calc(100vh - 4rem);
    max-width: 100vw;
    width: 100vw;
    overflow: hidden;
    background-color: var(--background-300);
}



.search_filter_layout{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 1rem 0 1rem;
    gap: .5rem;
}

.pdfInstrument{
    width: 2rem;
    height: 2rem;
    background-color: black;
    border-radius: .25rem;
    position: absolute;
    top: .25rem;
    left: .25rem;

}

.pdfVoice {
    width: 1.5rem;
    height: 1.5rem;
    background-color: black;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: black; /* Adjusted for better visibility against black background */
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
}

.pdf_voice_layout{
    display: flex;
    flex-direction: row;
    position: absolute;
    top: .25rem;
    left: 3rem;
    gap: .125rem;
}

#session_popup{
    position: absolute;
    top: 4rem;
    height: calc(100vh - 8rem);
    width: 100vw;
    display: none;
    z-index: 50;
    background-color: var(--background-200);

    display: none;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    padding: 1rem;

}



.leave_session_button{
    width: 2rem;
    height: 2rem;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    border: solid white 1px;
    border-radius: 0.125rem;
}



.session_icon{
    width: 2rem;
    height: 2rem;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  

}


#indicator_div{
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.session_indicator_layout{
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    background-color: var(--error);
    color: white;
    font-size: 10px;
    width: 100%;
    gap: 1rem;
    height: fit-content;
    justify-content: center;
    align-items: center;
    border-radius: .25rem;
    padding: .25rem;



}






.toolbarButton{
    width: 3rem;
    height: 3rem;
    border: none;
    background-color: var(--background-100);
    border: solid var(--background-300) 1px;
    border-radius: .25rem;
}






.practicePDFFlag{

    background-image: url('../assets/svg/file_pdf.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;


    position: relative;
    width: 3rem;
    height: 3rem;
    border: none;
    background-color: var(--pastel_orange);
    border-radius: 0 .25rem .25rem 0;
    margin-bottom: .5rem;
}
.practicePDFFlag::before{
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 0.5rem;
    height: 3rem;
    background-color: var(--pastel_orange);
}



.practicePauseFlag{

    background-image: url('../assets/svg/pause_icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;


    position: relative;
    width: 3rem;
    height: 3rem;
    border: none;
    background-color: var(--pastel_blue);
    border-radius: 0 .25rem .25rem 0;
    margin-bottom: .5rem;
}
.practicePauseFlag::before{
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 0.5rem;
    height: 3rem;
    background-color: var(--pastel_blue);
}












.bottomToolbar{
    position: fixed;
    bottom: 4.5rem;

    left: 50%;
    transform: translateX(-50%);

    border: solid var(--background-300) 1px;

    background-color: var(--background-200);
    height: 4rem;
    width: fit-content;

    z-index: 10000;
    border-radius: 1.5rem;

        display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem 0 1.5rem;

    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* x-offset, y-offset, blur-radius, color */
}




.practiceSessionContent{
    display: flex;
    flex-direction: column;
    gap:.5rem;
    padding: .5rem;
}

.practiceSessionCardPreview{
    width: 100%;
    height: 100%;
    border: solid var(--background-300) 1px;
    background-color: var(--background-100);
    width: fit-content;

}

/* Individual practice session cards */
.practiceSessionCard {
    background-color: var(--background-200);
    border-radius: 10px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.1s ease;

    display: grid;
    grid-template-columns: 1fr auto;
}


/* Textarea inside the card */
.practiceSessionCard textarea {
    width: 100%;
    resize: vertical;
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-family: inherit;
}

/* Button container inside the card */
.practiceSessionCard .card-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Buttons inside the card */
.practiceSessionCard .card-buttons button {
    padding: 5px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #888;
    background-color: #eee;
    transition: background 0.2s;
}

.practiceSessionCard .card-buttons button:hover {
    background-color: #ddd;
}