:root {
    --bg__dark: #09090b;
    --card: hsl(240 4% 10%);
    --radius: 8px;
    --border: hsl(240 3.7% 15.9%);
    --accent: hsl(240 4% 12%);
    --foreground: hsl(0 0% 98%);
    --accent-foreground: hsl(0 0% 98%);
    --muted: hsl(240 3.7% 15.9%);
    --muted-foreground: hsl(240 5% 64.9%);
    --primary: hsl(255 45% 55%);
    --popover: hsl(240 10% 3.9%);
    --border: hsl(240 3.7% 15.9%);
    --background: hsl(240 10% 3.9%);
    --destructive: hsl(0 62.8% 30.6%);
    --secondary: hsl(240 3.7% 15.9%);
    --input: hsl(240 3.7% 15.9%);
    --radial__gradient: radial-gradient(#7259c033, transparent 70%);
    --tw-gradient-stops: #7259c033, 70%;
}

.bg__gradient {
    background-image: var(--radial__gradient);
}

.bg-danger {
    background-color: var(--destructive);
}

.bg-danger:hover {
    background-color: #7f1d1dcc;
}

.hover-bg-accent:hover {
    background-color: var(--accent);
}

.bg-muted {
    background-color: var(--muted);
}

.bg-primary-10 {
    background-color: rgb(114, 89, 192, 0.10) !important;
}


.none {
    display: none !important;
}

.d-block {
    display: block;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}


.grid {
    display: grid;
}

.gap-2 {
    gap: 2px;
}

.gap-4 {
    gap: 4px;
}

.gap-6 {
    gap: 6px;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

.w-16 {
    width: 16px;
}

.h-16 {
    height: 16px;
}

.w-20 {
    width: 20px;
}

.h-20 {
    height: 20px;
}

.w-24 {
    width: 24px;
}

.h-24 {
    height: 24px;
}

.w-32 {
    width: 32px;
}

.h-32 {
    height: 32px;
}

.w-40 {
    width: 40px;
}

.h-40 {
    height: 40px;
}

.w-48 {
    width: 48px;
}

.h-48 {
    height: 48px;
}

.w-full {
    width: 100%;
}

.h-0 {
    height: 0;
}

.h-auto {
    height: auto;
}

.h-full {
    height: 100%;
}

.min-h-80 {
    min-height: 80px;
}

textarea {
    resize: vertical;
    transition: 0s;
}

.opacity-0 {
    opacity: 0;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: end;
}

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: end;
}


.pointer {
    cursor: pointer;
}


.m-auto {
    margin: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.mt-auto {
    margin-top: auto;
}

.mt-24 {
    margin-top: 24px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-8 {
    margin-top: 8px;
}

.mb-8 {
    margin-bottom: 8px;
}

.pl-2 {
    padding-left: 8px;
}

.pb-24 {
    padding-bottom: 24px;
}

.pt-16 {
    padding-top: 16px;
}

.p-16 {
    padding: 16px;
}

.p-8 {
    padding: 8px;
}

.p-0 {
    padding: 0;
}

.pt-0 {
    padding-top: 0;
}

.pr-0 {
    padding-right: 0;
}

.pb-0 {
    padding-bottom: 0;
}

.pl-0 {
    padding-left: 0;
}


.border-b {
    border-bottom: 1px solid var(--border);
}

.border-1 {
    border: 1px solid var(--border);
}

.radius-6 {
    border-radius: 6px;
}

.radius-8 {
    border-radius: 8px;
}

.radius-circle {
    border-radius: 50%;
}

.text-4xl {
    font-weight: 700;
    font-size: 40px;
    line-height: 40px;
}

.text-3xl {
    font-weight: 600;
    font-size: 30px;
    line-height: 30px;
}

.text-2xl {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
}

.text-xl {
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
}

.text-lg {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
}

.text-base {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.text-base-medium {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 14px;
    line-height: 20px;
    color: var(--muted-foreground);
}

.text-sm-light {
    font-size: 14px;
    line-height: 20px;
    color: var(--accent-foreground);
}

.text-xs {
    font-weight: 500;
    font-size: 12px;
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.text-gray {
    color: var(--muted-foreground);
}


.tracking-tight {
    letter-spacing: -0.4px;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.hover-underline:hover {
    text-decoration: underline;
}


.img-white {
    filter: brightness(100);
}


header,
section {
    width: 100%;
    padding-inline: 20px;
}


.container {
    width: 100%;
    max-width: 1536px;
    margin-inline: auto;
}



/* #fafafa */



.alert {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-errors {
    background-color: #f8d7da;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
}

.input-error {
    border-color: #dc3545 !important;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}

.mr-2 {
    margin-right: 0.5rem;
}

@@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}


/* Стили для индикатора загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #333; /* Тёмный цвет текста для видимости */
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8); /* Лёгкая тень для лучшей читаемости */
}

/* Альтернативный вариант с точками */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .loading-dots div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #3498db;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .loading-dots div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .loading-dots div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .loading-dots div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .loading-dots div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* или height: 100% если родитель имеет высоту */
}


/* Dialog Overlay2 */
.dialog-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .dialog-overlay2.show {
        opacity: 1;
        visibility: visible;
    }

/* Dialog Content2 */
.dialog-content2 {
    background-color: #111111;
    border-radius: 12px;
    width: 100%;
    max-width: 576px; /* sm:max-w-xl */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid #2a2a2a;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.dialog-overlay2.show .dialog-content2 {
    transform: scale(1);
}