/* ============================================
   Servonaut Dark Theme - CSS Custom Properties
   ============================================ */
:root {
    --bg-dark: #070B14;
    --bg-card: #111827;
    --bg-terminal: #0D1117;
    --text-main: #F9FAFB;
    --bg-card-hover: #111B2E;
    --accent-primary: #00F2FE;
    --accent-secondary: #4FACFE;
    --text-primary: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    --border-glow: rgba(0, 242, 254, 0.15);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ============================================
   Global Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-accent {
    color: var(--accent-primary) !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #070B14;
    border: none;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    color: #070B14;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4), 0 0 40px rgba(0, 242, 254, 0.15);
    transform: translateY(-1px);
}

.btn-accent:active {
    transform: translateY(0);
}

.badge.bg-accent-subtle {
    background-color: rgba(0, 242, 254, 0.1) !important;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   Glassmorphism Navbar
   ============================================ */
.servonaut-navbar {
    background: rgba(7, 11, 20, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    z-index: 1030;
}

.servonaut-navbar .navbar-brand {
    color: var(--text-primary);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.servonaut-navbar .navbar-brand:hover {
    color: var(--accent-primary);
}

.servonaut-navbar .nav-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    border-radius: 0.375rem;
}

.servonaut-navbar .nav-link:hover,
.servonaut-navbar .nav-link:focus {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.servonaut-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-section .lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ============================================
   Terminal Mockup
   ============================================ */
.terminal-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot-red {
    background: #FF5F57;
}

.dot-yellow {
    background: #FFBD2E;
}

.dot-green {
    background: #28C840;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.terminal-line code {
    color: var(--accent-primary);
    background: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.terminal-prompt {
    color: var(--accent-secondary);
    font-weight: 700;
    user-select: none;
}

.terminal-comment {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.terminal-comment:first-child {
    margin-top: 0;
}

.terminal-lg {
    max-width: 720px;
}

.terminal-lg .terminal-body {
    padding: 1.5rem 2rem;
}

.terminal-lg .terminal-line code {
    word-break: break-all;
}

/* ============================================
   Chat Card
   ============================================ */
.chat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.chat-icon {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.chat-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.chat-body {
    padding: 1.5rem 1.25rem;
}

.chat-message {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.chat-message strong {
    color: var(--text-primary);
}

.chat-message code {
    color: var(--accent-primary);
    background: rgba(0, 242, 254, 0.08);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.chat-input .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.chat-input .form-control:focus {
    box-shadow: none;
    border-color: var(--accent-primary);
}

.chat-input .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(13, 21, 37, 0.5) 50%, var(--bg-dark) 100%);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.12);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.feature-commands {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    opacity: 0.8;
    line-height: 1.8;
}

.feature-commands code {
    color: inherit;
    background: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

/* ============================================
   Installation Section
   ============================================ */
.installation-section {
    padding: 5rem 0 6rem;
}

/* ============================================
   Footer
   ============================================ */
.servonaut-footer {
    background: var(--bg-card);
}

.servonaut-footer a {
    transition: color 0.2s ease;
}

.servonaut-footer a:hover {
    color: var(--accent-primary) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .chat-card {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-section {
        padding: 3rem 0;
    }

    .installation-section {
        padding: 3rem 0 4rem;
    }

    .terminal-lg .terminal-body {
        padding: 1rem 1.25rem;
    }

    .terminal-body {
        font-size: 0.8rem;
    }
}

/* ============================================
   Article Reading Experience Styles
   (Kept for article pages)
   ============================================ */

/* Article Header */
.article-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.article-title {
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.95rem;
}

.article-meta svg {
    flex-shrink: 0;
}

/* Article Body - Optimal Reading Experience */
.article-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-body h1 { font-size: 2.25rem; }
.article-body h2 { font-size: 1.875rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }
.article-body h5 { font-size: 1.125rem; }
.article-body h6 { font-size: 1rem; }

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li > ul,
.article-body li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: var(--accent-secondary);
    text-decoration-thickness: 2px;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-primary);
    background-color: rgba(0, 242, 254, 0.04);
    font-style: italic;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body pre {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.article-body pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.article-body code {
    padding: 0.2rem 0.4rem;
    background-color: rgba(0, 242, 254, 0.08);
    color: var(--accent-primary);
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: var(--font-mono);
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.article-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-body table th,
.article-body table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.article-body table th {
    background-color: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    text-align: left;
}

.article-body table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.01);
}

.article-body hr {
    margin: 3rem 0;
    border: 0;
    border-top: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .article-body {
        font-size: 1rem;
    }

    .article-body h1 { font-size: 1.75rem; }
    .article-body h2 { font-size: 1.5rem; }
    .article-body h3 { font-size: 1.25rem; }
    .article-body h4 { font-size: 1.125rem; }

    .article-body pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .article-body blockquote {
        padding: 0.75rem 1rem;
    }
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
}

.article-footer .btn {
    transition: all 0.2s ease;
}

.article-footer .btn:hover {
    transform: translateX(-4px);
}

/* ============================================
   Card hover effects (for article/project pages)
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5) !important;
}

.card .stretched-link {
    color: inherit;
    transition: color 0.2s ease;
}

.card:hover .stretched-link {
    color: var(--accent-primary) !important;
}

/* ============================================
   Markdown Content Styles (Projects, etc.)
   ============================================ */
.markdown-content {
    font-size: 1rem;
    line-height: 1.7;
}

.markdown-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}

.markdown-content table th,
.markdown-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-content table th {
    background-color: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.markdown-content table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.01);
}

.markdown-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.markdown-content code {
    padding: 0.2rem 0.4rem;
    background-color: rgba(0, 242, 254, 0.08);
    color: var(--accent-primary);
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: var(--font-mono);
}

.markdown-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* ============================================
   Timeline Styles (About Page)
   ============================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.15);
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.timeline-year {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-content h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.timeline-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

.timeline-content .alert {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 3rem;
        padding-right: 1rem;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }
}

/* ============================================
   Prism Theme Switching
   ============================================ */
pre[class*="language-"],
code[class*="language-"] {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Category Badge Styles
   ============================================ */
.badge.cursor-pointer {
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge.cursor-pointer:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.badge.cursor-pointer:active {
    transform: translateY(0);
}

/* ============================================
   Custom Progress Bar Styles
   ============================================ */
.progress {
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    height: 1.5rem;
}

.progress .progress-bar {
    height: 100%;
}

.progress .text-white {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.progress-bar {
    transition: width 0.6s ease;
}

/* ============================================
   Card Dark Mode Styles (for non-landing pages)
   ============================================ */
.card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.card .badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Cloudflare Turnstile Styling
   ============================================ */
.cf-turnstile {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mb-3 .cf-turnstile {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .cf-turnstile {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* --- New Landing Page Styles from User --- */

/* Typography & Gradients */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3 {
    font-weight: 800;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Buttons */
.btn-glow {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    color: #000;
}

.btn-outline-glow {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Terminal Window Fake UI */
.terminal-box {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

/* AI Chat Interface */
.chat-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 242, 254, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 550px;
    position: relative;
}

.chat-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 10;
}

.chat-header {
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
    font-size: 0.95rem;
}

.message.bot {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.bot code {
    background: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

.message.user {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(79, 172, 254, 0.1));
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem;
}

.chat-input-wrapper input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
}

.chat-input-wrapper input:focus {
    outline: none;
}

/* Feature Cards overriding existing if needed */
.feature-card.landing-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card.landing-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(0, 242, 254, 0.3);
}

.feature-icon-lg {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; margin-right: 0; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Glowing background blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}
.blob-1 {
    top: 10%; left: 10%;
    width: 300px; height: 300px;
    background: rgba(0, 242, 254, 0.15);
    border-radius: 50%;
}
.blob-2 {
    top: 40%; right: 10%;
    width: 400px; height: 400px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 50%;
}

/* User Navbar overrides */
.navbar {
    background: rgba(7, 11, 20, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main) !important;
}
.nav-link {
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--accent-primary) !important;
}
/* Global body overrides for layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Fixes for terminal boxes and layout */
.terminal-box {
    background: #0D1117 !important;
    border: 1px solid #1F2937 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
}

.terminal-header {
    background: rgba(255,255,255,0.05) !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #1F2937 !important;
}

.feature-card.landing-feature-card {
    background: #111827 !important;
    border: 1px solid #1F2937 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    height: 100% !important;
}

.feature-card.landing-feature-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    border-color: rgba(0, 242, 254, 0.3) !important;
}

.chat-wrapper {
    background: #111827 !important;
    border: 1px solid #1F2937 !important;
}

.chat-header {
    background: rgba(255,255,255,0.02) !important;
    border-bottom: 1px solid #1F2937 !important;
}

.chat-input-area {
    background: rgba(0,0,0,0.2) !important;
    border-top: 1px solid #1F2937 !important;
}

.chat-input-wrapper {
    background: #070B14 !important;
    border: 1px solid #1F2937 !important;
}

.message.bot {
    background: rgba(31, 41, 55, 0.6) !important;
    border: 1px solid #1F2937 !important;
}

/* Force border radius specifically for the chat container to show the gradient line at top */
.chat-wrapper {
    position: relative;
    border-radius: 16px !important;
}

.chat-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; height: 4px;
    background: linear-gradient(90deg, #00F2FE, #4FACFE) !important;
    z-index: 10;
}

/* Ensure buttons and inputs are consistent */
.btn-glow {
    color: #000 !important;
    background: linear-gradient(90deg, #00F2FE, #4FACFE) !important;
}

.chat-input-wrapper input {
    background: transparent !important;
    color: white !important;
}

.chat-input-wrapper input::placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

.terminal-dots span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot-red { background: #FF5F56 !important; }
.dot-yellow { background: #FFBD2E !important; }
.dot-green { background: #27C93F !important; }

/* ============================================
   Bug report floating launcher
   ============================================ */
.bug-report-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040; /* Below modal (1055) and tooltip, above navbar */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(79, 172, 254, 0.08));
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.bug-report-launcher:hover,
.bug-report-launcher:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(79, 172, 254, 0.18));
    box-shadow: 0 10px 28px rgba(0, 242, 254, 0.18);
    color: var(--text-primary);
    outline: none;
}

.bug-report-launcher:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.35), 0 10px 28px rgba(0, 242, 254, 0.18);
}

.bug-report-launcher .bi {
    color: var(--accent-primary);
    font-size: 1.05rem;
}

@media (max-width: 576px) {
    .bug-report-launcher {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.75rem;
    }
    .bug-report-launcher-label {
        display: none;
    }
}

/* ============================================
   Bug report modal
   ============================================ */
.bug-report-modal .text-muted-muted { color: var(--text-muted); }
.bug-report-modal .bug-report-screenshot-preview {
    max-width: 100%;
    max-height: 180px;
    margin-top: 0.5rem;
    border: 1px solid var(--bg-card);
    border-radius: 4px;
}
.bug-report-modal .bug-report-screenshot-preview[hidden] { display: none; }

/* Admin detail: evidence + diagnostics panels */
.bug-report-evidence { margin-top: 1rem; }
.bug-report-evidence .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bug-report-evidence .bug-report-screenshot-frame {
    display: inline-block;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.bug-report-evidence .bug-report-replay-player {
    margin-top: 1rem;
    max-height: 600px;
    overflow: auto;
}
.bug-report-evidence .bug-report-diagnostics-pre {
    max-height: 400px;
    overflow: auto;
    background: var(--bs-tertiary-bg, #1a1f2e);
    padding: 1em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Bug report — privacy notice + message tones */
.bug-report-modal .bug-report-privacy-notice {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.bug-report-modal .bug-report-privacy-notice ul { margin: 0; }
.bug-report-modal .bug-report-message-error    { color: #ef4444; }
.bug-report-modal .bug-report-message-success  { color: #10b981; }
.bug-report-modal .bug-report-message-info     { color: var(--text-muted); }

/* Bug report — admin log tables */
.bug-report-evidence .bug-report-log-table {
    font-size: 0.85rem;
    margin-bottom: 0;
}
.bug-report-evidence .bug-report-log-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    font-size: 0.72rem;
}
.bug-report-evidence .bug-report-log-time {
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
}
.bug-report-evidence .bug-report-log-error,
.bug-report-evidence .bug-report-log-message,
.bug-report-evidence .bug-report-log-url code {
    word-break: break-word;
}
.bug-report-evidence .bug-report-log-error { color: #fca5a5; }
.bug-report-evidence .bug-report-console-error .bug-report-log-message { color: #fca5a5; }
.bug-report-evidence .bug-report-console-warn  .bug-report-log-message { color: #fbbf24; }
.bug-report-evidence .bug-report-console-info  .bug-report-log-message { color: #93c5fd; }
.bug-report-evidence .bug-report-log-stack,
.bug-report-evidence .bug-report-log-body {
    max-height: 200px;
    overflow: auto;
    background: var(--bs-tertiary-bg, #1a1f2e);
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin: 0.25rem 0 0 0;
}
.bug-report-replay-details {
    margin-top: 0.5rem;
}
.bug-report-replay-details > summary {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    list-style: none;
}
.bug-report-replay-details > summary::-webkit-details-marker { display: none; }
.bug-report-replay-details[open] > summary {
    border-style: solid;
    margin-bottom: 0.5rem;
}
