:root {
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --sidebar-bg: #1d4ed8; /* Restored Blue */
    --sidebar-text: #ffffff; /* Restored White */
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --bg-main: #f8fafc;
    --bg-content: #ffffff;
    --text-main: #334155;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #2563eb;
    
    --warning-bg: #fffbeb;
    --warning-text: #b45309;
    --protip-bg: #ecfdf5;
    --protip-text: #047857;
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Navbar */
.top-navbar {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    width: 250px; /* matches sidebar */
}

.logo-icon {
    font-size: 1.75rem;
}

.search-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    background-color: #27272a;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    color: #a1a1aa;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-family: var(--font-main);
}

.top-actions {
    display: flex;
    gap: 1.25rem;
    font-size: 1.5rem;
    color: #a1a1aa;
}

.top-actions ion-icon {
    cursor: pointer;
    transition: color 0.2s;
}

.top-actions ion-icon:hover {
    color: white;
}

/* Layout Container */
.wiki-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar */
.main-sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem 0;
    flex-shrink: 0;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 1rem 1.5rem 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.sidebar-item ion-icon {
    font-size: 1.25rem;
}

.sidebar-item:hover {
    background-color: var(--sidebar-hover);
}

.sidebar-item.active {
    background-color: var(--sidebar-hover);
    border-left: 4px solid white;
    padding-left: calc(1.5rem - 4px);
}

/* Main Content Wrapper (includes TOC and Content) */
.main-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    background-color: var(--bg-main);
}

.content-section {
    display: none;
    width: 100%;
    height: 100%;
}

.content-section.active {
    display: flex;
}

/* TOC Sidebar (Middle / Right Page Navigation) */
aside.toc-sidebar {
    width: 300px;
    background-color: #ffffff !important; /* Single white card layout */
    border: 1px solid rgba(15, 23, 42, 0.08) !important; /* Clean thin border */
    border-radius: 16px !important; /* Smooth rounded corners */
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    padding: 1.75rem 1.25rem !important;
    flex-shrink: 0 !important;
    gap: 1.25rem !important;
    margin: 2rem 0 2rem 2rem !important; /* Floating margin, not sticking to navbar/sidebar */
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important; /* Soft shadow */
    height: fit-content !important;
    max-height: calc(100vh - 120px) !important;
}

aside.toc-sidebar .toc-title {
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    padding: 0 0.5rem !important;
    color: var(--accent) !important; /* Blue title */
    letter-spacing: 0.1em !important;
    margin-bottom: 0.25rem !important;
}

aside.toc-sidebar .toc-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important; /* Flat list, tight gap */
}

/* Button-like list items for TOC menu */
aside.toc-sidebar .toc-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.6rem 0.8rem !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #475569 !important; /* Muted gray text color */
    border-radius: 8px !important; /* Rounded highlight on hover */
    background-color: transparent !important; /* Flat row */
    border: none !important;
    transition: all 0.2s ease !important;
}

/* Hover state is pointer-like list button */
aside.toc-sidebar .toc-menu-item:hover {
    background-color: #f1f5f9 !important; /* Soft background */
    color: var(--accent) !important; /* Text turns blue */
}

aside.toc-sidebar .toc-menu-item.active {
    background-color: #eff6ff !important; /* Soft blue background */
    color: var(--accent) !important;
    font-weight: 700 !important;
}

aside.toc-sidebar .toc-arrow {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

aside.toc-sidebar .toc-menu-item.expanded .toc-arrow {
    transform: rotate(90deg) !important;
}

/* Submenu container: collapse by default */
aside.toc-sidebar .toc-submenu {
    display: none; /* Collapse by default using display */
    flex-direction: column !important;
    gap: 0.25rem !important;
    padding-left: 1.25rem !important; /* Explicit indentation to distinguish from main headings */
    margin-top: 0.1rem !important;
    margin-bottom: 0.25rem !important;
}

/* Show when open class is active */
aside.toc-sidebar .toc-submenu.open {
    display: flex !important;
}

/* Submenu item flat styles */
aside.toc-sidebar .toc-submenu-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

aside.toc-sidebar .toc-sub-arrow {
    font-size: 0.7rem !important;
    color: #cbd5e1 !important;
    transition: color 0.2s ease !important;
    flex-shrink: 0 !important;
}

aside.toc-sidebar .toc-submenu-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--accent) !important;
}

aside.toc-sidebar .toc-submenu-item:hover .toc-sub-arrow {
    color: var(--accent) !important;
}

aside.toc-sidebar .toc-submenu-item.active {
    color: var(--accent) !important;
    background-color: #eff6ff !important;
    font-weight: 700 !important;
}

aside.toc-sidebar .toc-submenu-item.active .toc-sub-arrow {
    color: var(--accent) !important;
}

/* Clean hr divider line matching Snapmaker card details */
aside.toc-sidebar .toc-divider {
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    margin: 0.5rem 0 !important;
}

/* Extra boxes nested inside TOC card */
aside.toc-sidebar .toc-extra-box {
    padding: 0 0.5rem !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

aside.toc-sidebar .toc-extra-title {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.5rem !important;
}

aside.toc-sidebar .toc-talk-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

aside.toc-sidebar .toc-talk-btn {
    flex: 1 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

aside.toc-sidebar .toc-talk-btn:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: var(--accent) !important;
}

aside.toc-sidebar .toc-talk-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #64748b !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

aside.toc-sidebar .toc-talk-icon:hover {
    background-color: #f8fafc !important;
    color: var(--accent) !important;
    border-color: #94a3b8 !important;
}

aside.toc-sidebar .toc-edit-box {
    margin-top: 0.5rem !important;
}

aside.toc-sidebar .toc-edit-user {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 0.15rem !important;
}

aside.toc-sidebar .toc-edit-time {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Right Content Area */
.content-area {
    flex: 1;
    padding: 2rem 4rem 4rem;
    overflow-y: auto;
    background-color: var(--bg-content);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.content-block {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.content-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-block h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin: 1.5rem 0 0.75rem;
}

/* Quote Box (for intros) */
.quote-box {
    background-color: #f1f5f9;
    border-left: 4px solid var(--text-muted);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.quote-icon {
    font-size: 2rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.quote-box p {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.05rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert.warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-left: 4px solid var(--warning-text);
}

.alert.protip {
    background-color: var(--protip-bg);
    color: var(--protip-text);
    border-left: 4px solid var(--protip-text);
}

/* Lists */
.link-list {
    list-style: none;
    margin-bottom: 1rem;
}

.link-list li {
    margin-bottom: 0.5rem;
}

.link-list li a {
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-list li a::before {
    content: "▸";
    font-size: 1.2rem;
}

.link-list li a:hover {
    text-decoration: underline;
}

.step-list, .standard-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-list li, .standard-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
}

.wiki-table th, .wiki-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.wiki-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-heading);
}

.wiki-table tr:hover td {
    background-color: #f1f5f9;
}

/* Media Placeholders */
.media-placeholder {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

.media-placeholder ion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .toc-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-sidebar {
        position: absolute;
        transform: translateX(-100%);
        z-index: 50;
    }
}

/* Index Page Styles based on design */
.index-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.category-badge {
    display: inline-block;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-main-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.heading-divider {
    height: 2px;
    background: #93c5fd;
    border: none;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.index-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.index-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    color: #475569;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

.index-card.active .card-body {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

.card-icon-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
}

.card-icon-right ion-icon {
    transition: transform 0.3s ease;
}

.index-card.active .card-icon-right ion-icon {
    transform: rotate(90deg);
}

.card-link-btn {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.card-link-btn:hover {
    text-decoration: underline;
}

.index-sub-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #94a3b8;
    padding-bottom: 0.5rem;
    text-transform: capitalize;
}

/* Subpage Views */
.subpage-view {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.subpage-view.active {
    display: block;
}

/* Breadcrumbs back link styling */
.breadcrumb .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumb .back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb .back-link ion-icon {
    font-size: 1rem;
}

/* Lead text style for guides */
.lead-text {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Home Section styles */
.hero-section {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    padding: 3.5rem 2.5rem;
    border-radius: 16px;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.15);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
    color: #eff6ff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: white;
    color: #1d4ed8;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #f1f5f9;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.card-body-simple {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Studio Section styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-image-wrapper {
    position: relative;
    height: 160px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.gallery-image-placeholder ion-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.gallery-image-uploaded {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rainbow-gradient { background: linear-gradient(45deg, #f43f5e, #3b82f6, #10b981, #eab308); }
.blue-gradient { background: linear-gradient(45deg, #1e3a8a, #3b82f6); }
.orange-gradient { background: linear-gradient(45deg, #f97316, #eab308); }
.gray-gradient { background: linear-gradient(45deg, #475569, #94a3b8); }

.gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.gallery-info {
    padding: 1.25rem;
}

.gallery-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.gallery-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.gallery-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.gallery-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Upload print form styles */
.upload-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.upload-section p {
    margin-bottom: 1.5rem;
    color: #64748b;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #1d4ed8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.star-rating-input {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.star-btn {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.star-btn.active {
    color: #fbbf24;
}

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    pointer-events: none;
    transition: background-color 0.2s;
}

.file-upload-wrapper:hover .file-upload-btn {
    background-color: #f1f5f9;
}

.file-name-label {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-submit {
    background-color: #1d4ed8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #1e40af;
}

/* Filaments Section styles */
.filaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.filament-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filament-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filament-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.filament-header ion-icon {
    font-size: 1.5rem;
}

.pla-accent { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.petg-accent { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.carbon-accent { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }

.filament-body {
    padding: 1.5rem;
}

.filament-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1.25rem;
}

.specs-table-wrapper {
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
    border: none;
}

.specs-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
}

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

.specs-table td:first-child {
    font-weight: 600;
    color: #64748b;
    width: 50%;
}

.specs-table td:last-child {
    color: #0f172a;
    text-align: right;
}

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

@media (max-width: 600px) {
    .accessories-grid {
        grid-template-columns: 1fr;
    }
}

.accessory-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: white;
}

.accessory-image-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.accessory-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.accessory-info p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* FAQ Section styles */
.faq-search-wrapper {
    margin-bottom: 2rem;
}

.faq-search-box {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: #0f172a;
}

.faq-category-section {
    margin-bottom: 2.5rem;
}

.faq-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #334155;
}

.faq-question span {
    flex: 1;
}

.faq-question ion-icon:first-child {
    font-size: 1.25rem;
    color: #1d4ed8;
}

.faq-chevron {
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.25rem;
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 0 solid #e2e8f0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem;
    border-top-width: 1px;
}

.faq-answer ul {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.25rem;
}


