* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.converter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.input-section, .output-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    resize: vertical;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.style-selector {
    margin: 20px 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

.copy-btn {
    background: #48bb78;
    margin-top: 15px;
}

.copy-btn:hover {
    background: #38a169;
}

.result-box {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    min-height: 150px;
    font-size: 16px;
    line-height: 1.6;
}

.placeholder {
    color: #a0aec0;
    font-style: italic;
}

.examples {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.example-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.example-btn {
    background: #edf2f7;
    color: #4a5568;
    padding: 10px 20px;
    font-size: 14px;
}

.example-btn:hover {
    background: #e2e8f0;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .converter {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .example-buttons {
        flex-direction: column;
    }
}

/* Добавляем в конец файла */

.result-main {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.converted-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    background: #f0fff4;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
}

.result-section {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
}

.missing-info {
    background: #fff5f5;
    border-left: 4px solid #f56565;
}

.missing-info h4 {
    color: #e53e3e;
}

.suggestions {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
}

.suggestions h4 {
    color: #3182ce;
}

.result-section h4 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}


.result-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.error {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    color: #c53030;
}

.error h4 {
    color: #e53e3e;
    margin-bottom: 10px;
}

.warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #b45309;
}

.warning h4 {
    color: #d97706;
}