/* Tinol Automotive AI - Main Styles */

:root {
    --tinol-bg-dark: #0F172A;
    --tinol-card-bg: #1E293B;
    --tinol-accent: #F97316; /* Orange */
    --tinol-accent-hover: #EA580C;
    --tinol-text-main: #F8FAFC;
    --tinol-text-muted: #94A3B8;
    --tinol-border: #334155;
}

#tinol-automotive-ai-root {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--tinol-text-main);
    background-color: var(--tinol-bg-dark);
    padding: 2rem;
    border-radius: 12px;
    max-width: 1200px;
    margin: 2rem auto;
    direction: RTL; 
}

/* Tabs Navigation */
.tinol-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--tinol-border);
    padding-bottom: 1rem;
}

.tinol-tab-btn {
    background: transparent;
    border: none;
    color: var(--tinol-text-muted);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 8px;
}

.tinol-tab-btn:hover {
    color: var(--tinol-text-main);
    background: rgba(255,255,255,0.05);
}

.tinol-tab-btn.active {
    background: var(--tinol-accent);
    color: white;
}

/* Forms & Inputs */
.tinol-form-group {
    margin-bottom: 1.5rem;
}

.tinol-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--tinol-text-muted);
}

.tinol-input, .tinol-select, .tinol-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--tinol-card-bg);
    border: 1px solid var(--tinol-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.tinol-textarea {
    min-height: 120px;
}

.tinol-input:focus, .tinol-select:focus, .tinol-textarea:focus {
    outline: 2px solid var(--tinol-accent);
    border-color: transparent;
}

/* Upload Area */
.tinol-upload-area {
    border: 2px dashed var(--tinol-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    background: rgba(30, 41, 59, 0.5);
}

.tinol-upload-area:hover {
    border-color: var(--tinol-accent);
}

.tinol-upload-icon {
    font-size: 2rem;
    color: var(--tinol-text-muted);
    margin-bottom: 1rem;
}

/* Buttons */
.tinol-btn-primary {
    background: var(--tinol-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.tinol-btn-primary:hover {
    background: var(--tinol-accent-hover);
}

.tinol-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Response Area */
.tinol-response {
    margin-top: 2rem;
    background: var(--tinol-card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--tinol-border);
    white-space: pre-wrap;
    line-height: 1.6;
}

.tinol-response h1, .tinol-response h2, .tinol-response h3 {
    color: var(--tinol-accent);
    margin-top: 0;
}

/* Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.tinol-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}
