:root {
    --dark-blue: rgb(51, 76, 145);
    --light-blue: rgb(81, 106, 175);
    --blue-gradient: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    --blue-gradient2: linear-gradient(135deg, var(--light-blue), var(--dark-blue));

    --bg-dark: #171717;
    --bg-middle: #212121;
    --bg-light: #2a2a2a;

    --color-hover: #2f2f2f;
    --color-border: #363636;
    --color-border-light: #444;

    --text-primary: #ffffff;
    --text-medium: #d7d7d7;
    --text-secondary: #b4b4b4;

    --alert-danger: #e8c1c5;
    --alert-danger-msg: #ffecee;

    --dark-red: #92424f;
    --light-red: #c94f5c;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter_18pt-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-secondary);
    overflow-x: hidden;
    font-weight: 400;
    font-style: normal;
    min-height: 100%;
    position: relative;
}

/* region Для фона */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-middle) 50%, var(--bg-dark) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(81, 106, 175, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(51, 76, 145, 0.1) 0%, transparent 40%);
    z-index: -1;
}

/* endregion Для фона */

/* Конкретные начертания */
.regular,
p {
    font-weight: 400;
    font-style: normal;
}

.italic,
i {
    font-weight: 400;
    font-style: italic;
}

.bold,
h1, h2, h3, b {
    font-weight: 600;
    font-style: normal;
}

h1, h2, h3, h4, h5 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

label {
    color: var(--text-medium);
}

p:last-child {
    margin-bottom: 0;
}

.bg-dark-blue {
    background: var(--dark-blue);
}

.bg-light-blue {
    background: var(--light-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* region Скролл */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 4px;
    border: none;
    opacity: 0.7;
    transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
    opacity: 1;
}

/* endregion Скролл */

/* region Кнопка */

.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
    background: var(--blue-gradient2);
    /*background: var(--blue-gradient);*/
    color: var(--text-medium);
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--light-blue);
    color: var(--text-primary);
    border-color: var(--color-border-light);
    box-shadow: none;
    transition: none;
}

.btn-secondary {
    background-color: var(--bg-middle);
    border-color: var(--color-border);
    color: var(--text-secondary);
}

.btn-secondary:hover:not(:disabled), .btn-primary:focus:not(:disabled) , .btn-primary:active:not(:disabled)  {
    background-color: var(--color-hover);
    border-color: var(--color-border-light);
    color: var(--text-primary);
}
/* endregion Кнопка */

/* region Ссылка */

a {
    color: var(--light-blue);
}

a:hover {
    color: var(--text-primary);
}

/* endregion Ссылка */


/* region Ошибки */

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--alert-danger);
    max-height: 300px;
    overflow-y: auto;
}

.alert-danger .alert-danger-msg {
    color: var(--alert-danger-msg);
}

/* endregion Ошибки */

/* region Delete Button */

.btn-delete {
    background-color: var(--dark-red);
    border-color: var(--color-border);
    color: var(--text-medium);
}

.btn-delete:hover {
    background-color: var(--light-red);
    border-color: var(--color-border-light);
    color: var(--text-primary);
}

/* endregion Delete Button */


.text-decoration-none {
    cursor: pointer;
}
