/* VISO HTML <BODY> ELEMENTO STILIAI */         
* {
    box-sizing: border-box; /* This is essential for alignment */
}

body {
    background-color: #344966;
    font-family: "Century Gothic";
}


/* --- HEADER AND CONTROL STYLES --- */

/* Replaced the inline style on the main header div */
#header-controls-container {
    margin: auto;
    width: 950px;
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

/* Style for the logo image (extracted from inline style) */
.header-logo {
    margin-right: 10px;
}

/* Square Button styles (common class) */
.button.square {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    /* Centering the icon */
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none; /* Added for completeness */
    cursor: pointer; /* Added for completeness */
}

/* Icon sizing (extracted from inline style) */
.button.square .material-icons {
    font-size: 36px;
}

/* Common hover style */
.button:hover {
    background: lightgrey;
    transform: translateY(-2px);
    transition: background 0.1s, transform 0.1s; /* Added for completeness */
}

/* Text Button styles */
.button.text {
    background: white;
    color: black;
    border-radius: 5px;
    padding: 8px 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border: none; /* Added for completeness */
    cursor: pointer; /* Added for completeness */
}

/* --- SEQUENCER CONTAINERS --- */

/* Replaced the inline style on the whole-sequencer-container div */
#whole-sequencer-container {
    display:flex;
    flex-direction:row;
    justify-content:center;
    margin-top: 20px !important;
    height: 550px;
    overflow-y:auto;
    width: 1070px;
    margin: auto;
    border-radius: 10px 0px 0px 10px;
}

/* Replaced the inline style on the labels div */
.sequencer-labels-column {
    display:flex;
    flex-direction:column;
    width: 170px;
    background:#202020;
    color:#eee;
    font-family:Century Gothic;
    border-radius:10px 0px 0px 10px;
}

/* Replaced the inline style on the sequencer-container div */
.sequencer-timeline-container {
    width:900px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:10px;
    position: relative;
}

/* Replaced the inline style on the sequencer div */
.sequencer-timeline {
    width:10000px;
    background:#111;
    position:relative;
}

/* --- OTHER UTILITY STYLES --- */

.text-button {
    background-color: white;
    color: black;
    border-radius: 18px;
    padding: 8px 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.tempo-labelL {
    color: #f0f0f0;
    font-family: 'Century Gothic';
    font-weight: bold;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 20px;
    margin-left: 12px;
    margin-right: -6px;
    margin-bottom: 6px;
}
                                
.tempo-labelR {
    color: #f0f0f0;
    font-family: 'Century Gothic';
    font-weight: bold;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 20px;
    margin-left: 0px;
    margin-right: 12px;
    margin-bottom: 6px;
}

.tempo-input {
    background-color: white;
    border-radius: 8px;
    padding: 6px 10px;
    max-width: 70px;
    max-height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: black;
    margin-left: 5px;
}

/* PLAYHEAD STILIAI (TA VERTIKALI GROJIMO LINIJA) */
#playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e6aace;
    pointer-events: none;
    transform: translateX(0px);
    z-index: 120;  /* turi būti virš blokų, ne po jais */
}

/* TAKTO LINIJŲ STILIAI */
.barLine {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
}
                
/* NATŲ BLOKELIO STILIAI */
.noteBlock {
    position: absolute;
    height: 80px;
    background: #2ecc71;
    border: 1px solid #1d8046;
    display: block;
    border-radius: 4px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    overflow: hidden;
    z-index: 100;       /* kad natų blokas būtų virš takto linijų, o ne po jomis */
}

/* NATŲ BLOKELIO "RANKENOS" (viršuje) STILIAI */
.blockHandle {
    width: 100%;
    height: 12px;
    background: #27ae60;
    cursor: move;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    z-index: 110;       /* šiek tiek aukštesnis už parent elemento noteBlock, kad neužsistotų */
}

/* NATŲ BLOKO LABELŲ ELEMENTO (jame tik blockDate, kolkas) STILIAI */
.blockLabels {
    height: 66px;       /* Kad užimtų likusį noteBlock aukštį (80 - 12 - (kraštai) = 66) */
    z-index: 110;       /* šiek tiek aukštesnis už parent elemento noteBlock, kad neužsistotų */
}

/* NATŲ BLOKO DATOS (TEKSTAS DIV'E) STILIAI */
.blockDate {
    color:#ffffff9d;
    font-size: 10px;
    padding: 2px;
    pointer-events: none;
    z-index: 110;       /* šiek tiek aukštesnis už parent elemento noteBlock, kad neužsistotų */
}

/* TRACK 1 LABEL LANGELIO STILIAI (kad apvalint jo top-left kampą) */
#track-1-label {
    border-radius: 10px 0px 0px 0px;
}
#track-1-box {
    border-radius: 10px 0px 0px 0px;
}

/* --- SCROLLBAR STYLES (for WebKit browsers like Chrome/Safari) --- */

#sequencer-container::-webkit-scrollbar {
    border-radius: 0;
}

#whole-sequencer-container::-webkit-scrollbar {
    border-radius: 0px 10px 10px 0px;
}

/* SCROLLBARO RUOŽO STILIAI */ 		
::-webkit-scrollbar {
    background: #202020;
    width: 15px;    /* apibrėžiam, kad bent webkit browseriuos scrollbar plotis būtų 15px */
    height: 15px;   /* tas pats, tik aukščiui (horizontaliem scrollbaram) */
}

/* SCROLLBARO "RANKENOS" STILIAI */ 		
::-webkit-scrollbar-thumb {
    background: #e6aace;
    border-radius: 10px;
    border: 3px solid #202020;
}

/* SCROLLBARO "RANKENOS" STILIAI, KAI ANT JOS LAIKOMAS CURSORIUS */ 		
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;	
}

/* TRACKŲ PLAY IR VOLUME MYGTUKŲ BENDRI STILIAI */
.parametersVolumeButtons {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6aace;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer; /* Added for completeness */
}

/* TRACKŲ INSTRUMENTO PASIRINKIMO DROPDOWN-LIST MYGTUKO STILIAI */
.selectInstrument {
    background-color: white;
    color: black;
    border-radius: 10px;
    padding: 4px;
}
