:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --bg-main: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                url('/static/img/image.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.navbar {
    background: #1e293b !important;
}

.nav-link {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.xiva-card, .card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease;
}

.xiva-card:hover, .card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

body.home-page {
    /* Home page can have a slightly clearer background or keep the same */
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                url('/static/img/image.png') no-repeat center center fixed;
    background-size: cover;
}

/* Hero Section */
.hero-wrapper {
    padding: 80px 0;
    position: relative;
}

.hero-content h1 {
    font-weight: 800;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn-modern {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-modern {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
}

.btn-outline-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Features/Modules Cards */
.module-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.module-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.module-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

/* Welcome User Badge */
.welcome-badge {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
