/* Основные стили */
body {
    font-family: 'Inter', sans-serif;
}

/* Стили для приложения (авторизованный режим) */
.app-wrapper {
    height: 100vh;
    overflow: hidden;
}

/* Карточка навигации в сайдбаре */
.nav-card {
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}
.nav-card:hover {
    background-color: #F1F5F9; /* slate-100 */
}
.nav-card.active {
    background-color: #E0F2F1; /* teal-50 */
    border-color: #B2DFDB; /* teal-100 */
}

/* Панели контента */
.content-panel {
    display: none;
}
.content-panel.active {
    display: flex;
    flex-direction: column;
}

/* Скроллбар */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 20px; }

/* Стили для копирования кода (запросов) */
.query-box {
    font-family: 'Monaco', 'Consolas', monospace;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.query-box:hover {
    border-color: #0A9396;
    box-shadow: 0 2px 4px rgba(10, 147, 150, 0.1);
}
.query-box::after {
    content: 'Копировать';
    position: absolute;
    right: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #0A9396;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.query-box:hover::after {
    opacity: 1;
}
.query-box.copied {
    background-color: #F0FDF4;
    border-color: #22c55e;
}
.query-box.copied::after {
    content: 'Скопировано!';
    color: #22c55e;
    opacity: 1;
}

/* Пульсация кнопки */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.animate-pulse-slow {
    animation: pulse-slow 2s infinite ease-in-out;
}

/* Авто-ресайз textarea */
textarea {
    overflow: hidden;
}

/* Стили для Шагов 2, 3 */
.result-container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.result-container h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #0A9396;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимации для лендинга/главной */
@keyframes blob { 
    0% { transform: translate(0px, 0px) scale(1); } 
    33% { transform: translate(30px, -50px) scale(1.1); } 
    66% { transform: translate(-20px, 20px) scale(0.9); } 
    100% { transform: translate(0px, 0px) scale(1); } 
}
.animate-blob { 
    animation: blob 7s infinite; 
}
.animation-delay-2000 { 
    animation-delay: 2s; 
}


.custom-checkbox input {
    display: none; /* Прячем настоящий input */
}
.custom-checkbox .checkbox-visual {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    border: 2px solid #cbd5e1; /* border-slate-300 */
    border-radius: 0.25rem; /* rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.custom-checkbox .checkbox-visual svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}
/* Стили для "Положительного" ответа */
.custom-checkbox input:checked + .checkbox-visual.positive {
    background-color: #dcfce7; /* bg-green-100 */
    border-color: #22c55e; /* border-green-500 */
}
.custom-checkbox input:checked + .checkbox-visual.positive svg {
    opacity: 1;
    transform: scale(1);
    color: #16a34a; /* text-green-600 */
}
/* Стили для "Отрицательного" ответа */
.custom-checkbox input:checked + .checkbox-visual.negative {
    background-color: #fee2e2; /* bg-red-100 */
    border-color: #ef4444; /* border-red-500 */
}
.custom-checkbox input:checked + .checkbox-visual.negative svg {
    opacity: 1;
    transform: scale(1);
    color: #dc2626; /* text-red-600 */
}