* {
    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%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

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

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

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

.header p {
    color: #666;
    font-size: 14px;
}

.config-status {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
    display: none;
}

.config-status.success {
    background: #e2ffe2;
    color: #0a8f0a;
    border: 1px solid #b3e6b3;
    display: block;
}

.config-status.error {
    background: #ffe2e2;
    color: #8f0a0a;
    border: 1px solid #e6b3b3;
    display: block;
}

#dropzone {
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    margin-bottom: 20px;
}

#dropzone:hover {
    background: #f0f0ff;
    border-color: #764ba2;
    transform: translateY(-2px);
}

#dropzone.hover {
    background: #e9f5ff;
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

#dropzone .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

#dropzone .text {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

#dropzone .subtext {
    color: #999;
    font-size: 12px;
}

#fileInput {
    display: none;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #e2ffe2 0%, #f0fff0 100%);
    border: 2px solid #b3e6b3;
    border-radius: 8px;
    display: none;
}

.result.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    color: #0a8f0a;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-link {
    width: 100%;
    padding: 10px;
    border: 1px solid #b3e6b3;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    word-break: break-all;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.result-link:hover {
    background: #f8f8f8;
    border-color: #0a8f0a;
}

.result-link:focus {
    outline: 2px solid #667eea;
}

.copy-btn {
    margin-top: 10px;
    padding: 8px 12px;
    background: #0a8f0a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #087d08;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    display: none;
}

.status-message.error {
    background: #ffe2e2;
    color: #8f0a0a;
    border: 1px solid #e6b3b3;
    display: block;
}

.status-message.success {
    background: #e2ffe2;
    color: #0a8f0a;
    border: 1px solid #b3e6b3;
    display: block;
}
