/* Spacemax Custom Stylesheet */
:root {
    --primary-grad: linear-gradient(135deg, #7c3aed 0%, #ec6a06 100%);
    --card-surface: rgba(23, 27, 38, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f131d;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

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

/* Glass Panels & Gradients */
.glass-panel {
    background: rgba(23, 27, 38, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #ec6a06 100%);
}

.brand-text-gradient {
    background: linear-gradient(135deg, #d2bbff 0%, #ffb690 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Feature Tab Buttons */
.feature-tab-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-tab-btn:hover {
    transform: translateY(-1px);
}
.feature-tab-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #ec6a06 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

/* Documentation Portal Styling */
.doc-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s ease;
    text-align: left;
    border: 1px solid transparent;
}
.doc-sidebar-btn:hover {
    color: #dfe2f1;
    background: rgba(255, 255, 255, 0.04);
}
.doc-sidebar-btn.active {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    font-weight: 600;
}
.doc-sidebar-btn.active span.material-symbols-outlined {
    color: #d2bbff;
}

/* Code Snippets & CSV Previews */
.code-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    background: #090c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow-x: auto;
}

/* Toast Notification */
#toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Flowchart Step Badges */
.flow-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}
