:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Dark mode text color fixes - comprehensive */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .h1,
[data-theme="dark"] .h2,
[data-theme="dark"] .h3,
[data-theme="dark"] .h4,
[data-theme="dark"] .h5,
[data-theme="dark"] .h6,
[data-theme="dark"] .display-1,
[data-theme="dark"] .display-2,
[data-theme="dark"] .display-3,
[data-theme="dark"] .display-4,
[data-theme="dark"] .display-5,
[data-theme="dark"] .display-6,
[data-theme="dark"] .fw-bold,
[data-theme="dark"] .lead {
    color: #f1f5f9 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] strong,
[data-theme="dark"] b,
[data-theme="dark"] small {
    color: #e2e8f0;
}

[data-theme="dark"] body,
html[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid,
html[data-theme="dark"] .container,
html[data-theme="dark"] .container-fluid {
    color: #e2e8f0;
}

/* Force all text to be visible in dark mode */
html[data-theme="dark"] * {
    border-color: #334155;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] li,
html[data-theme="dark"] div:not(.btn):not(.badge) {
    color: #e2e8f0;
}

[data-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-secondary {
    color: #cbd5e1 !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link) {
    color: #818cf8;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):hover {
    color: #a5b4fc;
}

/* Dark mode table styles */
[data-theme="dark"] .table {
    color: #f1f5f9;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    color: #e2e8f0;
    border-color: #334155;
}

[data-theme="dark"] .table thead th {
    color: #f1f5f9;
    background-color: #1e293b;
    border-color: #475569;
}

/* Dark mode accordion */
[data-theme="dark"] .accordion-item {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .accordion-button {
    background-color: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

[data-theme="dark"] .accordion-body {
    background-color: #1e293b;
    color: #e2e8f0;
}

/* Dark mode list group */
[data-theme="dark"] .list-group-item {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .list-group-item-action:hover {
    background-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .list-group-item.active {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* Dark mode modal */
[data-theme="dark"] .modal-content {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .modal-header {
    border-color: #334155;
}

[data-theme="dark"] .modal-footer {
    border-color: #334155;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* Dark mode dropdown */
[data-theme="dark"] .dropdown-menu {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dropdown-item {
    color: #f1f5f9;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #334155;
    color: #f1f5f9;
}

/* Dark mode content pages */
[data-theme="dark"] .content h4,
[data-theme="dark"] .content h5 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .content p,
[data-theme="dark"] .content li {
    color: #cbd5e1;
}

[data-theme="dark"] .content ul,
[data-theme="dark"] .content ol {
    color: #cbd5e1;
}

/* Dark mode alerts */
[data-theme="dark"] .alert-info {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Dark mode badges */
[data-theme="dark"] .badge.bg-secondary {
    background-color: #475569 !important;
    color: #f1f5f9;
}

[data-theme="dark"] .badge.bg-light {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, color 0.3s;
}

.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.4rem;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.theme-toggle {
    padding: 0.5rem;
}

.dark-mode .dark-icon,
.light-mode .light-icon {
    display: inline-block;
}

.dark-mode .light-icon,
.light-mode .dark-icon {
    display: none;
}

.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.generate-form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

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

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

.loading-text {
    color: #fff;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.output-section {
    display: none;
    margin-top: 3rem;
}

.output-section.active {
    display: block;
}

.output-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.output-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.output-content {
    white-space: pre-wrap;
    line-height: 1.7;
}

.export-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-export {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer h5,
.footer h6 {
    color: var(--text-color);
}

.footer p,
.footer li {
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Dark mode footer specific fixes */
[data-theme="dark"] .footer {
    background: #1e293b;
}

[data-theme="dark"] .footer h5,
[data-theme="dark"] .footer h6 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer li,
[data-theme="dark"] .footer span,
[data-theme="dark"] .footer .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer a {
    color: #94a3b8;
}

[data-theme="dark"] .footer a:hover {
    color: #818cf8;
}

[data-theme="dark"] .footer-links a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: #818cf8 !important;
}

[data-theme="dark"] .social-icon {
    color: #94a3b8 !important;
}

[data-theme="dark"] .social-icon:hover {
    color: #818cf8 !important;
}

.social-links a {
    font-size: 1.25rem;
    margin-right: 1rem;
}

.sidebar {
    background: var(--card-bg);
    min-height: calc(100vh - 76px);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: auto;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.table {
    color: var(--text-color);
}

.table th {
    border-color: var(--border-color);
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}

.table td {
    border-color: var(--border-color);
    vertical-align: middle;
    padding: 0.5rem;
}

.table-sm th,
.table-sm td {
    padding: 0.4rem 0.5rem;
}

.table td .small,
.table td small {
    line-height: 1.2;
}

.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-blocked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.card-header-custom {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

textarea.form-control {
    min-height: 120px;
}

/* Admin panel form fixes */
.dashboard-card .form-control,
.dashboard-card .form-select,
.dashboard-card textarea,
.form-control,
.form-select,
textarea.form-control {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #e2e8f0 !important;
}

.dashboard-card .form-control:focus,
.dashboard-card .form-select:focus,
.dashboard-card textarea:focus,
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.dashboard-card .form-control::placeholder,
.dashboard-card textarea::placeholder,
.form-control::placeholder,
textarea::placeholder {
    color: #64748b !important;
    opacity: 0.8;
}

/* Ensure select options are visible */
.form-select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Fix for dark mode form controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea.form-control,
[data-theme="dark"] .dashboard-card .form-control,
[data-theme="dark"] .dashboard-card .form-select,
[data-theme="dark"] .dashboard-card textarea {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
    border: 2px solid #475569 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] textarea.form-control:focus,
[data-theme="dark"] .dashboard-card .form-control:focus,
[data-theme="dark"] .dashboard-card .form-select:focus,
[data-theme="dark"] .dashboard-card textarea:focus {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
    border-color: #6366f1 !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #94a3b8 !important;
}

/* Card styling fix */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.card .form-control,
.card .form-select,
.card textarea {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

.card .form-control:focus,
.card .form-select:focus,
.card textarea:focus {
    background-color: var(--bg-color) !important;
    border-color: var(--primary-color) !important;
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Theme Toggle Button Enhancement */
.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.theme-toggle-btn i {
    font-size: 1.1rem;
}

.navbar-nav .nav-item .theme-toggle-btn {
    margin: 0.25rem 0.5rem;
}

/* Quick Actions Section */
.quick-actions-section {
    padding: 0.5rem 0;
}

.btn-quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-quick-action i {
    font-size: 1.1rem;
}

.btn-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background: #7c3aed;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 1040;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Close Button */
.sidebar-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .dashboard-sidebar,
    #userSidebar,
    #adminSidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        min-height: 100vh;
        z-index: 1050;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 50px;
    }
    
    .dashboard-sidebar.mobile-open,
    #userSidebar.mobile-open,
    #adminSidebar.mobile-open {
        left: 0;
    }
}

/* ========== HOMEPAGE SECTIONS ========== */

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.stats-section .stat-card {
    padding: 2rem 1rem;
}

.stats-section .stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stats-section .stat-label {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* How It Works Section */
.how-it-works-section {
    background: var(--bg-color);
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Feature Highlights */
.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-color);
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Partners Section */
.partner-logo {
    display: block;
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name {
    font-weight: 600;
    color: var(--text-muted);
}

/* Case Studies Section */
.case-study-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-study-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-study-content {
    padding: 1.5rem;
}

.case-results {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: translateY(-3px);
}

.gallery-header {
    margin-bottom: 0.75rem;
}

.gallery-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Blog Section */
.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h5 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-content h5 a:hover {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section .accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.faq-section .accordion-button {
    background: var(--card-bg);
    color: var(--text-color);
    font-weight: 600;
    padding: 1.25rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.faq-section .accordion-body {
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 1.25rem;
}

/* Quick Start Guide */
.quickstart-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.quickstart-card:hover {
    transform: translateY(-3px);
}

.qs-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-color);
}

.newsletter-form .input-group {
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* Community Section */
.community-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.community-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.community-link i {
    font-size: 2rem;
}

/* Help Section */
.help-link {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.help-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.help-link i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Referral Section */
.referral-code-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin-top: 1rem;
}

.referral-code-box .form-control {
    flex: 1;
}

/* Upgrade Prompt */
.upgrade-prompt {
    border-top: 3px solid var(--warning-color);
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Mobile responsive for sections */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .step-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 50px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form .btn {
        border-radius: 50px;
        width: 100%;
    }
    
    .referral-code-box {
        flex-direction: column;
    }
}

/* RTL Support for Arabic and other RTL languages */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2, [dir="rtl"] .ms-3, [dir="rtl"] .ms-4 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .me-2, [dir="rtl"] .me-3, [dir="rtl"] .me-4 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .dropdown-menu-end {
    left: 0;
    right: auto;
}

[dir="rtl"] .bi {
    margin-left: 0.25rem;
    margin-right: 0;
}

[dir="rtl"] .footer-links {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .live-chat-widget {
    right: auto;
    left: 20px;
}

[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
}

[dir="rtl"] .admin-sidebar {
    right: 0;
    left: auto;
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 250px;
}

@media (max-width: 768px) {
    [dir="rtl"] .main-content {
        margin-right: 0;
    }
}
