/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F97316;
    --primary-dark: #EA580C;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0a0a0a;
    --border-color: #e0e0e0;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* Black Theme (Default) */
body.theme-black {
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --bg-color: #000000;
    --bg-light: #1a1a1a;
    --bg-dark: #0a0a0a;
    --border-color: #333333;
    --secondary-color: #ffffff;
}

/* Dark theme - make X animation more visible */
body.theme-black .x-line {
    opacity: 0.25;
}

body.theme-black .x-svg {
    opacity: 1;
}

/* Light Theme */
body.theme-light {
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0a0a0a;
    --border-color: #e0e0e0;
    --secondary-color: #1a1a1a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

body.theme-light .navbar {
    background: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-color);
    line-height: 1;
    text-decoration: none;
}

/* Hamburger Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: var(--transition);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.navbar-link:hover {
    color: var(--text-color);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

/* Dashboard link styling when user is logged in */
.navbar-link-dashboard {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(249, 115, 22, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.navbar-link-dashboard:hover {
    color: var(--primary-color);
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--primary-color);
}

.navbar-link-dashboard::after {
    display: none;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Mobile Auth Links in Menu */
.navbar-menu-auth {
    display: none;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

body.theme-light .navbar-menu-auth {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.mobile-auth-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

.mobile-auth-link:last-child {
    margin-bottom: 0;
}

.desktop-auth-buttons {
    display: flex;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}

.mobile-user-profile .user-avatar {
    width: 40px;
    height: 40px;
}

.mobile-user-profile .user-name {
    font-size: 1rem;
}

.navbar-100-box {
    width: 48px;
    height: 32px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-100-box svg {
    width: 100%;
    height: 100%;
}

.navbar-x-box {
    width: 32px;
    height: 32px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-x-box svg {
    width: 100%;
    height: 100%;
}


/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-auth {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-block;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.btn-login {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-login:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-signup {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-signup:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-logout {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-logout:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-toggle {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.theme-light .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle .icon {
    width: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .label {
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 80px;
}

/* X Animation Background */
.x-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.x-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400vmax;
    height: 400vmax;
    min-width: 3000px;
    min-height: 3000px;
    color: var(--text-color);
    animation: xGrow 40s ease-in-out infinite, xPulse 6s ease-in-out infinite;
    will-change: transform, opacity; /* Performance optimization */
}

.x-line {
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    animation: xPulse 6s ease-in-out infinite;
    opacity: 0.2; /* Base opacity for better visibility */
}

@keyframes xGrow {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(8);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes xPulse {
    0%, 100% {
        opacity: 0.12;
        stroke-width: 2;
    }
    25% {
        opacity: 0.25;
        stroke-width: 3;
    }
    50% {
        opacity: 0.35;
        stroke-width: 4;
    }
    75% {
        opacity: 0.25;
        stroke-width: 3;
    }
}

.hero-box {
    position: relative;
    z-index: 10;
    border-radius: 24px;
    padding: 4rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

body.theme-light .hero-box {
    background: rgba(255, 255, 255, 0.3);
}

.hero-content {
    position: relative;
    z-index: 11;
}

/* Hero Branding */
.hero-branding {
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.brand-100-box {
    width: 120px;
    height: 80px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.brand-100-box svg {
    width: 100%;
    height: 100%;
}

.brand-x-box {
    width: 80px;
    height: 80px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.brand-x-box svg {
    width: 100%;
    height: 100%;
}

.brand-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin: 1.5rem 0 0 0;
    line-height: 1;
    text-align: center;
    opacity: 1;
    position: relative;
    z-index: 10;
    display: block;
    visibility: visible;
}

/* Hero Definition */
.hero-definition {
    margin: 3rem 0;
    position: relative;
    z-index: 10;
}

.hero-blurb {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-light);
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    max-width: 800px;
    text-align: center;
}

.hero-h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero-h2 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Typewriter Container */
.typewriter-container {
    margin-bottom: 3rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.typewriter-prefix {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-color);
    margin: 0;
    line-height: 1;
}

.typewriter-text {
    display: inline-block;
    font-size: inherit;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: blinkCursor 1s infinite;
    padding-right: 3px;
    min-width: 1ch;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes blinkCursor {
    0%, 50% {
        border-color: var(--primary-color);
    }
    51%, 100% {
        border-color: transparent;
    }
}

body.theme-light .typewriter-text {
    border-right-color: var(--text-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

/* Shift Section */
.shift {
    background-color: var(--bg-light);
}

.shift-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.shift-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.shift-content .lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.shift-content .highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Problem Section */
.problem {
    background-color: var(--bg-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-item {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.problem-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.problem-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Solution Section */
.solution {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-item {
    padding: 2.5rem;
    background-color: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.solution-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Workflow Section */
.workflow {
    background-color: var(--bg-color);
}

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.workflow-step:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.workflow-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.workflow-step p {
    color: var(--text-light);
    font-size: 1rem;
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Values Section */
.values {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.contact .section-title {
    color: white;
}

.contact-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.contact .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* Footer heart icon (Material Symbols) */
.material-symbols-outlined.footer-heart {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
    font-size: 1.1rem;
    vertical-align: -0.2em;
    margin: 0 0.15rem;
}

.footer a[href="/changelog"] {
    text-decoration: none;
    color: inherit;
    opacity: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
}

.footer a[href="/changelog"]:hover,
.footer a[href="/changelog"]:visited,
.footer a[href="/changelog"]:active,
.footer a[href="/changelog"]:focus {
    text-decoration: none;
    color: inherit;
    opacity: inherit;
}

.footer-version {
    opacity: 1;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-version:hover {
    opacity: 0.9;
    text-decoration: none;
}

.footer-version:visited {
    color: inherit !important;
    opacity: 1;
    text-decoration: none;
}

.footer-version:active,
.footer-version:focus {
    opacity: 1;
    text-decoration: none;
    outline: none;
}

.footer-link {
    opacity: 1;
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.footer-link:visited {
    color: inherit;
    opacity: 0.8;
}

/* Legal Document Styles (Terms & Privacy) */
.legal-main {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
    min-width: 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legal-section {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

body.theme-light .legal-section {
    background: rgba(255, 255, 255, 0.5);
}

.legal-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legal-section-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.theme-light .legal-section-content {
    background: rgba(0, 0, 0, 0.04);
}

.legal-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.legal-section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
}

.legal-subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.legal-subsection-title:first-child {
    margin-top: 0;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.legal-list li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.legal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .legal-main {
        padding-top: 120px;
    }

    .legal-container {
        padding: 0 1.5rem;
    }

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

    .legal-subtitle {
        font-size: 0.9rem;
    }

.legal-section {
    padding: 1.5rem;
}

.legal-section-content {
    padding: 1.25rem;
}

.legal-section-title {
    font-size: 1.25rem;
}
}

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

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

    .legal-section {
        padding: 1.25rem;
    }
}

/* Company Page Layout with Sidebar */
.company-layout {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.company-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.company-nav {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 0;
}

body.theme-light .company-nav {
    background: rgba(255, 255, 255, 0.5);
}

.company-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.company-nav-list li {
    margin: 0;
}

.company-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.company-nav-link:hover {
    color: var(--text-color);
}

.company-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.company-nav-link:hover::after {
    height: 100%;
}

.company-nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.company-nav-link.active::after {
    height: 100%;
}


@media (max-width: 1024px) {
    .company-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .company-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }

    .company-nav-list {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0 1rem;
    }

    .company-nav-link {
        padding: 0.75rem 1.25rem;
        white-space: nowrap;
    }

    .company-nav-link::after {
        left: auto;
        top: auto;
        bottom: 0;
        width: 0;
        height: 3px;
        transition: width 0.3s ease;
    }

    .company-nav-link:hover::after {
        width: 100%;
        height: 3px;
    }

    .company-nav-link.active::after {
        width: 100%;
        height: 3px;
    }
}

@media (max-width: 768px) {
    .company-layout {
        padding: 0 1.5rem;
    }

    .legal-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .company-layout {
        padding: 0 1rem;
    }

    .company-nav {
        border-radius: 8px;
    }

    .company-nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Lifecycle Section */
.lifecycle-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.lifecycle-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.lifecycle-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.lifecycle-item:nth-child(1) {
    transition-delay: 0.1s;
}

.lifecycle-item:nth-child(2) {
    transition-delay: 0.2s;
}

.lifecycle-item:nth-child(3) {
    transition-delay: 0.3s;
}

.lifecycle-item:nth-child(4) {
    transition-delay: 0.4s;
}

.lifecycle-item:last-child {
    margin-bottom: 0;
}

.lifecycle-item-left {
    flex-direction: row;
}

.lifecycle-item-right {
    flex-direction: row-reverse;
}

.lifecycle-content {
    flex: 1;
    min-width: 0;
}

.lifecycle-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lifecycle-description {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.lifecycle-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifecycle-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lifecycle-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Blob Container */
.blob-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

/* Base Blob Styles */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    mix-blend-mode: normal;
}

/* Deploy Blobs - Orange/Pink gradient */
.blob-deploy.blob-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.8), rgba(249, 115, 22, 0.4), transparent 70%);
    top: 10%;
    left: 20%;
    animation: blobMove1 15s ease-in-out infinite;
}

.blob-deploy.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), rgba(236, 72, 153, 0.3), transparent 70%);
    bottom: 15%;
    right: 10%;
    animation: blobMove2 18s ease-in-out infinite;
}

.blob-deploy.blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.7), rgba(251, 146, 60, 0.35), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobMove3 20s ease-in-out infinite;
}

/* Scale Blobs - Orange/Blue gradient */
.blob-scale.blob-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.8), rgba(249, 115, 22, 0.4), transparent 70%);
    top: 5%;
    right: 15%;
    animation: blobMove4 16s ease-in-out infinite;
}

.blob-scale.blob-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.3), transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: blobMove5 19s ease-in-out infinite;
}

.blob-scale.blob-3 {
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.7), rgba(251, 146, 60, 0.35), transparent 70%);
    top: 45%;
    right: 45%;
    animation: blobMove6 17s ease-in-out infinite;
}

/* Secure Blobs - Orange/Purple gradient */
.blob-secure.blob-1 {
    width: 310px;
    height: 310px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.8), rgba(249, 115, 22, 0.4), transparent 70%);
    top: 12%;
    left: 18%;
    animation: blobMove7 14s ease-in-out infinite;
}

.blob-secure.blob-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.6), rgba(147, 51, 234, 0.3), transparent 70%);
    bottom: 12%;
    right: 12%;
    animation: blobMove8 21s ease-in-out infinite;
}

.blob-secure.blob-3 {
    width: 275px;
    height: 275px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.7), rgba(251, 146, 60, 0.35), transparent 70%);
    top: 48%;
    left: 48%;
    transform: translate(-50%, -50%);
    animation: blobMove9 18s ease-in-out infinite;
}

/* Monitor Blobs - Orange/Cyan gradient */
.blob-monitor.blob-1 {
    width: 305px;
    height: 305px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.8), rgba(249, 115, 22, 0.4), transparent 70%);
    top: 8%;
    right: 18%;
    animation: blobMove10 15s ease-in-out infinite;
}

.blob-monitor.blob-2 {
    width: 370px;
    height: 370px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6), rgba(6, 182, 212, 0.3), transparent 70%);
    bottom: 8%;
    left: 8%;
    animation: blobMove11 20s ease-in-out infinite;
}

.blob-monitor.blob-3 {
    width: 285px;
    height: 285px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.7), rgba(251, 146, 60, 0.35), transparent 70%);
    top: 46%;
    right: 46%;
    animation: blobMove12 17s ease-in-out infinite;
}

/* Blob Animations */
@keyframes blobMove1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

@keyframes blobMove2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-35px, 45px) scale(0.85);
    }
    66% {
        transform: translate(25px, -35px) scale(1.2);
    }
}

@keyframes blobMove3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    33% {
        transform: translate(calc(-50% + 40px), calc(-50% - 30px)) scale(1.1);
    }
    66% {
        transform: translate(calc(-50% - 25px), calc(-50% + 35px)) scale(0.95);
    }
}

@keyframes blobMove4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-30px, 35px) scale(1.12);
    }
    66% {
        transform: translate(25px, -30px) scale(0.88);
    }
}

@keyframes blobMove5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -45px) scale(0.9);
    }
    66% {
        transform: translate(-30px, 40px) scale(1.18);
    }
}

@keyframes blobMove6 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-35px, -25px) scale(1.05);
    }
    66% {
        transform: translate(30px, 40px) scale(0.92);
    }
}

@keyframes blobMove7 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(35px, -35px) scale(1.08);
    }
    66% {
        transform: translate(-25px, 30px) scale(0.93);
    }
}

@keyframes blobMove8 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 50px) scale(0.87);
    }
    66% {
        transform: translate(30px, -40px) scale(1.22);
    }
}

@keyframes blobMove9 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    33% {
        transform: translate(calc(-50% + 35px), calc(-50% + 40px)) scale(1.06);
    }
    66% {
        transform: translate(calc(-50% - 30px), calc(-50% - 25px)) scale(0.94);
    }
}

@keyframes blobMove10 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-28px, 38px) scale(1.1);
    }
    66% {
        transform: translate(32px, -28px) scale(0.91);
    }
}

@keyframes blobMove11 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(45px, -50px) scale(0.89);
    }
    66% {
        transform: translate(-35px, 45px) scale(1.19);
    }
}

@keyframes blobMove12 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(38px, 32px) scale(1.03);
    }
    66% {
        transform: translate(-32px, -38px) scale(0.97);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem 1.5rem;
        gap: 1rem;
        position: relative;
    }

    .navbar-toggle {
        display: flex;
        order: 2;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 2rem 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.theme-light .navbar-menu {
        background: rgba(255, 255, 255, 0.95);
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 2rem 0;
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
    }

    .navbar-link {
        font-size: 1rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }

    .navbar-link::after {
        display: none;
    }

    .navbar-menu-auth {
        display: block;
    }

    .desktop-auth-buttons {
        display: none;
    }

    .navbar-actions {
        order: 3;
        gap: 0.5rem;
    }

    .hero {
        padding-top: 100px;
    }

    .x-svg {
        width: 250vmax;
        height: 250vmax;
        min-width: 1500px;
        min-height: 1500px;
    }
    .brand-100-box {
        width: 90px;
        height: 60px;
    }

    .brand-x-box {
        width: 60px;
        height: 60px;
    }

    .brand-container {
        gap: 1rem;
    }

    .brand-title {
        font-size: 3rem;
    }

    .hero-box {
        padding: 3rem 2rem;
        border-radius: 20px;
        max-width: 95%;
    }

    .hero-definition {
        margin: 2rem 0;
    }

    .hero-blurb {
        font-size: 1rem;
        max-width: 95%;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero-h2 {
        font-size: 1.75rem;
        max-width: 95%;
        line-height: 1.4;
    }

    .typewriter-text {
        font-size: 1.75rem;
        border-right-width: 3px;
        padding-right: 2px;
    }

    .navbar-container {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .navbar-brand .brand-text {
        font-size: 1.25rem;
    }

    .navbar-menu {
        gap: 1rem;
    }

    .navbar-link {
        font-size: 0.8125rem;
    }

    .navbar-actions {
        gap: 0.5rem;
    }

    .auth-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .btn-auth {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .theme-toggle {
        padding: 5px 8px;
        font-size: 0.8125rem;
    }

    .theme-toggle .icon {
        width: 14px;
    }

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

    .section-subtitle {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }

    .lifecycle-item {
        flex-direction: column !important;
        gap: 2.5rem;
        margin-bottom: 4rem;
        text-align: center;
        transform: translateY(30px);
    }

    .lifecycle-content {
        order: 2;
    }

    .lifecycle-image {
        order: 1;
    }

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

    .lifecycle-description {
        font-size: 1.125rem;
    }

    .lifecycle-image-placeholder {
        max-width: 300px;
    }

    .blob {
        filter: blur(50px);
    }

    .blob-deploy.blob-1,
    .blob-scale.blob-1,
    .blob-secure.blob-1,
    .blob-monitor.blob-1 {
        width: 250px;
        height: 250px;
    }

    .blob-deploy.blob-2,
    .blob-scale.blob-2,
    .blob-secure.blob-2,
    .blob-monitor.blob-2 {
        width: 280px;
        height: 280px;
    }

    .blob-deploy.blob-3,
    .blob-scale.blob-3,
    .blob-secure.blob-3,
    .blob-monitor.blob-3 {
        width: 220px;
        height: 220px;
    }

    .workflow-steps {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.875rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .navbar-brand .brand-text {
        font-size: 1.125rem;
    }

    .navbar-toggle {
        width: 24px;
        height: 24px;
    }

    .navbar-menu {
        top: 60px;
    }

    .navbar-link {
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }

    .navbar-actions {
        gap: 0.375rem;
        margin-left: auto;
    }

    .hero {
        padding-top: 140px;
        min-height: 100vh;
    }

    .x-svg {
        width: 200vmax;
        height: 200vmax;
        min-width: 1200px;
        min-height: 1200px;
    }


    .auth-buttons {
        gap: 0.375rem;
    }

    .btn-auth {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
        min-height: 32px;
    }

    .theme-toggle {
        padding: 4px 6px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .theme-toggle .icon {
        width: 12px;
    }

    .theme-toggle .label {
        font-size: 0.75rem;
    }

    .hero-definition {
        margin: 1.5rem 0;
    }

    .hero-blurb {
        font-size: 0.9375rem;
        max-width: 100%;
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
        line-height: 1.5;
    }

    .hero-h1 {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .hero-h2 {
        font-size: 1.5rem;
        max-width: 100%;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .typewriter-text {
        font-size: 1.5rem;
        border-right-width: 3px;
        padding-right: 2px;
    }

    .hero-cta {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 38px;
        width: auto;
    }

    .container {
        padding: 0 1rem;
    }

    .lifecycle-section {
        padding: 4rem 0;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .lifecycle-item {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 3rem;
        text-align: center;
        transform: translateY(30px);
    }

    .lifecycle-content {
        order: 2;
    }

    .lifecycle-image {
        order: 1;
    }

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

    .lifecycle-description {
        font-size: 1.0625rem;
    }

    .lifecycle-image-placeholder {
        max-width: 250px;
    }

    .blob {
        filter: blur(40px);
    }

    .blob-deploy.blob-1,
    .blob-scale.blob-1,
    .blob-secure.blob-1,
    .blob-monitor.blob-1 {
        width: 200px;
        height: 200px;
    }

    .blob-deploy.blob-2,
    .blob-scale.blob-2,
    .blob-secure.blob-2,
    .blob-monitor.blob-2 {
        width: 230px;
        height: 230px;
    }

    .blob-deploy.blob-3,
    .blob-scale.blob-3,
    .blob-secure.blob-3,
    .blob-monitor.blob-3 {
        width: 180px;
        height: 180px;
    }
}

    .hero-cta {
        flex-direction: row;
        align-items: center;
    }

    .btn {
        width: auto;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Admin Dashboard Layout */
.dashboard-body {
    overflow-x: hidden;
}

.dashboard-body .navbar {
    display: none;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Left Sidebar */
.admin-sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

body.theme-light .admin-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right-color: var(--border-color);
}

.sidebar-header {
    height: 64px;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.sidebar-brand {
    text-decoration: none;
    color: var(--text-color);
}

.sidebar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-project-selector {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.project-selector-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-select-sidebar {
    appearance: none;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 6px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

body.theme-light .project-select-sidebar {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.2);
}

.project-select-sidebar:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-color);
}

body.theme-light .project-select-sidebar:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-color);
}

.project-select-sidebar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--text-color);
}

body.theme-light .sidebar-link:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--text-color);
}

.sidebar-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link svg {
    flex-shrink: 0;
}

.sidebar-link span {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Nested Sidebar Menu */
.sidebar-menu-item-has-children {
    position: relative;
}

.sidebar-link-parent {
    justify-content: space-between;
}

.sidebar-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.6;
    cursor: pointer;
}

.sidebar-chevron:hover {
    opacity: 1;
}

.sidebar-menu-item-expanded .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu-item-expanded .sidebar-submenu {
    max-height: 200px;
}

.sidebar-submenu-item {
    margin: 0;
}

.sidebar-link-child {
    padding-left: 2.75rem;
    font-size: 0.8125rem;
}

.sidebar-link-child svg {
    width: 18px;
    height: 18px;
}

.sidebar-link-child:hover {
    background: rgba(249, 115, 22, 0.08);
}

.sidebar-link-child.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(249, 115, 22, 0.1);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}


.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 260px;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-right 0.3s ease;
}

.admin-main.has-right-sidebar {
    margin-right: 380px;
}

.admin-main-with-secondary-sidebar {
    display: flex;
    flex-direction: column;
}

.deployment-detail-layout {
    display: flex;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
}

.deployment-detail-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.deployment-secondary-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
}

body.theme-light .deployment-secondary-sidebar {
    background: rgba(255, 255, 255, 0.7);
}

.deployment-secondary-sidebar-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deployment-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.deployment-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.deployment-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.deployment-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.deployment-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.deployment-overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deployment-overview-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.deployment-overview-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Deployment Tabs */
.deployment-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.deployment-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -1px;
}

.deployment-tab:hover {
    color: var(--text-color);
    background: var(--card-hover);
}

.deployment-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.deployment-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.deployment-tab-content {
    position: relative;
}

.deployment-tab-pane {
    display: none;
}

.deployment-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Bar */
.admin-topbar {
    height: 64px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

body.theme-light .admin-topbar {
    background: rgba(255, 255, 255, 0.7);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    position: relative;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb-dropdown {
    position: relative;
    z-index: 10001;
}

.breadcrumb-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.breadcrumb-dropdown-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.breadcrumb-dropdown-toggle[aria-expanded="true"] {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.breadcrumb-dropdown-toggle[aria-expanded="true"] .breadcrumb-dropdown-chevron {
    transform: rotate(180deg);
}

.breadcrumb-dropdown-text {
    min-width: 120px;
    text-align: left;
}

.breadcrumb-dropdown-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.breadcrumb-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    z-index: 10000;
    display: none;
}

body.theme-light .breadcrumb-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.breadcrumb-dropdown-menu[aria-hidden="false"] {
    display: block;
}

.breadcrumb-dropdown-item {
    margin: 0;
    padding: 0;
}

.breadcrumb-dropdown-option {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--text-color);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.breadcrumb-dropdown-option:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.breadcrumb-dropdown-option[aria-selected="true"] {
    background: var(--primary-color);
    color: var(--bg-primary);
    font-weight: 500;
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.01em;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
}

body.theme-light .sidebar-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
}


.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}



/* Admin Content */
.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 2rem;
}

.content-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Stat Cards */
.stat-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

body.theme-light .stat-card {
    background: rgba(255, 255, 255, 0.5);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.stat-icon-orange {
    background: rgba(249, 115, 22, 0.2);
    color: #F97316;
}

.stat-icon-purple {
    background: rgba(147, 51, 234, 0.2);
    color: #9333EA;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Content Cards */
.content-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

body.theme-light .content-card {
    background: rgba(255, 255, 255, 0.5);
}

.content-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.content-card-large {
    grid-column: span 2;
}

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.card-action {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.card-action:hover {
    color: var(--primary-dark);
}

.card-body {
    padding: 1.5rem;
}

/* Deployment List */
.deployment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deployment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

body.theme-light .deployment-item {
    background: rgba(249, 115, 22, 0.03);
    border-color: rgba(249, 115, 22, 0.1);
}

.deployment-item:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-color);
}

body.theme-light .deployment-item:hover {
    background: rgba(249, 115, 22, 0.08);
    border-color: var(--primary-color);
}

.deployment-info {
    flex: 1;
}

.deployment-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.deployment-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.deployment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.deployment-status-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.deployment-status-warning {
    background: rgba(249, 115, 22, 0.2);
    color: #F97316;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Deployments Page - Table Layout */
.deployments-table-wrapper {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

body.theme-light .deployments-table-wrapper {
    background: rgba(255, 255, 255, 0.6);
}

.deployments-table {
    width: 100%;
    border-collapse: collapse;
}

.deployments-table thead {
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-color);
}

body.theme-light .deployments-table thead {
    background: rgba(0, 0, 0, 0.05);
}

.deployments-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    white-space: nowrap;
}

.deployments-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.deployments-table tbody tr:last-child {
    border-bottom: none;
}

.deployments-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.08);
}

.deployments-table tbody tr.deployment-row-active {
    background: rgba(249, 115, 22, 0.15);
    border-left: 3px solid var(--primary-color);
}

body.theme-light .deployments-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

body.theme-light .deployments-table tbody tr.deployment-row-active {
    background: rgba(249, 115, 22, 0.1);
}

.deployments-table td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-color);
    vertical-align: middle;
}

.deployment-table-name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deployment-table-name strong {
    font-weight: 600;
    color: var(--text-color);
}

.deployment-hash {
    font-size: 0.8125rem;
    color: var(--text-color);
    font-weight: 500;
}

.deployment-build-time {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
}

.deployment-commit-message {
    font-size: 0.875rem;
    color: var(--text-color);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.deployment-source {
    font-size: 0.8125rem;
    color: var(--text-color);
    text-transform: capitalize;
}

.deployment-source-git-auto-deploy {
    color: #3b82f6;
}

.deployment-source-manual {
    color: var(--text-light);
}

.deployment-status {
    display: flex;
    align-items: center;
}

.deployment-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.deployment-status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.deployment-status-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.deployment-status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.deployment-status-pending {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.deployment-time {
    font-size: 0.8125rem;
    color: var(--text-color);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.deployment-time-pending {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
}

.deployment-table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.deployment-actions-dropdown {
    position: relative;
    z-index: 100;
}

.deployment-actions-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    font: inherit;
    transition: var(--transition);
}

.deployment-actions-toggle:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.deployment-actions-toggle[aria-expanded="true"] {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
}

.deployment-actions-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    z-index: 10001;
    display: none;
}

body.theme-light .deployment-actions-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.deployment-actions-menu[aria-hidden="false"] {
    display: block;
}

.deployment-actions-item {
    margin: 0;
    padding: 0;
}

.deployment-actions-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
    padding: 0;
}

.deployment-actions-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--text-color);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font: inherit;
}

.deployment-actions-option:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.deployment-actions-option svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.deployment-actions-option:hover svg {
    opacity: 1;
}

.deployment-actions-redeploy {
    color: #3b82f6;
}

.deployment-actions-redeploy:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.deployment-actions-delete {
    color: #ef4444;
}

.deployment-actions-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Deployment Card */
.deployment-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: var(--transition);
}

body.theme-light .deployment-card {
    background: rgba(255, 255, 255, 0.6);
}


.deployment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.deployment-card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.deployment-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.deployment-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
}

.deployment-badge-production {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

.deployment-badge-staging {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #F97316;
}

.deployment-badge-preview {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3B82F6;
}

/* Deployment Lifecycle States */
.deployment-lifecycle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.lifecycle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.deployment-lifecycle-building {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.deployment-lifecycle-building .lifecycle-dot {
    background: #3B82F6;
}

.deployment-lifecycle-deploying {
    background: rgba(249, 115, 22, 0.2);
    color: #F97316;
}

.deployment-lifecycle-deploying .lifecycle-dot {
    background: #F97316;
}

.deployment-lifecycle-deployed {
    background: rgba(250, 204, 21, 0.2);
    color: #FACC15;
}

.deployment-lifecycle-deployed .lifecycle-dot {
    background: #FACC15;
    animation: none;
}

.deployment-lifecycle-running {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.deployment-lifecycle-running .lifecycle-dot {
    background: #22C55E;
    animation: none;
}

.deployment-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.deployment-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deployment-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.deployment-info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.deployment-commit {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.8125rem;
}

/* Deployment Pipeline Visualization */
.deployment-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

body.theme-light .deployment-pipeline {
    background: rgba(0, 0, 0, 0.05);
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.pipeline-step-complete {
    background: rgba(34, 197, 94, 0.1);
}

.pipeline-step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.pipeline-step-complete .pipeline-step-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.pipeline-step:not(.pipeline-step-complete) .pipeline-step-icon {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-light);
}

.pipeline-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.pipeline-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

.pipeline-step-time {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.pipeline-step-pending {
    color: var(--text-light);
    font-style: italic;
}

.pipeline-connector {
    height: 20px;
    width: 2px;
    margin-left: 11px;
    background: rgba(148, 163, 184, 0.3);
    transition: var(--transition);
}

.pipeline-connector-complete {
    background: rgba(34, 197, 94, 0.5);
}

/* Deployment Actions */
.deployment-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.deployment-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.deployment-action-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.deployment-action-btn svg {
    flex-shrink: 0;
}

/* Right Sidebar - Deployment Details */
.deployment-sidebar {
    width: 380px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: -380px;
    top: 0;
    height: 100vh;
    z-index: 90;
    transition: right 0.3s ease;
    overflow: hidden;
}

body.theme-light .deployment-sidebar {
    background: rgba(255, 255, 255, 0.95);
}

.deployment-sidebar-open {
    right: 0;
}

.deployment-sidebar-header {
    height: 64px;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.deployment-sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.deployment-sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deployment-sidebar-close:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--text-color);
}

.deployment-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.deployment-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    text-align: center;
    gap: 1rem;
}

.deployment-sidebar-empty svg {
    opacity: 0.3;
}

.deployment-sidebar-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* Deployment Details */
.deployment-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deployment-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.deployment-details-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.deployment-details-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deployment-details-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 0;
}

.deployment-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.deployment-details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.deployment-details-item:last-child {
    border-bottom: none;
}

.deployment-details-label {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.deployment-details-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}

/* Environment Variables List */
.deployment-env-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deployment-env-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

body.theme-light .deployment-env-item {
    background: rgba(0, 0, 0, 0.05);
}

.deployment-env-key {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    min-width: 120px;
}

.deployment-env-value {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    flex: 1;
    text-align: right;
}

.deployment-env-secret-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Certificates List */
.deployment-cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deployment-cert-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

body.theme-light .deployment-cert-item {
    background: rgba(0, 0, 0, 0.05);
}

.deployment-cert-domain {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.deployment-cert-expiry {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Timeline */
.deployment-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deployment-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.deployment-timeline-label {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.deployment-timeline-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* Deployment Details Actions */
.deployment-details-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .deployments-grid {
        grid-template-columns: 1fr;
    }
    
    .deployment-info-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .deployment-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .deployment-sidebar {
        width: 100%;
        right: -100%;
    }

    .admin-main.has-right-sidebar {
        margin-right: 0;
    }
}

/* Action List */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.card-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Admin Layout */
@media (max-width: 1024px) {
    .content-card-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-topbar {
        padding: 0 1rem;
    }

    .topbar-title {
        font-size: 1.125rem;
    }

    .admin-content {
        padding: 1.5rem 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-topbar {
        padding: 0 0.75rem;
    }

    .topbar-left {
        gap: 1rem;
    }

    .topbar-title {
        font-size: 1rem;
    }

    .admin-content {
        padding: 1rem 0.75rem;
    }


    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }
}

/* Changelog Styles */
.changelog-main {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
}

.changelog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.changelog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.changelog-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.changelog-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
}

.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.changelog-entry {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

body.theme-light .changelog-entry {
    background: rgba(255, 255, 255, 0.5);
}

.changelog-entry:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.changelog-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.changelog-version-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.changelog-version-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.changelog-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.changelog-description-column {
    display: flex;
    flex-direction: column;
}

.changelog-description-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.theme-light .changelog-description-box {
    background: rgba(0, 0, 0, 0.04);
}

.changelog-feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.changelog-feature-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.changelog-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.changelog-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.changelog-section-header:hover {
    color: var(--primary-color);
}

.changelog-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-light);
}

.changelog-section-header[aria-expanded="true"] .changelog-chevron {
    transform: rotate(180deg);
}

.changelog-section-content {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.changelog-section-content[hidden] {
    display: none;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.changelog-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.changelog-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsive Changelog */
@media (max-width: 768px) {
    .changelog-main {
        padding-top: 120px;
    }

    .changelog-container {
        padding: 0 1.5rem;
    }

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

    .changelog-subtitle {
        font-size: 1rem;
    }

    .changelog-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .changelog-version-column {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }

    .changelog-version-number {
        font-size: 1.25rem;
    }

    .changelog-feature-title {
        font-size: 1.5rem;
    }

    .changelog-feature-description {
        font-size: 0.9375rem;
    }
}

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

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

    .changelog-row {
        padding: 1.25rem;
    }

    .changelog-feature-title {
        font-size: 1.25rem;
    }

    .footer {
        padding: 1rem 0;
    }

    .footer p {
        font-size: 0.75rem;
        line-height: 1.6;
        padding: 0 0.75rem;
    }

    .footer-link {
        font-size: 0.75rem;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lifecycle-item,
    .section-title,
    .section-subtitle {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .blob {
        animation: none !important;
    }

    .dashboard-card {
        transform: none !important;
    }
}

/* Signals (Golden Signals Observability) Layout */
.signals-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* stack all signals sections vertically */
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.signals-panel {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

body.theme-light .signals-panel {
    background: rgba(255, 255, 255, 0.6);
}

.signals-panel-header {
    margin-bottom: 1rem;
}

.signals-panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.signals-panel-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.signals-canvas-wrapper {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.28), transparent 55%);
}

.signals-canvas {
    width: 100%;
    height: 320px;
}

.signals-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem 0.9rem 0.9rem 0.9rem;
    font-size: 0.8rem;
    color: var(--text-light);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
}

body.theme-light .signals-legend {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
}

.signals-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.signals-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.signals-legend-dot-healthy {
    background: #22C55E;
}

.signals-legend-dot-warning {
    background: #F97316;
}

.signals-legend-dot-critical {
    background: #EF4444;
}

.signals-metrics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* one chart per row on all screen sizes */
    gap: 1rem;
    margin-top: 1rem;
}

.signals-metric {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.9rem 0.9rem 0.6rem 0.9rem;
}

body.theme-light .signals-metric {
    background: rgba(255, 255, 255, 0.8);
}

.signals-metric-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.signals-metric-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.signals-metric-unit {
    font-size: 0.75rem;
    color: var(--text-light);
}

.signals-chart {
    width: 100%;
    height: 90px;
    max-height: 90px;
}

@media (max-width: 768px) {
    .signals-canvas {
        height: 260px;
    }
    /* already single column; keep vertical stacking */
}

/* Logs (Terminal-style Log Management) Layout */
.logs-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
}

.logs-panel {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

body.theme-light .logs-panel {
    background: rgba(255, 255, 255, 0.7);
}

.logs-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logs-panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem;
}

.logs-panel-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.logs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logs-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-light);
}

.logs-badge-green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.6);
    color: #22C55E;
}

.logs-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logs-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.logs-controls-row-bottom {
    justify-content: space-between;
}

.logs-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logs-control-grow {
    flex: 1;
    min-width: 220px;
}

.logs-control-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.logs-select {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

body.theme-light .logs-select {
    background: rgba(255, 255, 255, 0.9);
}

.logs-select:hover {
    border-color: var(--primary-color);
}

.logs-search-wrapper {
    position: relative;
}

.logs-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-color);
    font-size: 0.875rem;
    transition: var(--transition);
}

body.theme-light .logs-search-input {
    background: rgba(255, 255, 255, 0.9);
}

.logs-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.logs-search-icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.logs-level-toggle-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.logs-level-toggle {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

.logs-level-toggle:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.logs-level-toggle.active {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.logs-switches {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.logs-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-light);
    cursor: pointer;
}

.logs-switch input {
    display: none;
}

.logs-switch-slider {
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    position: relative;
    transition: background 0.2s;
}

.logs-switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform 0.2s;
}

.logs-switch input:checked + .logs-switch-slider {
    background: rgba(249, 115, 22, 0.8);
}

.logs-switch input:checked + .logs-switch-slider::after {
    transform: translateX(12px);
}

/* Terminal-style log stream */
.logs-stream {
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #0a0a0a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

body.theme-light .logs-stream {
    background: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Terminal scrollbar styling */
.logs-stream::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.logs-stream::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.logs-stream::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

.logs-stream::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Log line styling */
.logs-line {
    white-space: pre;
    padding: 0.125rem 0;
    margin: 0;
    word-break: break-all;
    font-variant-ligatures: none;
    letter-spacing: 0.01em;
}

/* Log level colors - terminal style */
.logs-line-info {
    color: #9ca3af;
}

.logs-line-warn {
    color: #fbbf24;
}

.logs-line-error {
    color: #f87171;
    font-weight: 500;
}

.logs-line-debug {
    color: #6ee7b7;
}

.logs-line-highlight {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
}

.logs-line-hidden {
    display: none;
}

/* Terminal prompt-like styling for timestamps */
.logs-line::before {
    content: '';
    display: inline-block;
    width: 0;
}

.logs-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.logs-footer-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    color: var(--text-light);
}

.logs-footer-btn {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

/* Side panel */
.logs-panel-side {
    max-height: 100%;
}

.logs-side-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logs-side-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

body.theme-light .logs-side-card {
    background: rgba(255, 255, 255, 0.9);
}

.logs-side-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.logs-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.logs-side-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.logs-side-list li:last-child {
    margin-bottom: 0;
}

.logs-side-list li span {
    color: var(--text-light);
}

.logs-side-list li strong {
    color: var(--text-color);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.logs-side-list-metrics strong {
    color: var(--primary-color);
}

.logs-side-bullets {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.logs-side-bullets li + li {
    margin-top: 0.25rem;
}

.logs-side-bullets code {
    background: rgba(15, 23, 42, 0.8);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.75rem;
    color: var(--primary-color);
}

body.theme-light .logs-side-bullets code {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .logs-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .logs-layout {
        flex-direction: column;
    }
    
    .logs-panel-side {
        order: -1;
    }
    
    .logs-stream {
        max-height: 360px;
        font-size: 0.75rem;
    }
    
    .logs-controls-row-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-switches {
        justify-content: flex-start;
    }
}

/* Import Repository Overlay */
.import-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

body.theme-light .import-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
}

.import-modal {
    background: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
}

.import-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.import-search {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.import-search-input {
    background: var(--bg-light) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.import-search-input:focus {
    border-color: var(--primary-color) !important;
    outline: none;
}

.import-content {
    background: var(--bg-color);
}

.import-footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.import-repo-item {
    background: var(--bg-color) !important;
    border-color: var(--border-color) !important;
}

.import-repo-item:hover {
    background: var(--bg-light) !important;
    border-color: var(--primary-color) !important;
}

.import-close-btn {
    color: var(--text-light) !important;
}

.import-close-btn:hover {
    background: var(--bg-light) !important;
    color: var(--text-color) !important;
}

.import-cancel-btn {
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.import-cancel-btn:hover {
    background: var(--bg-light) !important;
    border-color: var(--primary-color) !important;
}

.import-repo-btn {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
}

.import-repo-btn:hover {
    background: var(--primary-dark) !important;
}

/* Blog Page Styles */
.blog-main {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
}

.blog-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.blog-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.blog-content {
    flex: 1;
    min-width: 0;
}

.blog-header {
    text-align: left;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.blog-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.theme-light .blog-card {
    background: rgba(255, 255, 255, 0.5);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

body.theme-light .blog-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-card-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.blog-card-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.theme-light .blog-card-category {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-card-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.blog-card-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.blog-card-link i {
    font-size: 0.875rem;
    transition: var(--transition);
}

.blog-card-link:hover i {
    transform: translate(2px, -2px);
}

/* Tag Cloud Styles - Sidebar */
.tag-cloud-container {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

body.theme-light .tag-cloud-container {
    background: rgba(255, 255, 255, 0.3);
}

.tag-cloud-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag-cloud-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.tag-cloud-clear {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.tag-cloud-clear:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.tag-button {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.theme-light .tag-button {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    color: #333333;
}

.tag-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

body.theme-light .tag-button:hover {
    background: rgba(249, 115, 22, 0.12);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tag-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    font-weight: 600;
}

body.theme-light .tag-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5);
}

/* Blog Card Tags */
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

body.theme-light .blog-tag {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.25);
}

/* No Results Message */
.blog-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

@media (max-width: 1024px) {
    .blog-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .blog-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding-top: 120px;
    }

    .blog-layout {
        padding: 0 1.5rem;
    }

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

    .blog-subtitle {
        font-size: 1.125rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .tag-cloud-container {
        padding: 1.5rem;
    }

    .tag-cloud-title {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .blog-layout {
        padding: 0 1rem;
    }

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

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .tag-cloud-container {
        padding: 1.25rem;
    }

    .tag-cloud {
        gap: 0.5rem;
    }

    .tag-button {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }
}

/* Pricing Page Styles */
.pricing-main {
    padding-top: 100px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
    background-color: var(--bg-color);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

body.theme-black .pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.theme-light .pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 3px;
}

.pricing-card.popular::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
    padding: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.plan-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.plan-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-plan {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-plan-primary {
    background: var(--primary-color);
    color: white;
}

.btn-plan-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-plan-secondary {
    background: transparent;
    color: var(--primary-color);
}

.btn-plan-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.note-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .pricing-main {
        padding-top: 120px;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

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

    .pricing-card {
        padding: 1.5rem;
    }
}
