html,
body {
    /* disables page reload on scroll up on mobile (interferes with plot navigation)*/
    /*overscroll-behavior-y: contain;*/
}

main{
    padding: 10px;
}

.uk-navbar-container{
    padding-left: env(titlebar-area-x, 0);
    padding-right: calc(100vw - env(titlebar-area-width));
    top: env(titlebar-area-y, 0);
    width: env(titlebar-area-width, 100%);
    -webkit-app-region: drag;
    background-color: rgb(23, 164, 23);
}
.uk-navbar-container:not(.uk-navbar-transparent) {
    background-color: #111;
	/*background: linear-gradient(to top,#05970a,#05ac0a);*/
    background-color: #344C00;
}

.uk-navbar-right a {
    color:#fff;
    text-shadow:none;
    -webkit-app-region: no-drag;
}

.uk-navbar-item, .uk-navbar-nav > li > a, .uk-navbar-toggle{
    min-height: 50px;
    color: #fff;
}


#vis{
    width: 100%;
}

.uk-notification-message{
    box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.3);
}


#change-password-form{
    max-width: 400px;
}

label {
    margin-top: 10px;
    display: block;
}

/* Profile page */
.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Optional: adds space between form groups */
}

.form-group label {
    margin-right: 10px;
    flex: 1; /* It ensures the label occupies space to push the input field */
    text-align: right; /* Right align the label text */
}

.form-group input, 
.form-group button {
    flex: 1; 
    text-align: left; 
}
.form-group button{
    height: 40px;
    text-align: center;
}
button {
    cursor: pointer;
}

/* login form */

#logo{
    width: 128px;
    height: 128px;
    margin-bottom: 33px;
}
#navbar-logo{
    width: 49px;
    height: 49px;
    margin-right: 10px;
}
.uk-logo:hover{
    color: white;
}
#navbar-logo svg{
    stroke: white;
}

main.login{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    padding: 0;
    flex-direction: column;
}

.login-container {
    background-color: white;
    padding: 1.5em 2em;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 200px;
}
.login-container h2 {
    margin-bottom: 1em;
    margin-top: 0;
}
.login-container input {
    display: block;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid 
ccc;

    border-radius: 4px;
}
.login-container button {
    padding: 0.5em 1em;
    background-color: 
green;

    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.login-container button:hover {
    background-color: 
rgb(13, 166, 13);

}
.login-container .message {
    margin-top: 1em;
}

.message-success {
    color: green;
}

.message-error {
    color: red;
}

.tick {
    color: green;
    font-size: 1.5em;
    cursor: pointer;
    text-align: center;
}
.no-tick {
    color: grey;
    font-size: 1.5em;
    cursor: pointer;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
}
/*
th, td {
    border: 1px solid #ddd;
    padding: 1px 4px;
    text-align: center;
}
th {
    background-color: #f2f2f2;
}
*/

.tabulator {
    background-color: transparent;
	border: transparent;
    border: 0px solid gray;
    border-radius: 0px;
    overscroll-behavior: contain;
}
.tabulator .tabulator-header .tabulator-col{
    background-color: white;
}
.tabulator-row .tabulator-cell, .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left, .tabulator .tabulator-header .tabulator-col{
    border-right: none;
}
.tabulator input {
	border: 2px solid #c8ddb9;
	background-color: white;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
	background-color: white;
	cursor: pointer;
}
.tabulator-row.tabulator-selectable:hover {
	background-color: #c8ddb9;
	cursor: pointer;
}
.tabulator-row {
    background-color: #efefef;
}
.tabulator-row.tabulator-row-even {
    background-color: #fff;
}
.tabulator .tabulator-header{
    border-bottom: none;
}
.tabulator .tabulator-header {
	background-color: white;
}
.tabulator-cell[tabulator-field="first_online"], .tabulator-cell[tabulator-field="last_online"] {
    font-family: monospace;
}

.uk-h1, h1 {
	font-weight: 900;
	font-style: normal;
}

.popup {
    display: none;
    position: fixed;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid black;
    padding: 20px;
    z-index: 1000;
}
.popup h2 {
    margin-top: 0;
}
.popup .close-btn {
    cursor: pointer;
    color: red;
    text-decoration: underline;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.fit-content {
	width: fit-content;
}

.tab-actions {
    visibility: hidden;
    position: absolute;
    background: white;
    padding: 5px;
    right: 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}



li.uk-active:hover .tab-actions {
    visibility: visible;
    transition-delay: 0.4s;
    opacity: 1; 
}
/*rgba(255, 255, 255, 0.7)*/
.select2-container--default .select2-selection--multiple {
	background-color: rgba(255,255,255,.1);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(154, 154, 154, 0.2);
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
	border: solid #aaa 1px;
	outline: 0;
}
.select2-dropdown {
    background-color: rgba(25,25,25,1);
    color: white;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: #535353;
    border: 1px solid rgba(255,255,255,.2)
}
.select2-container--default .select2-results__option--selected {
	background-color: #555;
}

.select2-container .select2-search--inline .select2-search__field {
    color: rgba(255, 255, 255, 0.7)
}


#views {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
}

#view_settings {
    width: 35px;
    text-align: center;
}

#view-title {
	background-color: transparent;
	border: none;
	padding: 0;
}

.time-button{
    border-radius: 20px;
}

@keyframes loading-gradient {
    100% {
        background-position: -100% 50%;
    }
    0% {
        background-position: 100% 50%;
    }
}

.loading {
    cursor: not-allowed;
    background-size: 200% 100%;
    background-repeat: repeat-x;
    background-image: linear-gradient(90deg, rgb(218, 234, 250), #39f,rgb(218, 234, 250));

    /* Animation properties */
    animation: loading-gradient 1.5s ease infinite;
}

.uk-navbar-nav > li > a.username{
    color: #aaa;
    cursor: default;
    text-transform: none;
}

.uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
	margin: 0 10px;
}

.mono{
    font-family: monospace;
}

.append_id{
    font-size: 12pt;
    color: #bbb;
    font-weight: normal;
}