* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h1 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 {
    color: #7f8c8d;
    margin-bottom: 30px;
    text-align: center;
}

.section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid #3498db;
    transition: transform 0.3s;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-top: 0;
}

.section p {
    color: #5a6c7d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.task-buttons {
    margin-top: 10px;
}

button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

button:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

button:active {
    transform: translateY(0);
}

.output {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    border: 2px solid #e9ecef;
    min-height: 60px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.loading {
    color: #3498db;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error {
    color: #e74c3c;
    background: #fdf2f0;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
}

.success {
    color: #27ae60;
    background: #f0fdf4;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #27ae60;
}

/* Для списков в выводе */
ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

li:last-child {
    border-bottom: none;
}

/* Стили для вывода валют */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.currency-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.currency-card strong {
    color: #2c3e50;
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ccc;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    button {
        width: 100%;
        justify-content: center;
    }
    
    .currency-grid {
        grid-template-columns: 1fr;
    }
}