body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: #f8fafc;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    box-sizing: border-box;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    background-color: rgba(30, 41, 59, 0.75); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 750px;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

h1 {
    text-align: center;
    color: #38bdf8;
    margin-bottom: 5px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 35px;
}

/* ===================================================
   🚀 ТЕ САМЫЕ СИМПАТИЧНЫЕ КНОПКИ-ВКЛАДКИ ОТ МУДРЕЦА
   =================================================== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
    border-bottom: none; /* Убираем скучную линию */
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Эффект парения при наведении */
.tab-btn:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

/* Стиль для активной нажатой кнопки (Неоновое свечение) */
.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0.25) 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 8px rgba(56, 189, 248, 0.3);
    transform: scale(1.02);
}

/* =================================================== */

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #7dd3fc;
    margin: 20px 0 10px 0;
    font-weight: 700;
}

.input-field, .select-field {
    width: 100%;
    padding: 14px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid #475569;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.select-field option {
    background-color: #1e293b;
    color: #fff;
}

.input-field:focus, .select-field:focus {
    outline: none;
    border-color: #38bdf8;
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.template-preview {
    background-color: rgba(15, 23, 42, 0.4);
    border-left: 4px solid #f59e0b;
    padding: 12px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: rgba(23, 34, 55, 0.6);
    padding: 18px;
    border-radius: 14px;
    margin-top: 10px;
    border: 1px solid #334155;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #fff;
}

.checkbox-label input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #38bdf8;
    cursor: pointer;
}

.result-box {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid #38bdf8;
    padding: 20px;
    border-radius: 16px;
    min-height: 100px;
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    color: #e2e8f0;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.5);
}

.copy-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #0f172a;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    width: 100%;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
    filter: brightness(1.1);
}

.copy-btn:active {
    transform: translateY(1px);
}

.mode-panel { display: none; }
.mode-panel.active { display: block; }
