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

.container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    color: #888;
    font-size: 14px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: #999;
}

.file-info {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.progress-container {
    position: relative;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.settings {
    margin-top: 20px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.setting-item input, .setting-item select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.setting-item input:focus, .setting-item select:focus {
    border-color: #667eea;
}

.upload-btn, .download-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upload-btn:hover, .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.result {
    text-align: center;
}

.result h3 {
    color: #4caf50;
    margin-bottom: 20px;
}

.link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.link-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: #f5f5f5;
}

.copy-btn {
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.result-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.again-btn {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.error {
    text-align: center;
    padding: 40px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error p {
    color: #f44336;
    font-size: 16px;
}

.password-box {
    text-align: center;
}

.password-box h3 {
    margin-bottom: 20px;
    color: #333;
}

.password-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.file-detail {
    text-align: center;
}

.file-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.file-meta {
    font-size: 13px;
    color: #999;
    margin: 8px 0 20px;
}

.preview-area {
    margin: 20px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}
