* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #764ba2;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.url-box {
    display: flex;
    margin: 10px 0;
    align-items: center;
}

.url-box label {
    width: 100px;
    font-size: 14px;
    color: #555;
}

.url-box input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.url-box button {
    width: auto;
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 14px;
}

.history {
    margin-top: 30px;
}

.history h3 {
    margin-bottom: 15px;
    color: #333;
}

.history ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.history li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}

.history a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.history a:hover {
    text-decoration: underline;
}