* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e0533, #4a0082, #001f54);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 600px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #b472ff, #72c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Вкладки */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(180, 114, 255, 0.3);
    color: #fff;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Контент вкладок */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Контролы генерации */
.gen-controls {
    margin-bottom: 20px;
}

.gen-controls label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.gen-controls input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.gen-controls input:focus {
    outline: none;
    border-color: rgba(180, 114, 255, 0.5);
    box-shadow: 0 0 15px rgba(180, 114, 255, 0.2);
}

.gen-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #b472ff, #72c0ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 114, 255, 0.4);
}

.gen-btn:active {
    transform: translateY(0);
}

.gen-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Результат */
.result-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    min-height: 150px;
    position: relative;
}

.result-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.copy-btn {
    margin-top: 12px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn.hidden {
    display: none;
}

/* Инфо */
.info {
    margin-top: 20px;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.info span {
    color: #72c0ff;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 400px) {
    .glass-card {
        padding: 20px 16px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}
