/* 
 * Auditify Landing Page CSS Style Sheet
 * Author: Arpa Nihan
 * Design Style: Premium dark-mode glassmorphic interface with vibrant neon accents
 */

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

:root {
    --bg-dark: #070a13;
    --bg-card: rgba(15, 22, 42, 0.5);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --brand-primary: #FF2D20; /* Laravel Red */
    --brand-primary-glow: rgba(255, 45, 32, 0.2);
    --brand-secondary: #00F2FE; /* Neon Cyan */
    --brand-secondary-glow: rgba(0, 242, 254, 0.15);
    --brand-accent: #8b5cf6; /* Cyber Purple */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --blur-strength: 16px;

    /* Theme adaptive variables */
    --bg-glow-fade: rgba(7, 10, 19, 0);
    --bg-header: rgba(7, 10, 19, 0.7);
    --border-header: rgba(255, 255, 255, 0.05);
    --bg-section-gradient: linear-gradient(180deg, rgba(7, 10, 19, 0) 0%, rgba(15, 23, 42, 0.3) 50%, rgba(7, 10, 19, 0) 100%);
    --bg-config-section: rgba(15, 23, 42, 0.2);
    --border-config-section: rgba(255, 255, 255, 0.03);
    --bg-footer: #05070d;
    --border-footer: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(0, 0, 0, 0.3);
    --border-input: rgba(255, 255, 255, 0.1);
    --text-input: white;
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-card: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    
    --brand-primary-glow: rgba(255, 45, 32, 0.06);
    --brand-secondary-glow: rgba(0, 242, 254, 0.05);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg-glow-fade: rgba(248, 250, 252, 0);
    --bg-header: rgba(248, 250, 252, 0.85);
    --border-header: rgba(15, 23, 42, 0.06);
    --bg-section-gradient: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(15, 23, 42, 0.03) 50%, rgba(248, 250, 252, 0) 100%);
    --bg-config-section: rgba(15, 23, 42, 0.02);
    --border-config-section: rgba(15, 23, 42, 0.04);
    --bg-footer: #f1f5f9;
    --border-footer: rgba(15, 23, 42, 0.08);
    --bg-input: rgba(255, 255, 255, 0.95);
    --border-input: rgba(15, 23, 42, 0.12);
    --text-input: #0f172a;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effects */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--brand-primary-glow) 0%, var(--bg-glow-fade) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

body::after {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    top: 600px;
    left: -150px;
    background: radial-gradient(circle, var(--brand-secondary-glow) 0%, var(--bg-glow-fade) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.glow-bg-purple {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: 400px;
    right: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, var(--bg-glow-fade) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* Utility Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Glassmorphic Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Badges & Buttons */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(255, 45, 32, 0.15);
    color: #ff5247;
    border: 1px solid rgba(255, 45, 32, 0.3);
}

.badge-secondary {
    background: rgba(0, 242, 254, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #d92216 100%);
    color: white;
    box-shadow: 0 4px 20px -2px rgba(255, 45, 32, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -2px rgba(255, 45, 32, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    color: white;
}

/* Terminal / Code Snippets */
.terminal-window {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    
    /* Force dark-theme text variables for contrast when body is in light mode */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-card: rgba(255, 255, 255, 0.06);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.terminal-body {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.9rem;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #94a3b8;
    padding: 6px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.terminal-prompt {
    color: #38bdf8;
    user-select: none;
    margin-right: 8px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-header);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: var(--bg-header);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo svg {
    color: var(--brand-primary);
    filter: drop-shadow(0 0 8px rgba(255, 45, 32, 0.5));
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 5.5rem 0 2rem 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content h1 span.gradient-text-laravel {
    background: linear-gradient(135deg, #ff5247 0%, var(--brand-primary) 50%, #e62315 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span.gradient-text-sec {
    background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.composer-install-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    max-width: 450px;
    margin-top: 1.5rem;
    
    /* Force dark-theme text variables for contrast when body is in light mode */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-card: rgba(255, 255, 255, 0.06);
}

/* Stats Row */
.stats-banner {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* Dashboard Mockup Layout */
.dashboard-preview-container {
    position: relative;
}

.dashboard-mockup {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    background: #0b1120;
    width: 100%;
    
    /* Force dark-theme text variables for contrast when body is in light mode */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-card: rgba(255, 255, 255, 0.06);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-url-bar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 70%;
    max-width: 400px;
}

.mockup-url-bar .secure-lock {
    color: var(--color-success);
}

.mockup-body {
    padding: 1.25rem;
    font-size: 0.8rem;
}

/* Mockup Components */
.mockup-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mockup-metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mockup-metric-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.mockup-metric-card.actions::before { background: var(--brand-primary); }
.mockup-metric-card.activities::before { background: var(--brand-secondary); }
.mockup-metric-card.security::before { background: var(--color-error); }

.mock-metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-metric-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 4px 0;
}

.mock-metric-indicator {
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-chart-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
}

.mockup-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.mockup-chart-legends {
    display: flex;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-canvas-wrapper {
    height: 100px;
    position: relative;
    width: 100%;
}

.mockup-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mockup-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    .mockup-two-col {
        grid-template-columns: 2fr 1.2fr;
    }
}

.mockup-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.75rem;
}

.panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
    display: flex;
    justify-content: space-between;
}

.mockup-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-list-item:last-child {
    border-bottom: none;
}

.mockup-log-item {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-log-item:last-child {
    border-bottom: none;
}

.mock-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.mock-badge.get { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.mock-badge.post { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.mock-badge.delete { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.mock-badge.critical { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.mock-badge.high { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.mock-badge.update { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

/* Decoupled Modules Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.decoupled-modules {
    padding: 6rem 0;
    background: var(--bg-section-gradient);
    position: relative;
}

.module-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 8px;
}
.module-selector::-webkit-scrollbar {
    display: none;
}

.module-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.module-tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.module-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--brand-secondary);
    box-shadow: 0 0 15px -3px rgba(0, 242, 254, 0.2);
}

.module-details-card {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.module-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-meta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.module-attributes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.attr-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Log Simulator Sandbox */
.sandbox-section {
    padding: 6rem 0;
    position: relative;
}

.sandbox-container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
}

.sandbox-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sandbox-action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.sandbox-action-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.sandbox-action-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sandbox-action-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sandbox-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.sandbox-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-input);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.sandbox-input:focus {
    border-color: var(--brand-secondary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.sandbox-btn {
    background: var(--brand-secondary);
    color: #0b1120;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sandbox-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

.sandbox-btn.btn-laravel {
    background: var(--brand-primary);
    color: white;
}

.sandbox-btn.btn-laravel:hover {
    box-shadow: 0 4px 12px rgba(255, 45, 32, 0.3);
}

.sandbox-btn.btn-purple {
    background: var(--brand-accent);
    color: white;
}

.sandbox-btn.btn-purple:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mass-delete-clicks {
    font-size: 0.75rem;
    color: var(--color-warning);
    margin-left: 8px;
    font-weight: 500;
}

/* Live Database Screen Mockup */
.sandbox-db-monitor {
    background: #080d1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 480px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    
    /* Force dark-theme text variables for contrast when body is in light mode */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-card: rgba(255, 255, 255, 0.06);
}

.monitor-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitor-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.monitor-tabs {
    display: flex;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2px;
}

.monitor-tab-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.monitor-tab-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.monitor-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.log-entry {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    animation: slide-in-bottom 0.3s ease-out;
}

.log-entry.unread {
    border-color: rgba(255, 45, 32, 0.15);
    background: rgba(255, 45, 32, 0.02);
}

.log-entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.log-time {
    color: var(--text-muted);
}

.log-payload {
    white-space: pre-wrap;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 6px;
    font-size: 0.7rem;
    overflow-x: auto;
}

@keyframes slide-in-bottom {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Interactive Config Code Editor */
.config-section {
    padding: 6rem 0;
    background: var(--bg-config-section);
    border-top: 1px solid var(--border-config-section);
    border-bottom: 1px solid var(--border-config-section);
}

.config-container {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 3rem;
    align-items: flex-start;
}

.config-options {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.5rem;
}

.config-group {
    margin-bottom: 1.5rem;
}

.config-group:last-child {
    margin-bottom: 0;
}

.config-group h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 0.25rem;
}

.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.config-row:last-child {
    margin-bottom: 0;
}

.config-label-desc {
    display: flex;
    flex-direction: column;
}

.config-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.config-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Custom switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--brand-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.config-input-small {
    width: 80px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    text-align: center;
    font-family: var(--font-mono);
}

/* Editor Tabs */
.editor-wrapper {
    display: flex;
    flex-direction: column;
}

.editor-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.editor-tabs::-webkit-scrollbar {
    display: none;
}

.editor-tab {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    color: #94a3b8;
    padding: 0.6rem 1.2rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.editor-tab:hover {
    color: white;
    background: #334155;
}

.editor-tab.active {
    background: #0f172a;
    color: white;
    border-color: rgba(255,255,255,0.15) rgba(255,255,255,0.15) transparent rgba(255,255,255,0.15);
}

/* Table styles */
.table-section {
    padding: 6rem 0;
}

.search-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.search-input {
    width: 100%;
    max-width: 300px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-input);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

th, td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-card);
}

th {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255,255,255,0.01);
}

.route-method {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.75rem;
}

.route-method.get { color: var(--color-success); }
.route-method.post { color: var(--color-info); }
.route-method.delete { color: var(--color-error); }

.route-uri {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.route-controller {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Custom Alert Notification Popups */
.alert-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(239, 68, 68, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    z-index: 1000;
    max-width: 400px;
    animation: alert-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
}

.alert-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.alert-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

@keyframes alert-slide-in {
    from { transform: translateY(50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* XSS Block Screen Overlay */
.xss-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.xss-block-card {
    background: #0f131a;
    border: 2px solid var(--color-error);
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
    animation: alert-slide-in 0.3s ease-out;
}

.xss-block-icon {
    font-size: 4rem;
    color: var(--color-error);
    margin-bottom: 1.5rem;
}

.xss-block-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.xss-block-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Step list guides */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #d92216 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 45, 32, 0.3);
}

.step-details {
    flex: 1;
}

.step-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Footer style */
footer {
    border-top: 1px solid var(--border-footer);
    background: var(--bg-footer);
    padding: 4rem 0 2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: var(--brand-primary);
}

.footer-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-card);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: white;
}

/* Code highlight classes (Manual representation) */
.code-keyword { color: #f43f5e; }
.code-string { color: #34d399; }
.code-comment { color: #64748b; }
.code-class { color: #a855f7; }
.code-variable { color: #38bdf8; }
.code-func { color: #fbbf24; }
.code-boolean { color: #f97316; }
.code-number { color: #f43f5e; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-2, .sandbox-container, .config-container, .module-details-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav a:not(.btn) {
        display: none;
    }

    nav {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: flex !important;
        gap: 0.75rem;
    }

    nav a:not(.btn) {
        display: none;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .route-controller {
        font-size: 0.75rem;
    }

    .sandbox-input-wrapper {
        flex-direction: column;
    }

    .sandbox-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .composer-install-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }
    
    .composer-install-bar button {
        align-self: center;
        width: 100%;
        justify-content: center;
    }

    .config-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .config-input-small, select.config-input-small {
        width: 100% !important;
        text-align: left;
    }
    
    .switch {
        align-self: flex-start;
    }
}

.hover-glow {
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px -10px rgba(0, 242, 254, 0.25) !important;
    border-color: rgba(0, 242, 254, 0.4) !important;
}

/* Large screen adjustments to scale layout up */
@media (min-width: 1400px) {
    html {
        font-size: 17px;
    }
    .container {
        max-width: 1320px;
    }
    .hero-content p {
        max-width: 600px !important;
    }
    .composer-install-bar {
        max-width: 500px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }
    .container {
        max-width: 1500px;
    }
    .hero-content p {
        max-width: 680px !important;
    }
    .composer-install-bar {
        max-width: 550px;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 19px;
    }
    .container {
        max-width: 1700px;
    }
    .hero-content p {
        max-width: 760px !important;
    }
    .composer-install-bar {
        max-width: 600px;
    }
}
