/* 
    Modern SaaS Design System 
    Author: Antigravity
    Target: Professional SaaS (Odoo/Shopify Style)
*/

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --secondary-bg: #f8fafc;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --success-soft: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif !important;
    color: var(--text-main);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

[lang="ar"] body {
    font-family: 'Tajawal', sans-serif !important;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Modern Buttons */
.btn-saas-primary {
    background: var(--primary-gradient);
    color: white !important;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    cursor: pointer;
    text-decoration: none !important;
}

.btn-saas-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: white;
}

.btn-saas-outline {
    background: transparent;
    color: var(--text-main) !important;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none !important;
}

.btn-saas-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Modern Cards */
.saas-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Glassmorphism */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
}

/* Feature Icons */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.saas-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Layout Utilities */
.grid-layout {
    display: grid;
    gap: 2rem;
}

.hero-gradient-text {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* RTL Support */
[dir="rtl"] .btn-saas-primary i {
    margin-right: 8px;
    margin-left: 0;
}

[dir="ltr"] .btn-saas-primary i {
    margin-left: 8px;
    margin-right: 0;
}

/* Dashboard & Stats */
.odoo-dashboard-welcome {
    padding: 2.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.welcome-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.welcome-text h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.welcome-text p {
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.odoo-cinematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.odoo-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.odoo-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.theme-teal .stat-icon { background: #f0fdfa; color: #0d9488; }
.theme-purple .stat-icon { background: #faf5ff; color: #9333ea; }
.theme-red .stat-icon { background: #fef2f2; color: #dc2626; }
.theme-pink .stat-icon { background: #fdf2f8; color: #db2777; }
.theme-cyan .stat-icon { background: #ecfeff; color: #0891b2; }
.theme-green .stat-icon { background: #f0fdf4; color: #16a34a; }
.theme-amber .stat-icon { background: #fffbeb; color: #d97706; }
.theme-orange .stat-icon { background: #fff7ed; color: #ea580c; }

.stat-info p {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0.25rem 0 0;
}

/* RTL Adjustments */
[dir="rtl"] .welcome-content {
    flex-direction: row;
}

[dir="rtl"] .odoo-stat-card {
    text-align: right;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Premium SaaS Footer */
.saas-footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    padding: 80px 0 40px 0 !important;
    font-family: 'Tajawal', 'Inter', sans-serif !important;
}

.saas-footer h4 {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
}

.saas-footer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.saas-footer-list li {
    margin-bottom: 1rem !important;
}

.saas-footer-list a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
}

.saas-footer-list a:hover {
    color: #818cf8 !important;
    padding-inline-start: 5px !important;
}

.saas-footer-bottom {
    margin-top: 5rem !important;
    padding-top: 2.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
}

.saas-footer-logo-desc {
    max-width: 320px !important;
}

.saas-footer-social {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.saas-footer-social a {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    transition: background 0.3s ease !important;
}

.saas-footer-social a:hover {
    background: #4f46e5 !important;
}

.saas-footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.saas-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 4rem !important;
}
