/* 
    Admin Dashboard
    Written by Nikola Milinkovic
 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
}
HTML5 display-role reset for older browsers 
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
 display: block;
}
body {
 line-height: 1;
}
ol, ul {
 list-style: none;
}
blockquote, q {
 quotes: none;
}
blockquotebefore, blockquoteafter,
qbefore, qafter {
 content: '';
 content: none;
}
table {
 border-collapse: collapse;
 border-spacing: 0;
}
/* END OF RESET FILE */

:root{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    --border-color: #353e4b;
    --header-left-margin: 1rem;
    --header-right-margin: 1rem;
    --header-combined-margin-values: calc(var(--header-left-margin) + var(--header-right-margin));
    --main-background-color: #252734;
    --nav-background-color: #1F2128;
    --nav-hover-color: #353946;
    --nav-text-color: #728197;
    --text-color-white: #d4d4d4;
    --nav-bar-link-size: clamp(12px, 4vw, 20px);
    --nav-bar-label-size: clamp(10px, 2.5vw, 16px);
    --hover-color: #695BD1;
    --card-background-color: #232631;
    /* --svg-color: #606F86; */
    --logo-size: clamp(26px, 5vw, 34px);
    --logo-text-size: clamp(26px, 6vw, 46px);
    --analytics-label-size: clamp(12px, 4vw, 16px);
    --analytics-text-size: clamp(16px, 4vw, 18px);
    --analytics-input-text-size: clamp(16px, 4vw, 18px);

}
body{
    background-color: var(--main-background-color);
}

header{
    height: 100%; /* Full-height: remove this if you want "auto" height */
    width: 15vw; /* Set the width of the sidebar */
    position: fixed; /* Fixed Sidebar (stay in place on scroll) */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: var(--nav-background-color); /* Black */
    overflow-x: hidden; /* Disable horizontal scroll */
    min-width: 230px;
    border-right: 1px solid var(--border-color);
}
li.nav-element a{
    font-size: var(--nav-bar-link-size);
    display: flex;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--nav-text-color);
}
a:hover{
    background-color: var(--nav-hover-color);
    color: var(--text-color-white) !important;
}
#nav-link-label{
    padding: 0rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color-white);
    font-size: var(--nav-bar-label-size);
}
#content-container{
    margin-left: clamp(210px,15vw,15vw);
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 0.3fr 1fr 1fr;
    row-gap: 4rem;
}
#content-section{
    color: var(--text-color-white);
    display: grid;
    gap: 0rem 4rem;
    padding: 0rem 4rem;
    margin-top: 3rem;
    max-height: 200px;
}
#hero-section{
    display: flex;
    margin-left: clamp(210px,15vw,15vw);
    color: var(--text-color-white);
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--border-color);
}
#hero-icons{
    display: flex;
    margin-left: auto;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}
/* Search icon */
.material-symbols-outlined {
    user-select: none;
    cursor: pointer;
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}
.material-symbols-outlined:hover{
    animation: hoverHeroIconsScale 0.2s forwards;
}
#notification-icon{
    border-right: 1px solid var(--border-color);
}
#notification-icon:hover{
    animation: hoverHeroIconsScale 0.2s forwards;
}
#profile-container{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 2rem;
}
#profile-image{
    height: 60px;
    width: 60px;
    border-radius: 50%;
    outline: 3px solid var(--border-color);
    cursor: pointer;
}
#profile-image:hover{
    animation: hoverProfileImg 0.2s forwards;
}
#hero-text{
    font-size: 48px;
    margin-right: 1.5rem;
}
#card-section{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}
div.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--card-background-color);
    min-height: 80px;
    max-height: 80px;
    min-width: 80px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    user-select: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--nav-text-color);
}
div.card.active {
    border: 1px solid var(--hover-color);
    color: var(--hover-color) !important;
}
div.card-svg.active{
    filter: invert(35%) sepia(66%) saturate(506%) hue-rotate(207deg) brightness(105%) contrast(112%);
}
.card:active{
    scale: 0.98;
}
.card:hover,
#side-card:hover,
#analytics-container:hover,
#tasks-container:hover,
#notes-container:hover {
    border: 1px solid var(--hover-color); 
}
#side-content-section{
    margin-top: 3rem;
    margin-right: 3rem;
    grid-row: span 2;
}
#side-card{
    min-height: 750px;
    min-width: 150px;
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    display: flex;
    height: 100%;
}
div#analytics-container{
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    margin: 0rem 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
}
.analytics-display-container, .analytics-input-container {
    height: 100%;
}
.analytics-display-container{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 3fr;
    min-width: 750px;
}
.analytics-data-container, .diagram-container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}
.diagram-container{
    margin: 1rem;
}
.stat-box{
    margin: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: var(--analytics-label-size);
    color: var(--nav-text-color);
    padding: 8%;
    flex-direction: column;
    user-select: none;
    cursor: pointer;
}
.stat-box>p:last-child {
    font-size: var(--analytics-text-size);
    color: lightgray;
    display: flex;
    margin-top: auto;
    align-items: center;
    justify-content: center;
}
.stat-box:hover,
.q-comparison-container:hover{
    border: 1px solid var(--hover-color);   
}
#tasks-section{
    display:grid;
    gap: 1.5rem;
    grid-template-columns: 3fr 1fr;
    margin-left: clamp(210px,15vw,15vw);
}
.analytics-input-container{
    border-left: 1px solid var(--border-color); 
    color: var(--text-color-white);
    max-width: 330px;
}
.analytics-input-container>*{
    color: var(--text-color-white);
    font-size: var(--analytics-label-size);
}
.year-selector-container, .month-selector-container{
    display: flex;
    margin: 1rem;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.month-input-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.month-selector-continer,
.year-input-container{
    display: flex;
    gap: 1rem;
}
select#dm-month-picker,
select#dm-year-picker{
    display: flex;
    width: 100%;
    margin-right: auto;
}
.input-button-container{
    display: flex;
    gap: 1rem;
}
label,
#statistics-header,
.q-comparison-label,
#create-year-label{
    font-size: var(--analytics-input-label-size);
    color: var(--nav-text-color);
}
select{
    font-size: var(--analytics-input-text-size);
}
option, select{ 
    background-color: var(--main-background-color);
    color: var(--text-color-white);
    border: 1px solid var(--border-color);
}
select:focus,
#valueInput:focus,
#valueInputYear:focus,
button#addYearValue:focus,
button#addMonthValue:focus,
button#btnPreviousMonth:focus,
button#btnNextMonth:focus,
button#btnPreviousYear:focus,
button#btnNextYear:focus{
    outline: 1px solid var(--hover-color);
}
button#btnPreviousMonth,
button#btnNextMonth,
button#btnPreviousYear,
button#btnNextYear{
    font-size: var(--analytics-label-size);
    background-color: var(--nav-hover-color);
    color: var(--text-color-white);
    border: 1px solid var(--border-color);
    user-select: none;
}
button#addMonthValue,
button#addYearValue{
    font-size: var(--analytics-label-size);
    background-color: var(--nav-hover-color);
    min-width: 100px;
    color: var(--text-color-white);
    border: 1px solid var(--border-color);
    user-select: none;
}
button#addYearValue:hover,
button#addMonthValue:hover,
button#btnPreviousMonth:hover,
button#btnNextMonth:hover,
button#btnNextYear:hover,
button#btnPreviousYear:hover{
    background-color: #574cad; 
}
button#addYearValue:active,
button#addMonthValue:active,
button#btnPreviousMonth:active,
button#btnNextMonth:active{
    scale: 0.9;
}
.main-statistics-container{
    margin: 1rem;
}
#statistics-header{
    margin-bottom: 1rem;
}
.q-comparison-label{
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}
.q-comparison{
    color: var(--text-color-white);
    font-size: var(--analytics-text-size);
    margin-left: 1rem;
}
.q-comparison-container{
    border: 1px solid var(--border-color);
    padding: 1rem;
    user-select: none;
    cursor: pointer;
}
#notes-container{
    height: 500px;
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    margin-right: 3rem;
}
#tasks-container{
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    height: 500px;
    margin: 0 4rem;
}


@keyframes hoverProfileImg{
    from{
    }
    to{
        box-shadow: 0px 0px 5px 5px var(--hover-color);
    }
}
@keyframes hoverHeroIconsScale{
    from{
        scale: 1;
    }
    to{
        scale: 1.2;
    }
}
.svg{
    height: var(--nav-bar-link-size);
    width: var(--nav-bar-link-size);
    filter: invert(45%) sepia(11%) saturate(1017%) hue-rotate(177deg) brightness(89%) contrast(82%);
    margin-right: 5%;
}
.card-svg{
    height: 40%;
    width: 40%;
    filter: invert(45%) sepia(11%) saturate(1017%) hue-rotate(177deg) brightness(89%) contrast(82%);
    margin-right: 5%;
}
.nav-element a:hover .svg {
    filter: invert(94%) sepia(0%) saturate(1318%) hue-rotate(192deg) brightness(93%) contrast(88%);
}
#logo-container{
    margin-top: calc(2rem + 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(2rem + 16px);
    user-select: none;
}
.logo{
    height: var(--logo-size);
    width: var(--logo-size);  
}
.logo-text{
    font-size: var(--logo-text-size);
    color: var(--text-color-white);
}

/* SEARCH BUTTON */

.search-btn{
    background-color: var(--main-background-color);
    border: none;
    color: var(--text-color-white);
}
#search-form{
    display: flex;
    align-items: center;
    justify-content: center;
}

input#valueInput,
input#valueInputYear{
    background-color: var(--main-background-color);
    display: flex;
    border: 1px solid var(--border-color);
    font-size: var(--analytics-input-text-size);
    width: 170px;
    margin-right: auto;
}
input{
    background-color: var(--main-background-color);
    border:none;
    margin-right: 0.2rem;
    color: var(--text-color-white);
    font-size: 18px;
    display: none;
}
input:focus{
    outline: none;
}
input:-webkit-autofill,
input:-webkit-autofill:focus {
    background-color: var(--main-background-color);
    margin-right: 0.2rem;
    color: var(--text-color-white);
    font-size: 18px;
    -webkit-text-fill-color: var(--main-background-color) !important;
    -webkit-background-clip: var(--main-background-color);
}
.inactive-search-field{
    display: flex;
    margin-left: auto;
    border-bottom: solid 2px var(--text-color-white);
    animation: hideInputField 1s forwards;
}
.active-search-field{
    display: flex;
    margin-left: auto;
    border-bottom: solid 2px var(--text-color-white);
    animation: showInputField 1s forwards;
}


@keyframes showInputField{
    from{
        width: 0;
    }
    to{
        width: 100%;
    }
}
@keyframes hideInputField{
    from{
        width: 100%;
    }
    to{
        display: none;
        width: 0%;
    }
}

footer{
    height: 100px;
    background-color: var(--nav-background-color);
    border-top: 1px solid var(--border-color);
    margin-left: 15vw;
}

/* .q-comparison-container.clicked-box {
    background-color: #695BD1;
    color: #d4d4d4 !important;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
} */