@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 15s ease infinite;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.perspective-1000 {
    perspective: 1000px;
}

@keyframes width-grow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-slow-zoom {
    animation: slow-zoom 20s ease-in-out infinite;
}

.animate-width-grow {
    animation: width-grow 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.4);
    }
}

.animate-glow {
    animation: glow 4s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

:root {
    --primary: #6366F1;
    --primary-light: #EEF2FF;
    --primary-hover: #4F46E6;
    --bg-main: #F9FAFB;
    --bg-sidebar: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.98);
    --border: #F3F4F6;
    --text-main: #111827;
    --text-muted: #6B7280;
    --accent: #A855F7;
    --radius: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1);
}

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

body {
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ✨ Minimalist Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.font-outfit {
    font-family: 'Outfit', sans-serif !important;
    color: #0F172A;
    letter-spacing: -0.02em;
}

/* 🧊 Professional SaaS Cards */
.saas-card,
.card,
.glass-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

/* 📱 Responsive Typography & Utilities */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    .text-4xl { font-size: 1.75rem !important; }
    .text-5xl { font-size: 2.25rem !important; }
    .text-6xl { font-size: 2.5rem !important; }
    
    .px-12 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .p-12 { padding: 1.5rem !important; }
    .p-16 { padding: 2rem !important; }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    padding: 2.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item i {
    font-size: 1.5rem;
}

/* Top Navbar */
.top-navbar {
    height: 80px;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cards */
.saas-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.8)), url('/aiml_hero_bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 2.5rem;
    padding: 4rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-white {
    background: white;
    color: var(--primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #F1F5F9;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.status-success {
    background: #DCFCE7;
    color: #166534;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* 📱 Mobile Responsiveness */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
        /* Hide sidebar on tablet/mobile if it's the fixed type */
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .top-navbar {
        padding: 0 1.5rem;
    }

    .hero-banner {
        padding: 2.5rem 2rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }

    .hero-banner p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .saas-card {
        padding: 1.25rem;
    }

    /* Grid adjustments - Remove aggressive overrides and let Tailwind handle them */
    .mobile-stack {
        grid-template-columns: 1fr !important;
    }

    /* Table Responsiveness */
    .overflow-x-auto {
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .overflow-x-auto table {
        min-width: 800px;
    }

    /* Hide non-essential elements on mobile */
    .mobile-hide {
        display: none !important;
    }
}

/* Custom Utilities */
.touch-card {
    -webkit-tap-highlight-color: transparent;
}

.mobile-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-scroll-x::-webkit-scrollbar {
    display: none;
}