/* Добавьте/измените в начале файла */
header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header h1 i {
    color: #667eea;
    margin-right: 10px;
    -webkit-text-fill-color: initial;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h1 i {
    color: #667eea;
    margin-right: 10px;
}

header p {
    color: #666;
    font-size: 1.1em;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover, .upload-area.dragover {
    background: #e8eaff;
    border-color: #5a67d8;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4em;
    color: #667eea;
    margin-bottom: 15px;
}

.upload-area h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.upload-area p {
    color: #666;
    margin-bottom: 15px;
}

.file-info {
    margin-top: 20px;
    color: #999;
    font-size: 0.9em;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #48bb78;
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
}

.file-preview {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

.file-preview h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2em;
    color: #667eea;
}

.file-info-text {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

.btn-change {
    padding: 8px 15px;
    background: #e2e8f0;
    border: none;
    border-radius: 20px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-change:hover {
    background: #cbd5e0;
}

.upload-progress {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

.progress-bar {
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #4a5568;
    font-size: 0.9em;
}

.result-area {
    animation: fadeIn 0.3s ease-out;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-card.success {
    border: 2px solid #48bb78;
}

.result-card.error {
    border: 2px solid #f56565;
}

.success-icon {
    font-size: 4em;
    color: #48bb78;
    margin-bottom: 15px;
}

.error-icon {
    font-size: 4em;
    color: #f56565;
    margin-bottom: 15px;
}

.result-card h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.url-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9em;
    color: #333;
    background: #f8f9ff;
}

.btn-copy {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

#errorMessage {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
    }
}