/**
 * FAQ Knowledge Base - Custom Styles
 * Wikinggruppen-inspired design
 */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Variables - Wikinggruppen Design
   Fixed light theme with teal accents
   ======================================== */
:root {
    /* Typography - Inter with system font fallback */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Wikinggruppen colors - exact match */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-tertiary: #ebebeb;
    --text-primary: #181818;
    --text-secondary: #32373c;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-header-bg: #f7f7f7;
    --input-bg: #ffffff;
    --input-border: #dcdcdc;
    --code-bg: #f4f4f4;
    --pre-bg: #f5f5f5;
    --pre-color: #2d2d2d;
    --link-color: #181818;
    --link-hover: #00d084;
    --shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);

    /* Navbar & Buttons - Custom style */
    --navbar-bg: #184651;
    --navbar-text: #ffffff;
    --navbar-border: rgba(255, 255, 255, 0.1);
    --btn-primary-bg: #00d084;
    --btn-primary-hover: #00b872;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: #184651;
    --btn-secondary-hover: #143841;
    --btn-secondary-text: #ffffff;
    --accent-color: #00d084;
    --accent-color-hover: #00b872;
    --accent-color-light: rgba(0, 208, 132, 0.1);
    --teal-dark: #184651;
    --teal-dark-hover: #143841;

    /* Spacing */
    --spacing-unit: 24px;
    --border-radius: 6px;
    --border-radius-sm: 4px;
}

/* ========================================
   Base Styles with Theme Support
   ======================================== */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation - Custom style (Dark teal header) */
.navbar {
    background-color: var(--navbar-bg) !important;
    padding: 0.75rem 0;
    font-family: var(--font-family);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--navbar-text) !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.navbar-dark .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 400;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: #00d084;
}

/* Buttons - Wikinggruppen style */
.btn {
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    color: var(--btn-primary-text);
}

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

.btn-success:hover,
.btn-success:focus {
    background-color: var(--btn-secondary-hover);
    border-color: var(--btn-secondary-hover);
    color: var(--btn-secondary-text);
}

.btn-outline-primary {
    color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-light {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

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

/* Sidebar */
.sidebar {
    min-height: calc(100vh - 56px);
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-secondary) !important;
}

.sidebar .nav-link {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: var(--bg-tertiary);
}

.sidebar .nav-link.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
}

/* Cards - Wikinggruppen style */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background-color: var(--card-header-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem 1.25rem;
}

.card-body {
    background-color: var(--card-bg);
    padding: 1.25rem;
}

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

/* Article container - Easy on the eyes */
.article-container {
    background-color: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Article content - Wikinggruppen style */
.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
    overflow-x: auto;
}

.article-content * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.article-content p,
.article-content div,
.article-content span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.article-content pre {
    background-color: var(--pre-bg);
    color: var(--pre-color);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.article-content code {
    background-color: var(--code-bg);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    table-layout: fixed;
}

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

.article-content table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    text-align: left;
}

/* Search - Dark navbar style */
.navbar .input-group {
    max-width: 300px;
}

.navbar .form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 208, 132, 0.2);
}

.navbar .btn-primary {
    background-color: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.navbar .btn-primary:hover {
    background-color: var(--btn-secondary-hover);
    border-color: var(--btn-secondary-hover);
    color: var(--btn-secondary-text);
}

/* Tags */
.badge {
    font-weight: 500;
}

.badge.bg-secondary {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}

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

/* Tag links - ensure readable text on hover */
a.badge {
    color: #ffffff !important;
    text-decoration: none;
}

a.badge:hover,
a.badge:focus {
    color: #ffffff !important;
    background-color: var(--accent-color-hover) !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.3);
}

.btn-outline-secondary {
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

/* Tables */
.table {
    color: var(--text-primary);
}

.table th {
    font-weight: 600;
    background-color: var(--bg-secondary);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* Buttons */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

/* Forms - Wikinggruppen style */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    font-family: var(--font-family);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(0, 208, 132, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Statistics cards */
.card.text-center .card-body {
    padding: 1.5rem;
}

.card.text-center .card-title {
    margin-bottom: 0.25rem;
}

.card.text-center .card-text {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Mobile admin menu toggle */
.btn[data-bs-target="#adminSidebar"] {
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn[data-bs-target="#adminSidebar"]:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.btn[data-bs-target="#adminSidebar"] i {
    font-size: 1.25rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    /* Smooth collapse animation for mobile sidebar */
    #adminSidebar.collapsing {
        transition: height 0.3s ease;
    }

    #adminSidebar.collapse:not(.show) {
        display: none;
    }

    #adminSidebar.collapse.show {
        display: block;
    }

    .navbar .input-group {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .article-container {
        padding: 1.5rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    footer {
        display: none !important;
    }

    .article-content {
        max-width: 100%;
    }
}

/* Quill Editor adjustments */
.quill-editor {
    background-color: var(--input-bg);
}

.quill-editor .ql-toolbar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    border-bottom: none;
}

.quill-editor .ql-container {
    border: 1px solid var(--input-border);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background-color: var(--input-bg);
}

.quill-editor .ql-editor {
    min-height: 500px;
    color: var(--text-primary);
}

.quill-editor .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
}

.quill-editor .ql-snow .ql-stroke {
    stroke: var(--text-primary);
}

.quill-editor .ql-snow .ql-fill {
    fill: var(--text-primary);
}

.quill-editor .ql-toolbar button:hover,
.quill-editor .ql-toolbar button:focus,
.quill-editor .ql-toolbar button.ql-active {
    color: var(--accent-color);
}

.quill-editor .ql-toolbar button:hover .ql-stroke,
.quill-editor .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--accent-color);
}

.quill-editor .ql-toolbar button:hover .ql-fill,
.quill-editor .ql-toolbar button.ql-active .ql-fill {
    fill: var(--accent-color);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Transitions */
.card,
.btn,
.nav-link {
    transition: all 0.15s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 208, 132, 0.15);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(50, 55, 60, 0.15);
}

/* Tab styling */
.nav-tabs .nav-link {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-tabs .nav-link.active {
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--card-bg);
    border-color: var(--border-color) var(--border-color) var(--card-bg);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.page-link {
    color: var(--text-primary);
}

.page-link:hover {
    color: var(--accent-color);
    background-color: var(--bg-tertiary);
}

/* List groups */
.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
}

.list-group-item-action {
    transition: background-color 0.2s ease;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Live Search Dropdown */
#publicSearchResults {
    max-width: 500px;
    min-width: 300px;
}

#publicSearchResults .list-group {
    max-height: 400px;
    overflow-y: auto;
    border-radius: var(--border-radius);
}

#publicSearchResults .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

#publicSearchResults .list-group-item:hover,
#publicSearchResults .list-group-item:focus,
#publicSearchResults .list-group-item.active {
    border-left-color: var(--accent-color);
    background-color: var(--bg-secondary);
    cursor: pointer;
}

#publicSearchResults .list-group-item h6 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

#publicSearchResults .list-group-item p {
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

#publicSearchResults .list-group-item:last-child {
    border-bottom: none;
}

/* Responsive search dropdown */
@media (max-width: 767.98px) {
    #publicSearchResults {
        max-width: 100%;
        left: 0 !important;
        right: 0;
    }
}

/* ========================================
   Wikinggruppen Enhanced Colors
   ======================================== */

/* Hero sections with teal gradient */
.hero-section,
.articles-hero,
.category-hero {
    background: linear-gradient(135deg, #184651 0%, #1e5862 50%, #00d084 100%) !important;
    color: #ffffff !important;
    border-radius: 0 0 24px 24px;
}

.hero-section h1,
.hero-section .display-4,
.hero-section .display-5,
.articles-hero h1,
.articles-hero .display-4,
.articles-hero .display-5,
.category-hero h1,
.category-hero .display-4,
.category-hero .display-5 {
    color: #ffffff !important;
}

.hero-section p,
.hero-section .lead,
.articles-hero p,
.articles-hero .lead,
.category-hero p,
.category-hero .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Breadcrumb in hero */
.hero-section .breadcrumb,
.articles-hero .breadcrumb,
.category-hero .breadcrumb {
    background: transparent;
}

.hero-section .breadcrumb-item,
.articles-hero .breadcrumb-item,
.category-hero .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.hero-section .breadcrumb-item a,
.articles-hero .breadcrumb-item a,
.category-hero .breadcrumb-item a {
    color: #ffffff !important;
    text-decoration: none;
}

.hero-section .breadcrumb-item a:hover,
.articles-hero .breadcrumb-item a:hover,
.category-hero .breadcrumb-item a:hover {
    color: #00d084 !important;
    text-decoration: underline;
}

.hero-section .breadcrumb-item.active,
.articles-hero .breadcrumb-item.active,
.category-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .breadcrumb-item + .breadcrumb-item::before,
.articles-hero .breadcrumb-item + .breadcrumb-item::before,
.category-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Search in hero sections */
.hero-section .form-control,
.articles-hero .form-control,
.category-hero .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.hero-section .form-control:focus,
.articles-hero .form-control:focus,
.category-hero .form-control:focus {
    background-color: #ffffff;
    border-color: #00d084;
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.2);
}

.hero-section .input-group-text,
.articles-hero .input-group-text,
.category-hero .input-group-text {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Category icons in hero */
.category-hero-icon {
    font-size: 4rem;
    color: #00d084;
    margin-bottom: 1rem;
}

/* Category cards with teal accents */
.category-card {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    background: #ffffff;
}

.category-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 208, 132, 0.15);
    transform: translateY(-4px);
}

.category-card .category-icon {
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    color: var(--teal-dark);
    transform: scale(1.1);
}

.category-card h3 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--accent-color);
}

.category-card .text-muted {
    color: var(--text-muted) !important;
}

.category-card .badge {
    background-color: var(--accent-color-light) !important;
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Article cards with teal accents */
.article-card .card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.article-card:hover .card {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 208, 132, 0.12);
}

.article-card .card-footer .text-primary {
    color: var(--accent-color) !important;
}

/* Icons with teal color */
.bi-rocket-takeoff,
.bi-shield-check,
.bi-question-circle,
.bi-star-fill {
    color: var(--accent-color);
}

/* Text colors */
.text-primary {
    color: var(--accent-color) !important;
}

/* List group items with teal hover */
.list-group-item-action:hover {
    background-color: var(--accent-color-light);
    border-left: 3px solid var(--accent-color);
}

/* Popular articles list styling */
.popular-article-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.popular-article-item:hover {
    border-left-color: var(--accent-color);
    background-color: var(--accent-color-light);
}

/* Footer with teal background */
footer {
    background: linear-gradient(135deg, #184651 0%, #1e5862 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-color);
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Badge enhancements */
.badge {
    font-size: 0.85em;
    padding: 0.4em 0.8em;
}

.badge.bg-secondary {
    background-color: var(--accent-color) !important;
}

/* Button group styling */
.btn-group .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-group .btn-primary:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
}

/* Admin toolbar styling */
.alert-info {
    background-color: var(--accent-color-light);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.alert-info .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.alert-info .btn-primary:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
}

/* Statistics cards with teal accents */
.card.text-center .display-4,
.card.text-center .display-5,
.card.text-center .display-6 {
    color: var(--accent-color);
    font-weight: 700;
}

/* Enhanced hover effects */
.card:hover {
    border-color: rgba(0, 208, 132, 0.2);
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 208, 132, 0.1);
}

/* Navigation links in content */
.nav-link {
    color: var(--text-primary);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-color);
}

/* Sidebar active state */
.sidebar .nav-link.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

.sidebar .nav-link:hover {
    color: var(--accent-color);
}

/* Internal-only content styling - For public view (logged-in users) */
/* The paragraph between HTML comments gets styled but markers are hidden */
.article-content p[style*="background: #fff4d1"] {
    /* Styling is already inline, just ensure it displays properly */
}

/* Hide the INTERNT markers for logged-in users on public view (keep the styled box) */
.article-content p[style*="background: #fff4d1"] strong:first-child::before {
    content: "🔒 ";
}

/* In CKEditor - ensure markers are visible as blocks */
.ck-content strong[style*="display: block"] {
    display: block !important;
}

/* Live search results styling */
.live-search-results {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.live-search-results .list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: var(--text-primary);
}

.live-search-results .list-group-item:first-child {
    border-top: none;
    border-radius: 8px 8px 0 0;
}

.live-search-results .list-group-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.live-search-results .list-group-item.active {
    background-color: #f0f9f6 !important;
    border-left: 3px solid var(--accent-color);
    color: var(--text-primary) !important;
}

.live-search-results .list-group-item.active h6,
.live-search-results .list-group-item.active p,
.live-search-results .list-group-item.active small {
    color: var(--text-primary) !important;
}

.live-search-results .list-group-item:hover {
    background-color: var(--bg-secondary);
}

.live-search-results h6 {
    color: var(--text-primary);
}

.live-search-results p,
.live-search-results small {
    color: var(--text-muted) !important;
}

.live-search-results .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}
