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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-main: #ffffff;
    --bg-sidebar: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.8);
    
    --blob-1: rgba(79, 70, 229, 0.05);
    --blob-2: rgba(14, 165, 233, 0.05);
    --blob-3: rgba(244, 63, 94, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #38bdf8;
    --accent: #fb7185;
    
    --bg-main: #020617;
    --bg-sidebar: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(51, 65, 85, 0.8);
    
    --blob-1: rgba(99, 102, 241, 0.1);
    --blob-2: rgba(56, 189, 248, 0.1);
    --blob-3: rgba(251, 113, 133, 0.1);
}

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

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

input, select, textarea {
    color: var(--text-main);
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-family: inherit;
}

select option {
    background: var(--bg-sidebar);
    color: var(--text-main);
}


h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

/* App Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .logo {
    margin-bottom: 48px;
    padding-left: 12px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 8px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a:hover {
    background: var(--bg-input);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-links a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px -6px var(--primary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.top-bar h2 {
    font-size: 1.875rem;
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid var(--border);
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Landing Page Component Styles */
.landing-body {
    background: var(--bg-main);
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Blobs */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.bg-shape-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: var(--blob-1);
    animation-delay: 0s;
}
.bg-shape-2 {
    top: 40%; right: -20%;
    width: 800px; height: 800px;
    background: var(--blob-2);
    animation-delay: -5s;
}
.bg-shape-3 {
    bottom: -20%; left: 20%;
    width: 700px; height: 700px;
    background: var(--blob-3);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
    100% { transform: translate(2%, -5%) scale(1.05); }
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.landing-nav .btn-pill {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hero-section {
    padding: 160px 8% 100px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.6;
}

/* Buttons */
.btn-pill {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-pill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-pill:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 10px 25px -8px var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 35px -10px var(--primary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 10px 25px -8px var(--secondary);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 35px -10px var(--secondary);
}

.btn-outline {
    background: rgba(var(--bg-card), 0.5);
    border: 1px solid var(--border);
    color: var(--text-main);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--bg-input);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.1);
}

/* Hero Visual Box */
.hero-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 40px;
    height: 540px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.hero-visual:hover {
    transform: translateY(-10px) scale(1.01);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9Im5vbmUiLz4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjIpIi8+Cjwvc3ZnPg==') repeat;
    opacity: 0.5;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 400px 400px; }
}

.hero-visual-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-visual-content i {
    font-size: 5rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-visual-content h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-visual-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Feature Grid */
.features-section {
    padding: 120px 8%;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 32px;
    box-shadow: 0 10px 20px -10px var(--primary);
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Common App Components */
.glass-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.bg-purple {
    background: var(--primary);
}

.bg-green {
    background: #10b981;
}

.bg-orange {
    background: #f59e0b;
}

.stat-info span {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 10;
    font-size: 1rem;
}

.toggle-password:hover {
    color: var(--primary);
}

input:focus,
select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Dashboard Analytics */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.metric-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.chart-container {
    margin-top: 24px;
    height: 320px;
}

/* Table Design */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.status-pass {
    color: #10b981;
    font-weight: 700;
}

.status-fail {
    color: #ef4444;
    font-weight: 700;
}

/* Result Box */
.result-box {
    margin-top: 32px;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
}

.result-box h3 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

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

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

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 140px;
        text-align: center;
        gap: 60px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        height: auto;
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .landing-nav {
        padding: 16px 5%;
    }
    .features-section {
        padding: 80px 5%;
    }
}


.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Advanced Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.pulse-anim {
    animation: pulse-glow 2s infinite;
}
