/**
 * Torch Public Base Styles
 */

/* Google Font - Roboto (must be first) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
    --torch-primary: #c02c3c;
    --torch-primary-rgb: 192, 44, 60;
    --torch-text: #1a1a1a;
    --torch-text-light: #666666;
    --torch-bg: #ffffff;
    --torch-bg-alt: #f8f9fa;
    --torch-border: #e0e0e0;
    --torch-success: #27ae60;
    --torch-warning: #f39c12;
    --torch-error: #e74c3c;
    --torch-radius: 8px;
    --torch-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --torch-transition: all 0.3s ease;
}

/* Base */
.torch-wizard,
.torch-report {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--torch-text);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.torch-wizard *,
.torch-report * {
    box-sizing: border-box;
}

/* Buttons */
.torch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--torch-radius);
    cursor: pointer;
    transition: var(--torch-transition);
}

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

.torch-btn-primary {
    background-color: var(--torch-primary);
    color: #ffffff;
}

.torch-btn-primary:hover:not(:disabled) {
    background-color: rgba(var(--torch-primary-rgb), 0.9);
    transform: translateY(-2px);
}

.torch-btn-secondary {
    background-color: transparent;
    color: var(--torch-text-light);
    border: 1px solid var(--torch-border);
}

.torch-btn-secondary:hover:not(:disabled) {
    background-color: var(--torch-bg-alt);
}

/* Error Message */
.torch-error {
    background-color: #fef2f2;
    color: var(--torch-error);
    padding: 15px 20px;
    border-radius: var(--torch-radius);
    border-left: 4px solid var(--torch-error);
}

/* Spinner */
.torch-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--torch-border);
    border-top-color: var(--torch-primary);
    border-radius: 50%;
    animation: torch-spin 1s linear infinite;
}

@keyframes torch-spin {
    to { transform: rotate(360deg); }
}

/* Preview Bar */
.torch-preview-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #23282d;
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.torch-preview-bar a {
    color: #ffffff;
    text-decoration: underline;
}

.torch-preview-content {
    padding-top: 60px;
}
