:root {
    --sidebar-width: 260px;
    --header-height: 60px;
    --glass-background: rgba(41, 41, 41, .95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-dark: #333;
    --text-light: #fff;
    --main-color: #353b41;
    --secondary-color: #c06dfd;
    --main-color-accordion-btn-hover-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e16b7' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --main-color-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --primary-gradient: linear-gradient(135deg, var(--main-color) 20%, var(--secondary-color) 100%) !important;
    --btn-gradient: linear-gradient(45deg, var(--main-color), #F4C27F);
    --main-hover-color: rgba(138, 43, 226, .2);
    --secondary-btn-hover-bg: rgba(138, 43, 226, .5) !important;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, document {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body {
    background: linear-gradient(to bottom, #0C0C0E 40%, #431737 61%, #1A1A1D 85%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    color: #EDEDED;
    background-size: cover;
    margin: 0;
    backdrop-filter: blur(20px);
}

a, a:hover, button:hover, .btn:hover, .action-btn:hover,
a:focus, button:focus, .btn:focus, .action-btn:focus,
a:active, button:active, .btn:active, .action-btn:active,
.form-check-input:checked {
    text-decoration: none !important;
    transition: all .65s;
}

::-webkit-scrollbar {
    width: 4px;
    height: 10px;
    background-color: rgba(138, 43, 226, .3);
    -webkit-border-radius: 5px;
    cursor: pointer;
}

    ::-webkit-scrollbar:hover {
        width: 4px;
        cursor: pointer;
    }

::-webkit-scrollbar-thumb {
    background: rgba(3, 169, 244, .3);
    -webkit-border-radius: 5px;
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
    background: #4D433D;
    cursor: pointer;
}


@font-face {
	font-family: "Impact";
	src: url("../fonts/impact/Impact.eot"); /* IE9 Compat Modes */
	src: url("../fonts/impact/Impact.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
		url("../fonts/impact/Impact.otf") format("opentype"), /* Open Type Font */
		url("../fonts/impact/Impact.svg") format("svg"), /* Legacy iOS */
		url("../fonts/impact/Impact.ttf") format("truetype"), /* Safari, Android, iOS */
		url("../fonts/impact/Impact.woff") format("woff"), /* Modern Browsers */
		url("../fonts/impact/Impact.woff2") format("woff2"); /* Modern Browsers */
	font-weight: normal;
	font-style: normal;
}


.allowSelection {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: default;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--main-color);
    text-shadow: 0 0 10px var(--bs-warning);
}

h5 {
    color: var(--main-color);
}

h6 {
    color: var(--secondary-color);
}

.card {
    background: rgba(20, 20, 25, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(255, 216, 158, 0.1);
    padding: 20px;
}

.button {
    background: var(--btn-gradient);
    text-decoration: none;
    max-width: 240px;
    color: black;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
}

.spinner {
    border: 4px solid rgba(255, 216, 158, 0.3);
    border-left-color: #F4C27F;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.glass-panel {
    background: var(--glass-background);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.active {
    color: var(--main-color);
}

.rounded-circle {
    border-radius: 50% !important;
    height: 38px;
    width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    font-size: 38px;
    color: white;
}

.btn-light:hover {
    color: var(--main-color) !important;
    background-color: rgba(138, 43, 226, 0.1) !important;
}

.waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: -1;
}

#gooCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
}

button.btn-close {
    background-color: #F4C27F;
    color: black;
}

.modal-body {
    overflow-y: auto;
    height: calc(100vh - 190px);
    max-height: 400px;
}

div#modelDropdownInput {
    display: flex;
    gap: 20px;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: rgba(0, 0, 0, .05);
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    box-shadow: 0px 10px 12px -2px rgba(0, 0, 0, .3);
}

.dropdown-item:active {
    color: var(--bs-dropdown-link-hover-color);
    background-color: transparent;
}


/* info card */
.info-card {
    background: transparent;
    position: fixed;
    left: 0;
    top: 0;
    height: 200px;
    width: 100vw;
    display: flex;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    padding: 20px;
}

.info-card .card {
    background: var(--glass-background);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 1px 1px 12px 1px rgba(0, 0, 0, .25);
    max-height: 130px;
    flex-direction: row;
}

.grabbing {
    cursor: grabbing;
}

.info-body {
    flex-grow: 1;
    max-height: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.info-body h6 {
    margin: 0;
    color: #F4C27F;
}

.info-body p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

.info-card button {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.125) !important;
    border: 2px solid #fff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 45px;
    max-width: 160px;
}

.info-card button:hover {
    transform: scale(1.05); /* Увеличение размера */
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2) !important;
}

.info-card .la-chevron-circle-right {
    font-size: 25px;
    margin-left: 10px;
}

.info-card .error {
    background: #FF5722;
    color: var(--text-light) !important;
}

.info-card .info {
    background: var(--main-color);
}

.modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.hide {
    visibility: hidden;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10; /* Ensure the overlay is on top */
}


.logo {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo_icon {
    background: url(/img/favicon-512.png);
    width: 60px;
    height: 60px;
    background-size: cover;
    margin-left: 20px;
}

/* CSS keyframes in Razor */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.3s;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.6s;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}