body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    overflow-y: hidden;
    height: 100vh;
    background: linear-gradient(to right, rgba(75, 0, 130, 0.95), rgba(25, 25, 112, 0.9), rgba(0, 0, 139, 0.85));
}
* {
    box-sizing: border-box;
}
button, input[type="submit"] {
    border: 2px none;
    border-radius: 6px;
    font-size: 1em;
}
button:hover, input[type="submit"]:hover {
    cursor: pointer;
}
.navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 60px;
    border-bottom: 4px;
    position: fixed;
    top: 0;
    width: 100%;
}
.navbar-toggler {
	display: none;
}
.main-text {
    font-size: 25px;
    font-weight: 700;
    padding-top: 13px;
    padding-left: 13px;
    padding-right: 13px;
    text-align: left;
}
.navbar-items {
    display: flex;
    flex-direction: row;
    width: calc(100% - 337px);
    padding-left: 13px;
    padding-right: 13px;
}
.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-inline-start: 0px;
    margin-right: auto !important;
}
.navbar-nav-right {
    display: flex;
    padding-inline-start: 0px;
    flex-direction: row;
    margin-left: auto !important;
    
}
.navbar-item {
    display: list-item;
    list-style: none;
    font-weight: 500;
    font-size: 20px;
    padding-left: 5px;
    padding-right: 5px;
}
.container {
    display: flex;
    width: 100%;
    height: 100%;
    float: none;
    overflow: hidden;
}
.left {
    float: left;
    padding: 20px;
    overflow-y: auto;
    margin-top: 60px;
    overflow-x: hidden;
}
.user-name {
    font-weight: bold;
    font-size: 1.6em;
    padding-bottom: 15px;
}
.models-table {
    border-collapse: collapse;
    text-align: left;
    width: 100%
}
.models-table tr {
    padding-left: 2px;
    padding-right: 2px;
}
.models-table td {
    padding-top: 2px;
    padding-bottom: 2px;
}
.table-header {
    border-bottom: 2px solid;
}
.gutter {
    background-repeat: no-repeat;
    background-position: 50%;
}
.gutter.gutter-horizontal {
    width: 1px;
    cursor: col-resize;
}
.gutter.gutter-vertical {
    height: 1px;
    cursor: row-resize;
}
.right {
    float: left;
    padding: 20px;
    overflow: hidden;
    margin-top: 60px;
    overflow-y: auto;
}
.workers-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.workers-container > div {
    width: calc(100% / 3 - 16px);
}
.worker-node {
    display: inline-block;
    border-style: solid;
    border-width: 1px;
    padding-left: 8px;
    padding-top: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-left: 8px;
    margin-right: 8px;
}
.highlighted-node {
    border: 3px solid #b8860b !important; /* Dark goldenrod */
    background: transparent !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px 3px rgba(184, 134, 11, 0.6),
                inset 0 0 0 1px rgba(184, 134, 11, 0.3);
    animation: golden-pulse 2.5s ease-in-out infinite alternate;
    position: relative;
    transform: translateZ(0); /* Hardware acceleration */
    transition: all 0.3s ease;
}

.highlighted-node:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 30px 5px rgba(184, 134, 11, 0.8),
                inset 0 0 0 1px rgba(184, 134, 11, 0.5);
    border-color: #cd853f !important; /* Peru */
}

@keyframes golden-pulse {
    0% {
        box-shadow: 0 0 15px 2px rgba(184, 134, 11, 0.5),
                    inset 0 0 0 1px rgba(184, 134, 11, 0.3);
        border-color: #b8860b; /* Dark goldenrod */
    }
    100% {
        box-shadow: 0 0 25px 6px rgba(184, 134, 11, 0.7),
                    inset 0 0 0 1px rgba(184, 134, 11, 0.4);
        border-color: #cd853f; /* Peru */
    }
}
.link > a {
    text-decoration: none;
}
.link > a > i {
    padding-right: 8px;
}
.link:hover {
    cursor: pointer;
    text-decoration: underline;
}
.modal-container {
    width: 100%;
    height: 100%;
    position: absolute;
    transition: 0.2s background-color ease-in-out;
    transform: translate(0%, -100%);
}
.modal-window {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-radius: 10px;
    font-weight: bold;
    padding: 13px;
}
.popup-modal {
    width: max(50vw);
}
.worker-modal {
    width: 40vw;
}
.options-modal {
    width: 40vw;
}
.leaderboard-modal {
    width: 30vw;
}
.manageworkers-modal {
    width: 84vw;
}
#manageWorkersList {
    font-size: min(1.4vw, 1.4em);
}
.modal-header {
    font-size: 2em;
}
.modal-text {
    font-size: 1.4em;
    font-weight: normal;
    text-align: center;
}
.list-modal-text {
    font-size: 1.4em;
    font-weight: normal;
}
.list-modal-text > div {
    padding-top: 4px;
    padding-bottom: 4px;
}
.modal-buttons {
    padding-top: 20px;
    text-align: center;
}
.modal-buttons > button {
    margin-left: 2px;
    margin-right: 2px;
    padding: 8px;
    padding-left: 40px;
    padding-right: 40px;
}
.close-worker-button {
    float: right;
    text-align: right;
}
.close-worker-button:hover {
    cursor: pointer;
}
#manageWorkersList > tr {
    text-align: center;
}
::-webkit-scrollbar {
    width: 5px;
	height: 5px;
    float: right;
}
::-webkit-scrollbar-corner {
	background: rgba(0,0,0,0);
}
::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #777;
    padding-right: 2px;
}
@media (max-width: 1287px) {
	.navbar {
		flex-direction: column;
		overflow: visible;
		height: 75px;
		transition: height 0.3s ease-in-out;
		z-index: 1000;
	}
	.main-text {
		font-size: 22px;
		padding: 10px 18px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 55px;
	}
	.main-text > #mainText {
		display: inline-block;
	}
	.navbar-toggler {
		font-size: 30px;
		display: inline-block;
		text-align: right;
	}
	.navbar-toggler > i  {
		border: 2px solid;
		border-radius: 10px;
		margin-right: 12px;
		padding: 6px 16px;
		cursor: pointer;
		transition: all 0.2s ease;
	}
	.navbar-toggler > i:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
	.navbar-items {
		flex-direction: column;
		width: 100%;
		padding: 0;
		opacity: 1;
		max-height: 200px;
		overflow-y: auto;
	}
	.navbar-nav {
		flex-direction: column;
		width: 100%;
		padding: 0 18px;
		margin: 0;
	}
	.navbar-nav .navbar-item {
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		font-size: 18px;
	}
	.navbar-nav-right {
		flex-direction: column;
		width: 100%;
		padding: 0 18px;
		margin: 0;
	}
	.navbar-nav-right .navbar-item {
		margin: 4px 0 !important;
		padding: 8px 12px !important;
		width: auto !important;
		display: block !important;
		font-size: 16px !important;
	}
    .container {
        flex-direction: column;
        margin-top: 0;
    }
    .left {
        float: none;
        overflow-x: auto;
        margin-top: 20px;
    }
    .models-table {
        font-size: min(1vw/0.5em);
    }
    .right {
        float: none;
        margin-top: 20px;
    }
    .workers-container > div {
        width: calc(100% / 1 - 16px);
    }
	.popup-modal, .worker-modal, .options-modal, .leaderboard-modal, .manageworkers-modal {
    	width: 95vw;
    	max-width: 95vw;
	}
}