@import url("fontawesome/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

#page-content-container {
    position: absolute;
    top: 154px;
    left: 0;
    width: 100%;
}

.hyperlink {
    color: var(--theme-color);
    text-decoration: none;
    margin-top: 14px;
    cursor: pointer;
}

    .hyperlink:hover {
        color: orange;
    }

/*------------------  TABLE FILTER ------------------ */
#filterContainer {
    position: fixed;
    width: 1130px;
    top: 154px;
    left: 0;
    background-color: white;
    z-index: 9;
    height: 24px;
}

#filterButtonContainer {
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
}

.filter-button {
    margin: 0 6px;
    cursor: pointer;
}

/*------------------  TABLE FILTER SEARCH FIELD ------------------ */
.searchbox {
    position: relative;
    display: inline-block;
}

    .searchbox svg {
        fill: darkgray;
        height: 20px;
        width: 20px;
        position: absolute;
        left: 2px;
        top: 3px;
    }

    .searchbox input[type='search'] {
        padding-left: 22px;
        margin: 0;height: 14px;border: 1px solid;
    }

/*------------------  FORM ELEMENTS ------------------ */

button {
    padding: 0.6rem 1rem; 
    margin-top: 1rem;
    background: var(--theme-color);;
    color: white;
    border: 1px solid var(--theme-color);;
    cursor: pointer;
    border-radius: var(--button-radius);
    font-weight: 600;
}

    button:hover {
        background-color: var(--theme-hover);
    }

    
.button-small {
    padding: 0.2rem;
    margin-top: 0.2rem;
    height: 24px;
    background: var(--theme-color);;
    color: white;
    border: 1px solid var(--theme-color);;
    cursor: pointer;
    border-radius: var(--button-radius);
    font-weight: 600;
}

    .button-small:hover {
        background-color: var(--theme-hover);
    }


/* Label without animation */
.corvixo-label {
    font-size: 0.825em;
}

.corvixo-input {
    padding: 10px 0px;
    border-bottom: 1px solid #ddd;
    margin-top: 20px;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    resize: none; /* Optional: disables textarea resizing */
}

/*------------------------- SLIDE SWITH -----------------------------*/

.switch {
    height: 0;
    width: 0;
    visibility: hidden;
}

.switchLabel {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: white;
    display: inline-block;
    border-radius: 10px;
    position: relative;
    border: 1px solid var(--theme-color);
    margin-left: -8px;
    flex-basis: 40px;
    flex-grow: 0;
    flex-shrink: 0;
}

    .switchLabel:after {
        content: '';
        position: absolute;
        top: 1px;
        left: 1px;
        width: 20px;
        height: 18px;
        background-color: var(--error-color);
        border-radius: 10px;
        transition: 0.3s;
    }

.switch:checked + .switchLabel {
    background-color: var(--theme-light);
}

    .switch:checked + .switchLabel:after {
        left: calc(100% - 2px);
        transform: translateX(-100%);
        background-color: var(--ok-color);
    }
    
/*------------------  TOPBAR ------------------ */

#top-bar {
    position: fixed;
    margin-top: 0;
    background-color: #838288;
    height: var(--top-bar-height);
    width: 100%;
    left: 0;
    top: 0;
    color: var(--theme-color);
    background-color: white;
    font-size: 24px;
    border-bottom: 2px solid var(--theme-color);
    z-index: 100;
}

#top_logo {
    height:var(--top-bar-height);
}

#page-title {
    position: absolute;
    width: calc(100% - 120px);
    /*text-align: center;*/
    top: 0;
    line-height: var(--top-bar-height);
    /*font-weight: bold;*/
    font-size: 28px;
    color: var(--theme-color);
    padding-left: 120px;
}

#bread-crumbs {
    position: fixed;
    left: 120px;
    top: 75px;
    z-index: 110;
    font-size: 14px;
    color: var(--theme-color);
    white-space: nowrap;
}

    @media (max-width: 390px) {
        #top_logo {
            display: none;
        }
        #page-title {
            padding-left: 10px !important;
            width: 100% !important;
        }
        #bread-crumbs {
            left: 10px !important;
             font-size: 12px !important;
        }
    }

#user-container {
    position:absolute;
    right: 16px;
    top:0;
    height: var(--top-bar-height);
    height: var(--top-bar-height);
    line-height: var(--top-bar-height);
}

.avatar {
    border-radius: 50%;
    border: 4px solid var(--theme-color);
    vertical-align: middle;
}

.avatar-small {
    width: 40px;
    height: 40px;
}

.avatar-smaller {
    width: 30px;
    height: 30px;
    border: 2px solid var(--theme-color);
}

.avatar-big {
    width: 60px;
    height: 60px;
}

.avatar-bigger {
    width: 100px;
    height: 100px;
}


.initials {
	text-align: center;
	display: inline-block;
	color: white;
	border-radius : 50%;
}

.initials-small {
	height: 40px;
	width: 40px;
	line-height: 40px;
    border: 4px solid var(--theme-color);
}

.initials-big {
	height: 60px;
	width: 60px;
	line-height: 60px;
	font-size: 1.5rem;
    border: 4px solid var(--theme-color);
}

.initials-bigger {
	height: 100px;
	width: 100px;
	line-height: 100px;
	font-size: 3rem;
    border: 4px solid var(--theme-color);
}

#user-menu {
    position: fixed;
    right: 0;
    top: calc(var(--top-bar-height) - 30px);
    width: 220px;
    background-color: white;
    border: 1px solid var(--light-border);
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    line-height: 22px;
    transition: opacity 0.3s ease-in, top 0.3s ease-in, right 0.3s ease-in;
    opacity: 0;
    display: flex;
    flex-direction: column;
    display: none;
    z-index: 500;
}

.user-menu-separator {
    width:100%;
    border-bottom: solid 1px var(--light-border);
    margin-top: 10px;
}

#user-menu-options-container {
    margin-top: 10px;
    margin-left: 16px;
    width: 100%;
    font-size: 18px;
    color: gray;
}

.user-menu-option {
    display:inline-block;
    height: 30px;
    cursor: pointer;
}

    .user-menu-option:hover {
        color: var(--theme-color);
    }




/*------------------  TOOLBAR ------------------ */

.toolbar {
	position: fixed;
    border-bottom: 1px solid var(--theme-color);
    background-color: white;
	left: 0;
	top: 100px;
	height: 53px;
	width: 100%;
	z-index: 10;
}

.toolbar-button {
	position: absolute;
	cursor: pointer;
	height: 40px;
	width: 40px;
	top: 2px;
	padding: 4px;
	color: #444;
	font-size: 24px;
	line-height: 1;
	text-align: center;
    border: 1px solid transparent;
	z-index: 20;
}

.toolbar-button:hover {
    border: 1px solid var(--theme-color);
    border-radius: var(--button-radius);
    background-color: var(--theme-light);
	color: var(--theme-color);
}

.toolbar-text {
	position           : absolute;
	text-align         : center;
	width              : 100%;
	top                : 30px;
	left               : 0;
	margin-top         : 4px;
	font-size          : 12px;
}

.toolbar-separator {
	position           : absolute;
	width              : 8px;
	border-left        : 2px solid #aaa;
	margin-left        : 6px;
	height             : 45px;
	top                : 4px;
}
