:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding-bottom: 2rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-premium:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.form-control-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-premium option {
    background-color: #1e293b;
    color: white;
}

.form-control-premium:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

h1, h2, h3, h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.group-box {
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.group-box-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: -2.5rem;
    background: var(--bg-dark);
    display: inline-block;
    padding: 0 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* RTL Helpers */
.text-right { text-align: right; }
.ms-auto { margin-right: auto; margin-left: 0 !important; }
.me-auto { margin-left: auto; margin-right: 0 !important; }

/* Car Parts Diagram UI */
.car-part-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.car-part-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 1rem;
    width: 200px;
    text-align: center;
}

.car-part-image-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background: #000;
}
