* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #f1641e 0%, #f08914 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* TABS */
.tabs {
    display: flex;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.tab-button {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    background: #f0f0f0;
}

.tab-button.active {
    color: #f1641e;
    border-bottom-color: #f1641e;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CARDS & SECTIONS */
.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.card h3 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card ul {
    margin-left: 20px;
    color: #666;
}

.card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.card a {
    color: #f1641e;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f1641e;
    box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.1);
}

small {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 0.9em;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #f1641e;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #d95610;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 100, 30, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
    width: 100%;
}

/* DRAG & DROP */
.drag-drop {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.drag-drop:hover {
    border-color: #f1641e;
    background: #fff5f0;
}

.drag-drop.dragover {
    border-color: #f1641e;
    background: #fff5f0;
    transform: scale(1.02);
}

.drag-drop p {
    color: #999;
    margin: 0;
}

/* STATUS MESSAGES */
.status-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    display: none;
    animation: slideIn 0.3s ease;
}

.status-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ALERTS */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #0c5460;
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f1641e 0%, #f08914 100%);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    color: #666;
    font-size: 0.95em;
}

/* AUTH METHOD STYLES */
.auth-method {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #f1641e;
}

.auth-method h3 {
    margin-top: 0;
    color: #f1641e;
}

.auth-method p {
    color: #666;
    font-size: 0.95em;
}

/* FILE PREVIEW */
#previewContent {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #666;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .container {
        border-radius: 0;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab-button {
        flex-shrink: 0;
        min-width: 100px;
    }

    .tab-content {
        padding: 20px;
    }

    .card {
        padding: 16px;
    }

    .btn-large {
        font-size: 1em;
        padding: 12px 20px;
    }
}
