/* aivoice.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    padding-bottom: 30px
}

h1 {
    font-size: 32px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

.form-section {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border: 1px solid #999;
    border-radius: 50%;
    font-size: 12px;
    color: #999;
    cursor: help;
    margin-left: 5px;
}

/* Platform Selector - Dropdown Style */
.platform-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.platform-select:focus {
    outline: none;
    border-color: #1976d2;
}

/* File Upload Area */
.upload-note {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.download-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
}

.download-link:hover {
    text-decoration: underline;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #bbb;
    background: #f5f5f5;
}

.upload-area.drag-over {
    border-color: #1976d2;
    background: #e3f2fd;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    opacity: 0.5;
    display: block;
}

.upload-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

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

#fileInput {
    display: none;
}

.selected-file {
    margin-top: 15px;
    padding: 12px;
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
    font-size: 14px;
    border-radius: 4px;
    display: none;
}

.selected-file.show {
    display: block;
}

.file-name {
    color: #2e7d32;
    font-weight: 500;
}

.file-size {
    color: #66bb6a;
    font-size: 12px;
    margin-top: 4px;
}

/* Browse Button */
.browse-btn {
    display: inline-block;
    padding: 8px 24px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.browse-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 30px;
}

.submit-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #bbb;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn.loading {
    background: #f5f5f5;
}

/* Status Section */
.status-section {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: none;
}

.status-section.show {
    display: block;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: #fff3e0; color: #e65100; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-success { background: #e8f5e9; color: #2e7d32; }
.status-failed { background: #ffebee; color: #c62828; }

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #1976d2;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.status-message {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.task-id {
    font-size: 11px;
    color: #999;
    font-family: 'Courier New', monospace;
}

.download-result-btn {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.2s ease;
    display: none;
}

.download-result-btn.show {
    display: block;
}

.download-result-btn:hover {
    background: #1565c0;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    border-left: 3px solid;
}

.alert-error {
    background: #ffebee;
    border-color: #c62828;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }

    h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }
}