/*
 * Veltric Website Styles
 * (Psst... looking for secrets? Try the Konami code or Ctrl+Alt+T!)
 */

/* Kleurenpalet gedefinieerd als CSS variabelen */
:root {
    --color-dark-grey: #0c111a; 
    --color-greyish-blue: #1e2d45; /* Grijsblauw voor secundaire teksten of componenten */
    --color-light-grey: #C7CDD3; /* Lichtgrijs voor achtergronden of kaarten */
    --color-off-white: hsl(222, 28%, 91%); /* Off-white voor primaire tekst */
    --color-deep-blue: #010418; /* Diepblauw voor koppen of belangrijke elementen */
    --color-accent: #4b6fff; /* Accent color for buttons and highlights */
    --color-accent-hover: #3a56c7; /* Darker accent for hover states */
    --color-accent-rgb: 75, 111, 255; /* ADDED: RGB for accent color (used in gradients/rgba) */
    --transition-speed: 0.3s; /* Standard transition speed */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Standard shadow */
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-deep-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, transparent 40%, var(--color-accent));
    animation: loader 1s linear infinite;
    position: relative;
}

.loader-inner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-deep-blue);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pas globale stijlen toe */
body {
    background-color: var(--color-dark-grey);
    color: var(--color-off-white);
    line-height: 1.6;
}

/* Navbar stijlen */
.navbar {
    background-color: rgba(12, 17, 26, 0.7);
    backdrop-filter: blur(8px);
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(12, 17, 26, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Logo styling */
.logo-img {
    height: 36px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-off-white);
    letter-spacing: -0.5px;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

/* Glitch Animation Keyframes */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(2px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--color-light-grey);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-speed);
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-accent);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .active > .nav-link::after {
    width: 60%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .active > .nav-link {
    color: white;
}

/* Hero section styles */
.hero-section {
    height: 100vh;
    position: relative;
    color: var(--color-off-white);
    display: flex;
    align-items: center;
    background-color: #000; /* Black background to blend with the image */
    background-image: url('../img/logo.png');
    background-size: 150% auto; /* Zoomed out background */
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 60px;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-text h1 {
    font-weight: 700;
    margin-bottom: 1.8rem;
    font-size: 3.5rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-text .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.95);
}

.typed-text {
    font-weight: 600;
    color: var(--color-accent);
}

.typed-cursor {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-outline-light {
    border-width: 2px;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--color-deep-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Animated elements */
.animated {
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.delay-1s {
    animation-delay: 0.5s;
}

.delay-2s {
    animation-delay: 1s;
}

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

/* Portfolio section */
#portfolio {
    background-color: var(--color-dark-grey);
    padding: 8rem 0;
    position: relative;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-dark-grey), transparent);
    z-index: 5;
}

#portfolio h2 {
    color: var(--color-off-white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

#portfolio h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

#portfolio p.text-center {
    color: var(--color-light-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Skills section styles */
#skills {
    background-color: var(--color-greyish-blue);
    padding: 8rem 0;
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-greyish-blue), transparent);
    z-index: 5;
}

#skills h2 {
    color: var(--color-off-white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

#skills h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

#skills p.text-center {
    color: var(--color-light-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info h5 {
    color: var(--color-off-white);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.skill-info p {
    color: var(--color-accent);
    font-weight: 700;
    margin: 0;
}

.progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--color-accent);
    transition: width 1.5s ease;
}

/* Testimonial section styles */
#testimonials {
    background-color: var(--color-dark-grey);
    padding: 8rem 0;
    position: relative;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-dark-grey), transparent);
    z-index: 5;
}

#testimonials h2 {
    color: var(--color-off-white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

#testimonials h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

#testimonials p.text-center {
    color: var(--color-light-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.testimonial-item {
    background-color: var(--color-greyish-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-content {
    padding: 25px;
    flex-grow: 1;
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-family: serif;
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.testimonial-content p {
    color: var(--color-light-grey);
    font-style: italic;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--color-accent);
}

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

.testimonial-info h5 {
    margin: 0;
    font-weight: 600;
    color: var(--color-off-white);
    font-size: 1rem;
}

.testimonial-info p {
    margin: 0;
    color: var(--color-accent);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Portfolio filters */
.portfolio-filters {
    margin-bottom: 40px;
}

.btn-filter {
    background-color: transparent;
    border: 1px solid var(--color-greyish-blue);
    color: var(--color-light-grey);
    margin: 0 5px;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 5px 15px rgba(75, 111, 255, 0.3);
}

/* Portfolio items */
.portfolio-container {
    position: relative;
}

.portfolio-item {
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

.portfolio-item.hidden {
    display: none;
}

/* Card customization */
.portfolio-card {
    background-color: var(--color-greyish-blue);
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.card-img-container {
    overflow: hidden;
    position: relative;
    max-height: 200px;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.portfolio-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Card overlay effect */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay-content {
    width: 100%;
}

.project-category {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1.8rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.card-text {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: var(--color-light-grey);
    line-height: 1.6;
}

/* Tags */
.card-tags {
    margin-bottom: 1.2rem;
}

.tag {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-light-grey);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: rgba(255,255,255,0.2);
}

.card .btn {
    margin-top: auto;
    width: 100%;
}

/* Videos section */
#videos {
    background-color: var(--color-greyish-blue);
    padding: 8rem 0;
    position: relative;
}

#videos::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-greyish-blue), transparent);
    z-index: 5;
}

#videos h2 {
    color: var(--color-off-white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

#videos h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

#videos p.text-center {
    color: var(--color-light-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.video-card {
    background-color: var(--color-dark-grey);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h5 {
    color: var(--color-off-white);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.video-info p {
    color: var(--color-light-grey);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.video-info .btn {
    display: block;
    width: 100%;
}

.video-info .btn i {
    margin-left: 5px;
}

/* About section */
#about {
    background-color: var(--color-greyish-blue);
    padding: 8rem 0;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-greyish-blue), transparent);
    z-index: 5;
}

#about h2 {
    color: var(--color-off-white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

#about h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

#about .text-justify {
    color: var(--color-light-grey);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Toolkit List (About Section) */
.toolkit-list .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.9em;
    background-color: var(--color-dark-grey);
    color: var(--color-light-grey);
    font-weight: 500;
    transition: all 0.3s ease;
}

.toolkit-list .badge:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
#contact {
    background-color: var(--color-dark-grey);
    padding: 8rem 0;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-dark-grey), transparent);
    z-index: 5;
}

#contact h2 {
    color: var(--color-off-white);
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

#contact h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.contact-form {
    background-color: var(--color-greyish-blue);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-off-white);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    color: var(--color-off-white);
    box-shadow: 0 0 0 0.2rem rgba(75, 111, 255, 0.25);
}

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

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

.social-links {
    margin-top: 3rem;
}

.social-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: var(--color-greyish-blue);
    color: var(--color-off-white);
    border-radius: 50%;
    margin: 0 12px;
    transition: all var(--transition-speed);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Social icons with text - for About section */
#about .social-links {
    margin-top: 1.5rem;
}

#about .social-icon {
    width: auto;
    height: auto;
    line-height: normal;
    background-color: transparent;
    color: var(--color-greyish-blue);
    border-radius: 4px;
    margin: 0 12px;
    padding: 8px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

#about .social-icon i {
    margin-right: 5px;
}

#about .social-icon:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--color-deep-blue);
    color: var(--color-light-grey);
    padding: 2rem 0;
    font-weight: 300;
}

/* AOS animations overrides */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-deep-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--color-greyish-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Scroll to Top Button */
.scroll-to-top-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: #3a8dff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(58,141,255,0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.18s;
}
.scroll-to-top-button.show {
    opacity: 1;
    pointer-events: auto;
}
.scroll-to-top-button:hover {
    background: #ffb347;
    color: #222;
}

/* Retro Mode Styles */
body.retro-mode {
    background-color: #000000 !important;
    color: #00FF00 !important;
    font-family: 'Courier New', Courier, monospace !important;
    transition: all 0.5s ease;
}
body.retro-mode * {
    color: #00FF00 !important;
    background-color: transparent !important;
    border-color: #00FF00 !important;
    font-family: 'Courier New', Courier, monospace !important;
    text-shadow: 0 0 3px #00FF00;
    box-shadow: none !important;
}
body.retro-mode .navbar,
body.retro-mode footer,
body.retro-mode .card,
body.retro-mode .btn,
body.retro-mode .filter-sidebar,
body.retro-mode .list-group-item,
body.retro-mode #preloader .loader-inner {
    background-color: #000000 !important;
    border: 1px solid #00FF00 !important;
}
body.retro-mode .btn:hover,
body.retro-mode .badge:hover {
    background-color: #00FF00 !important;
    color: #000000 !important;
}
body.retro-mode a,
body.retro-mode a:hover {
    color: #00FF00 !important;
}
body.retro-mode img {
    display: none !important; /* Hide images completely in retro mode */
}
body.retro-mode iframe {
    display: none !important; /* Hide iframes in retro mode */
}
body.retro-mode .overlay {
    background: none !important; /* Remove overlay in retro mode */
}
body.retro-mode .hero-section {
    background-image: none !important; /* Remove background image in retro mode */
}

/* Add button to exit retro mode */
#exit-retro-mode {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #00FF00;
    color: #000000;
    border: 2px solid #000000;
    padding: 5px 10px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    display: none; /* Hidden by default */
}
body.retro-mode #exit-retro-mode {
    display: block;
}

/* Clippy Parody Styles */
#clippy-parody {
    position: fixed;
    bottom: 95px; /* Increased distance from scroll button */
    right: 30px; 
    z-index: 999; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
    cursor: pointer;
    display: flex; /* Use flex to position bubble correctly */
    flex-direction: column; /* Stack icon and bubble */
    align-items: center; /* Center items horizontally */
}

#clippy-parody.clippy-hidden {
    transform: translateX(150%);
    opacity: 0;
    pointer-events: none;
}

#clippy-parody.clippy-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.clippy-icon {
    /* Style for the blue circle containing the icon */
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent); /* Blue background */
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    order: 2; /* Position icon below bubble */
}

.clippy-icon i.fas.fa-robot { 
    /* Style for the Font Awesome icon itself */
    color: white; /* White icon color */
    font-size: 1.6rem; /* Adjust size as needed */
    /* Removed filter */
}

.clippy-bubble {
    position: relative; /* Changed from absolute */
    bottom: auto; /* Reset bottom */
    right: auto; /* Reset right */
    width: 200px;
    background-color: white;
    color: var(--color-deep-blue);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 12px; /* Space between bubble and icon */
    order: 1; /* Position bubble above icon */
}

.clippy-bubble::after { /* Speech bubble pointer */
    content: '';
    position: absolute;
    top: 100%;
    /* Center the pointer below the bubble */
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
    /* right: 20px; <- Removed */
}

#clippy-parody.clippy-visible .clippy-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Remove styling for the non-existent image */
/* .clippy-icon img { ... } */

/* Terminal Simulator Styles */
#terminal-simulator {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 60%;
    max-width: 800px;
    height: 40%;
    max-height: 400px;
    background-color: rgba(12, 17, 26, 0.95); /* --color-dark-grey */
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00; /* Retro green */
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease-out;
}
#terminal-simulator.terminal-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.terminal-header {
    background-color: var(--color-greyish-blue);
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--color-light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.terminal-close {
    background: none;
    border: none;
    color: var(--color-light-grey);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}
.terminal-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.4;
}
.terminal-body pre {
    margin: 0;
    white-space: pre-wrap; /* Wrap long lines */
    word-wrap: break-word; /* Break words if needed */
    color: #00FF00; /* Ensure pre text is green */
}
.terminal-prompt {
    margin-top: 5px;
    display: flex; /* Align items horizontally */
    align-items: center;
}
#terminal-input {
    outline: none; /* Remove focus border */
    flex-grow: 1; /* Allow input to take available space */
    color: #00FF00;
    min-width: 1ch; /* Ensure it has at least minimal width */
}
.terminal-cursor {
    background-color: #00FF00;
    color: #000000;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { background-color: transparent; color: #00FF00; }
}

/* Konami Toast Notification */
#konami-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(var(--color-accent-rgb, 0, 149, 255), 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 1003; /* Above terminal and clippy */
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#konami-toast.show {
    opacity: 1;
    visibility: visible;
}

/* Resources Page Specific Styles */
#resources .resource-category h3 {
    color: var(--color-off-white);
    font-weight: 700;
    border-bottom: 2px solid var(--color-greyish-blue);
    padding-bottom: 0.5rem;
    display: inline-block; /* Prevent border from spanning full width */
}

.resource-list {
    list-style: none;
    padding-left: 0;
}

.resource-item {
    background-color: var(--color-greyish-blue);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-accent);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.resource-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.resource-item i {
    color: var(--color-accent);
    opacity: 0.8;
    width: 20px; /* Ensure alignment */
    text-align: center;
}

.resource-item a {
    font-weight: 600;
    color: var(--color-off-white);
    text-decoration: none;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.resource-item a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.resource-item p {
    margin-bottom: 0;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: var(--color-light-grey);
    padding-left: 30px; /* Align description below icon+link */
}

/* Ensure section padding works correctly */
.section-padding {
    padding: 5rem 0; /* Adjusted padding */
}

/* Blog/Resources Hero Section Styles (Added from blog-styles.css) */
.blog-hero-section {
    background: linear-gradient(135deg, var(--color-greyish-blue) 0%, var(--color-deep-blue) 100%);
    color: var(--color-off-white);
    /* Adjusted padding: Less top padding than blog, more bottom */
    padding: 10rem 0 6rem 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; 
    overflow: hidden;
    text-align: center; /* Ensure text is centered */
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(var(--color-accent-rgb), 0.05) 0%, transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(var(--color-accent-rgb), 0.05) 0%, transparent 30%);
    opacity: 0.5;
    z-index: 0;
}

.blog-hero-section .container {
    position: relative; /* Ensure text stays above pseudo-elements */
    z-index: 1;
}

.blog-hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-off-white);
}

.blog-hero-section .lead {
    color: var(--color-light-grey);
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* Make sure section padding definition is correct */
.section-padding {
    padding: 5rem 0; /* Consistent padding for content sections */
}

/* Security Feed Page Styles */
#security-feed {
    background-color: var(--color-dark-grey); /* Match theme */
}

.filter-sidebar {
    background-color: var(--color-greyish-blue);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content; /* Prevent stretching full height */
    box-shadow: var(--box-shadow);
}

.filter-sidebar h5 {
    color: var(--color-off-white);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.filter-sidebar .form-group {
    margin-bottom: 1.2rem;
}

.filter-sidebar label {
    color: var(--color-light-grey);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.filter-sidebar .form-control,
.filter-sidebar .custom-select,
.filter-sidebar .custom-range {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-off-white);
    border-radius: 4px;
    font-size: 0.85rem;
}

.filter-sidebar .form-control-sm {
    padding: 0.4rem 0.8rem;
}

.filter-sidebar .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    box-shadow: none;
}

.filter-sidebar .custom-control-label {
    color: var(--color-light-grey);
    font-size: 0.85rem;
    font-weight: normal;
}

.filter-sidebar .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.filter-sidebar .custom-range::-webkit-slider-thumb {
  background: var(--color-accent);
}

.filter-sidebar .custom-range::-moz-range-thumb {
  background: var(--color-accent);
}

.filter-sidebar .custom-range::-ms-thumb {
  background: var(--color-accent);
}

.filter-sidebar .btn-primary {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.filter-sidebar .btn-outline-secondary {
    font-size: 0.9rem;
    padding: 0.5rem;
    color: var(--color-light-grey);
    border-color: var(--color-light-grey);
}

.filter-sidebar .btn-outline-secondary:hover {
    background-color: var(--color-light-grey);
    color: var(--color-dark-grey);
}

/* Feed Content Area */
#feed-search {
    background-color: var(--color-greyish-blue);
    border-color: var(--color-greyish-blue);
    color: var(--color-off-white);
}

#feed-search::placeholder {
    color: var(--color-light-grey);
    opacity: 0.7;
}

#feed-search:focus {
     background-color: var(--color-greyish-blue);
    border-color: var(--color-accent);
    box-shadow: none;
    color: var(--color-off-white);
}

#search-button {
    border-color: var(--color-greyish-blue);
}

.feed-item {
    background-color: var(--color-greyish-blue);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.feed-item .feed-title a {
    color: var(--color-off-white);
    font-weight: 600;
    text-decoration: none;
}

.feed-item .feed-title a:hover {
    color: var(--color-accent);
}

.feed-item .feed-meta {
    font-size: 0.8rem;
    color: var(--color-light-grey);
    opacity: 0.8;
}

.feed-item .feed-description {
    font-size: 0.9rem;
    color: var(--color-light-grey);
    margin-top: 0.5rem;
}

.feed-item .feed-tags .badge {
    background-color: rgba(var(--color-accent-rgb), 0.2);
    color: var(--color-accent);
    font-weight: 500;
    padding: 0.3em 0.6em;
    font-size: 0.75rem;
}

.pagination .page-link {
    background-color: var(--color-greyish-blue);
    border-color: var(--color-dark-grey);
    color: var(--color-light-grey);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background-color: var(--color-dark-grey);
    border-color: var(--color-dark-grey);
    color: var(--color-light-grey);
    opacity: 0.5;
}

.pagination .page-link:hover {
     background-color: var(--color-accent);
     border-color: var(--color-accent);
     color: white;
     opacity: 0.8;
}

/* Security Feed Specific Styles */
#security-feed {
    background-color: var(--background-dark-alt);
}

.filter-sidebar {
    background-color: var(--background-dark);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.filter-sidebar h5 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color-dark);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.filter-sidebar label {
    color: var(--text-muted-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-sidebar .form-control,
.filter-sidebar .custom-select,
.filter-sidebar .custom-range {
    background-color: var(--background-dark-alt);
    color: var(--text-light);
    border: 1px solid var(--accent-color-dark);
    font-size: 0.9rem;
}

.filter-sidebar .form-control::placeholder {
    color: var(--text-muted-dark);
    opacity: 0.7;
}

.filter-sidebar .form-control:focus,
.filter-sidebar .custom-select:focus {
    background-color: var(--background-dark-alt);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.filter-sidebar .custom-checkbox .custom-control-label {
    color: var(--text-light); /* Lighter color for checkbox labels */
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-sidebar .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-sidebar .custom-range::-webkit-slider-thumb {
  background: var(--primary-color);
}

.filter-sidebar .custom-range::-moz-range-thumb {
  background: var(--primary-color);
}

.filter-sidebar .custom-range::-ms-thumb {
  background: var(--primary-color);
}

.filter-sidebar .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.filter-sidebar .btn-outline-secondary {
    color: var(--text-muted-dark);
    border-color: var(--accent-color-dark);
    transition: all 0.3s ease;
}

.filter-sidebar .btn-outline-secondary:hover {
    color: var(--text-light);
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

/* Improve Filter View Dropdown Readability */
#filter-view {
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23CCCCCC%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: .65em auto;
    padding-right: 2.25rem; /* Space for the custom arrow */
}

/* Style the options - Note: Styling options directly is limited and browser-dependent */
#filter-view option {
    background-color: #1e2d45; /* Explicit dark background (greyish-blue) */
    color: #eeeeee; /* Explicit light text */
    padding: 5px 10px; /* Add some padding */
}

/* Hover/Focus state for options (limited support) */
/* May not work consistently across all browsers */
#filter-view option:checked,
#filter-view option:hover {
    background-color: var(--color-accent); /* Explicit primary color */
    color: var(--color-off-white); /* Explicit white text */
}

/* Explicit styles for Items per Page dropdown options in sidebar */
.filter-sidebar select#items-per-page option {
    background-color: #1e2d45; /* --color-greyish-blue */
    color: #C7CDD3; /* --color-light-grey or --color-off-white */
}

/* Explicit hover/checked styles for Items per Page options in sidebar */
.filter-sidebar select#items-per-page option:checked,
.filter-sidebar select#items-per-page option:hover {
    background-color: #4b6fff; /* --color-accent */
    color: #FFFFFF; /* White */
}

#feed-items .feed-item {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color-dark);
    transition: border-left-color 0.3s ease;
}

#feed-items .feed-item:hover {
    border-left-color: var(--primary-color);
}

#feed-items .feed-title a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

#feed-items .feed-title a:hover {
    color: var(--primary-color);
}

#feed-items .feed-meta {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
}

#feed-items .feed-meta i {
    color: var(--accent-color-light);
}

#feed-items .feed-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Pagination Styles */
#feed-pagination .page-item .page-link {
    background-color: var(--background-dark);
    border-color: var(--accent-color-dark);
    color: var(--text-muted-dark);
    margin: 0 2px;
    border-radius: 3px;
}

#feed-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#feed-pagination .page-item.disabled .page-link {
    background-color: var(--background-dark-alt);
    border-color: var(--accent-color-dark);
    color: var(--text-muted-dark);
    opacity: 0.6;
}

#feed-pagination .page-item:not(.disabled) .page-link:hover {
    background-color: var(--accent-color-dark);
    color: var(--text-light);
}

/* Konami Toast Notification */
#konami-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary-color); /* Use primary color */
    color: #fff; /* White text */
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1060; /* Higher than navbar */
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s, bottom 0.5s;
}

#konami-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slide up */
}

/* ... other styles ... */

/* --- Keyword Tag Input Styles --- */
.keyword-tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.25rem 0.5rem; /* Adjust padding for sm form-control */
    min-height: calc(1.5em + 0.5rem + 2px); /* Match form-control-sm height */
    cursor: text; /* Indicate it's an input area */
    background-color: #2c3e50; /* Dark background */
    border-color: #4e5d6c; /* Darker border */
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    background-color: #007bff; /* Primary color for tags */
    color: #fff;
    padding: 0.2em 0.6em;
    border-radius: 0.2rem;
    margin-right: 5px;
    margin-bottom: 3px; /* Spacing for wrapping tags */
    font-size: 0.8em;
    line-height: 1.4;
}

.remove-tag {
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    color: #e2e8f0; /* Lighter color for the 'x' */
    transition: color 0.15s ease-in-out;
}

.remove-tag:hover {
    color: #ffffff; /* White on hover */
}

.new-keyword-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0; /* Remove default input padding */
    margin: 0; /* Remove default input margin */
    background-color: transparent; /* Inherit container background */
    color: #e2e8f0; /* Light text color */
    min-width: 150px; /* Ensure it doesn't collapse too much */
    height: auto; /* Let it size naturally */
    line-height: inherit; /* Match container line height */
}

.new-keyword-input::placeholder {
    color: #869ab8; /* Lighter placeholder */
}

/* Focus styles for the container (optional, looks better) */
.keyword-tags-container:focus-within {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Style for the feed source status icons */
.feed-status-icon {
    margin-left: 8px; /* Add some space between label and icon */
    font-size: 0.9em; /* Slightly smaller icon */
    /* Colors are handled by text-success, text-danger, text-warning */
}

/* Ensure labels allow for icon placement */
.filter-sidebar .custom-control-label {
    display: inline-flex; /* Use flexbox for better alignment */
    align-items: center; /* Vertically align icon with text */
}

/* --- My Software Library Tag Input Styles --- */
.my-software-tags-container { /* Similar to .keyword-tags-container */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.25rem 0.5rem;
    min-height: calc(1.5em + 0.5rem + 2px);
    cursor: text;
    background-color: #2c3e50; /* Dark background */
    border: 1px solid #4e5d6c; /* Darker border */
    border-radius: .2rem; /* Match form-control-sm */
}

.software-tag { /* Similar to .keyword-tag */
    display: inline-flex;
    align-items: center;
    background-color: #28a745; /* Green color for differentiation */
    color: #fff;
    padding: 0.2em 0.6em;
    border-radius: 0.2rem;
    margin-right: 5px;
    margin-bottom: 3px;
    font-size: 0.8em;
    line-height: 1.4;
}

.remove-software-tag { /* Similar to .remove-tag */
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    color: #e2e8f0;
    transition: color 0.15s ease-in-out;
}

.remove-software-tag:hover {
    color: #ffffff;
}

.new-software-input { /* Similar to .new-keyword-input */
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
    color: #e2e8f0;
    min-width: 150px;
    height: auto;
    line-height: inherit;
}

.new-software-input::placeholder {
    color: #869ab8;
}

.my-software-tags-container:focus-within { /* Similar focus style */
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* --- End My Software Library Tag Input Styles --- */

#feed-items .feed-item {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color-dark);
    transition: border-left-color 0.3s ease;
}

#feed-items .feed-item:hover {
    border-left-color: var(--primary-color);
}

#feed-items .feed-title a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

#feed-items .feed-title a:hover {
    color: var(--primary-color);
}

#feed-items .feed-meta {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
}

#feed-items .feed-meta i {
    color: var(--accent-color-light);
}

#feed-items .feed-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Pagination Styles */
#feed-pagination .page-item .page-link {
    background-color: var(--background-dark);
    border-color: var(--accent-color-dark);
    color: var(--text-muted-dark);
    margin: 0 2px;
    border-radius: 3px;
}

#feed-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#feed-pagination .page-item.disabled .page-link {
    background-color: var(--background-dark-alt);
    border-color: var(--accent-color-dark);
    color: var(--text-muted-dark);
    opacity: 0.6;
}

#feed-pagination .page-item:not(.disabled) .page-link:hover {
    background-color: var(--accent-color-dark);
    color: var(--text-light);
}

/* Konami Toast Notification */
#konami-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary-color); /* Use primary color */
    color: #fff; /* White text */
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1060; /* Higher than navbar */
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s, bottom 0.5s;
}

#konami-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slide up */
}

/* ... other styles ... */

/* --- Keyword Tag Input Styles --- */
.keyword-tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.25rem 0.5rem; /* Adjust padding for sm form-control */
    min-height: calc(1.5em + 0.5rem + 2px); /* Match form-control-sm height */
    cursor: text; /* Indicate it's an input area */
    background-color: #2c3e50; /* Dark background */
    border-color: #4e5d6c; /* Darker border */
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    background-color: #007bff; /* Primary color for tags */
    color: #fff;
    padding: 0.2em 0.6em;
    border-radius: 0.2rem;
    margin-right: 5px;
    margin-bottom: 3px; /* Spacing for wrapping tags */
    font-size: 0.8em;
    line-height: 1.4;
}

.remove-tag {
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    color: #e2e8f0; /* Lighter color for the 'x' */
    transition: color 0.15s ease-in-out;
}

.remove-tag:hover {
    color: #ffffff; /* White on hover */
}

.new-keyword-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0; /* Remove default input padding */
    margin: 0; /* Remove default input margin */
    background-color: transparent; /* Inherit container background */
    color: #e2e8f0; /* Light text color */
    min-width: 150px; /* Ensure it doesn't collapse too much */
    height: auto; /* Let it size naturally */
    line-height: inherit; /* Match container line height */
}

.new-keyword-input::placeholder {
    color: #869ab8; /* Lighter placeholder */
}

/* Focus styles for the container (optional, looks better) */
.keyword-tags-container:focus-within {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Style for the feed source status icons */
.feed-status-icon {
    margin-left: 8px; /* Add some space between label and icon */
    font-size: 0.9em; /* Slightly smaller icon */
    /* Colors are handled by text-success, text-danger, text-warning */
}

/* Ensure labels allow for icon placement */
.filter-sidebar .custom-control-label {
    display: inline-flex; /* Use flexbox for better alignment */
    align-items: center; /* Vertically align icon with text */
}

/* --- Keyword List Filter Styles --- */
#keyword-list-selection .custom-control-label {
    font-size: 0.85rem; /* Match other filter label sizes */
    color: var(--color-light-grey);
    font-weight: normal; 
}

#keyword-list-selection .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--color-accent); /* Match other checkboxes */
    border-color: var(--color-accent);
}

/* Style the Manage button like other secondary buttons */
.filter-sidebar .btn-secondary {
    color: var(--color-light-grey);
    background-color: var(--color-greyish-blue);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-sidebar .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Keyword List Modal Styles --- */
#manageKeywordListsModal .modal-content {
    background-color: var(--color-greyish-blue); /* Slightly lighter dark */
    border: 1px solid var(--color-dark-grey);
}

#manageKeywordListsModal .modal-header, 
#manageKeywordListsModal .modal-footer {
    border-color: var(--color-dark-grey); /* Darker border */
}

#manageKeywordListsModal .close {
    color: var(--color-light-grey);
    opacity: 0.8;
}

#manageKeywordListsModal .list-group-item {
    background-color: var(--color-dark-grey); /* Dark background for items */
    border-color: var(--color-greyish-blue);
    color: var(--color-light-grey);
    padding: 0.5rem 1rem;
    margin-bottom: 5px;
    border-radius: 4px;
    word-wrap: break-word; /* Ensure long words don't break the layout */
    overflow-wrap: break-word;
}

#manageKeywordListsModal .list-group-item strong {
    color: var(--color-off-white);
}

#manageKeywordListsModal .list-group-item .keywords-preview {
    font-size: 0.8rem;
    color: var(--color-light-grey);
    opacity: 0.7;
    display: block; /* Ensure it takes its own line */
    margin-top: 3px;
    white-space: pre-wrap; /* Allow line breaks and wrap text */
    word-wrap: break-word; /* Break long words if necessary */
    overflow-wrap: break-word; /* Modern alternative to word-wrap */
    max-height: 120px; /* Limit height to prevent excessive modal growth */
    overflow-y: auto; /* Add scroll if content exceeds max height */
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.2); /* Subtle background to distinguish from main content */
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#manageKeywordListsModal .list-group-item .btn-sm {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Dark theme form controls within modal */
#manageKeywordListsModal .form-control {
    background-color: var(--color-dark-grey);
    border: 1px solid var(--color-greyish-blue);
    color: var(--color-off-white);
}

#manageKeywordListsModal .form-control:focus {
    background-color: var(--color-dark-grey);
    border-color: var(--color-accent);
    color: var(--color-off-white);
    box-shadow: none;
}

#manageKeywordListsModal .form-control::placeholder {
    color: var(--color-light-grey);
    opacity: 0.5;
}

/* Specific styling for the list containers */
#manageKeywordListsModal #existing-keyword-lists-container,
#manageKeywordListsModal #existing-blacklist-lists-container {
    max-height: 300px; /* Limit container height */
    overflow-y: auto; /* Add scroll if lists are very long */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
}

/* --- End Keyword List Styles --- */

/* --- Custom Context Menu Styles --- */
.custom-context-menu {
    position: absolute;
    z-index: 1000; /* Back to original z-index */
    display: none;
    min-width: 180px;
    padding: 5px 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-light-grey); /* Back to original color */
    text-align: left;
    list-style: none;
    background-color: var(--color-dark-grey); /* Back to original background */
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Back to original border */
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3); /* Restore shadow */
}

.custom-context-menu .menu-item {
    display: block;
    width: 100%;
    padding: 0.3rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--color-light-grey);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none; /* Remove underline if it's an anchor */
}

.custom-context-menu .menu-item:hover,
.custom-context-menu .menu-item:focus {
    color: var(--color-off-white);
    background-color: var(--color-accent-dark); /* Use a darker accent for hover */
    outline: 0;
}

.custom-context-menu .menu-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-context-menu .menu-header {
    display: block;
    padding: 0.3rem 1rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    color: #adb5bd; /* Lighter grey for header */
    white-space: nowrap;
}

/* Submenu styling (if needed later, basic structure) */
.custom-context-menu .submenu {
    position: relative;
}

.custom-context-menu .submenu > .submenu-items {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin-top: -6px; /* Align with parent item */
    background-color: var(--color-dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.custom-context-menu .submenu:hover > .submenu-items {
    display: block;
}

.custom-context-menu .submenu-item {
     display: block;
     width: 100%;
     padding: 0.3rem 1rem;
     clear: both;
     font-weight: 400;
     color: var(--color-light-grey);
     text-align: inherit;
     white-space: nowrap;
     background-color: transparent;
     border: 0;
     cursor: pointer;
}

.custom-context-menu .submenu-item:hover,
.custom-context-menu .submenu-item:focus {
    color: var(--color-off-white);
    background-color: var(--color-accent-dark);
}


/* --- End Custom Context Menu Styles --- */

/* Styles for the source filter list */
.source-list {
    max-height: 250px; /* Adjust as needed */
    overflow-y: auto;  /* Enable vertical scroll */
    border: 1px solid #4e5d6c; /* Moved from inline style */
    padding: 10px;           /* Moved from inline style */
    border-radius: 4px;      /* Moved from inline style */
    margin-bottom: 1rem; /* Add some space below the list */
}

/* Ensure btn-group-toggle labels look right in dark mode */
.btn-group-toggle > .btn.active,
.btn-group-toggle > .btn input[type=radio]:checked + label {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.feed-item .feed-tags .badge {
    background-color: rgba(var(--color-accent-rgb), 0.2);
    color: var(--color-accent);
    font-weight: 500;
    padding: 0.3em 0.6em;
    font-size: 0.75rem;
}

/* Feed item checkbox styles for multi-item ticket creation */
.feed-item-checkbox {
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.feed-item-checkbox + label {
    color: var(--color-light-grey);
    font-size: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.feed-item-checkbox:checked + label {
    color: var(--color-accent);
    font-weight: 600;
}

.feed-item-checkbox:hover + label {
    color: var(--color-off-white);
}

/* Make the checkbox container stand out slightly when item is selected */
.feed-item.selected {
    border-color: var(--color-accent) !important;
    box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2);
}

/* Multi-item ticket container styling */
#multi-item-ticket-container {
    background-color: var(--color-dark-grey);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    color: var(--color-off-white);
}

#multi-item-ticket-container .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

#multi-item-ticket-container .btn-success {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

#multi-item-ticket-container .btn-success:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    opacity: 0.9;
}

#multi-item-ticket-container .btn-success:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

#multi-item-ticket-container .btn-outline-secondary {
    border-color: var(--color-light-grey);
    color: var(--color-light-grey);
}

#multi-item-ticket-container .btn-outline-secondary:hover {
    background-color: var(--color-light-grey);
    color: var(--color-dark-grey);
}

#multi-item-ticket-container .btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
}

#multi-item-ticket-container .btn-outline-warning:hover {
    background-color: #ffc107;
    color: var(--color-dark-grey);
}

#multi-item-count-text {
    font-weight: 600;
    color: var(--color-accent);
}
