
* {
    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;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.paste-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    margin: 20px 0;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.paste-area:hover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.05);
    transform: translateY(-2px);
}

.paste-area.active {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.paste-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.paste-area:hover .paste-icon {
    color: #764ba2;
    transform: scale(1.1);
}

.paste-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

.paste-subtext {
    color: #888;
    font-size: 0.9rem;
}

.preview-container {
    margin-top: 20px;
    display: none;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.image-dimensions {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.controls {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.filename-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filename-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.format-select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #bbb;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.instructions {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.instructions h3 {
    color: #333;
    margin-bottom: 10px;
}

.instructions ul {
    color: #555;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}
