:root {
    --primary-color: #00ffff;
    --secondary-color: #2d2d2d;
    --accent-color: #015101;
    --dark-accent-color: #018d01;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --error-color: #ff0044;
    --success-color: #00ff00;
    --info-color: #00ffff;
    --neutral-color: #888888;
    --warning-color: #ff8800;
    --choice-background-selected: #325632;
    --choice-background-hover: #5ca35c;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.95)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    background-attachment: fixed;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-bottom: 1px solid var(--accent-color);
    transform: translateY(-1px);
}

a:visited {
    color: #8a2be2;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.3);
}

a:visited:hover {
    color: #9932cc;
    text-shadow: 0 0 10px rgba(153, 50, 204, 0.5);
    border-bottom: 1px solid #9932cc;
}

a:active {
    color: var(--warning-color);
    text-shadow: 0 0 8px rgba(255, 136, 0, 0.5);
}

/* Special link styling for different contexts */
.section a,
.choice-item a,
.option-item a,
.roll-item a {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    padding: 2px 6px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
    display: inline-block;
    margin: 1px 2px;
}

.section a:hover,
.choice-item a:hover,
.option-item a:hover,
.roll-item a:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

/* Links in preview containers */
.preview-container a {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.08));
    padding: 3px 8px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    display: inline-block;
    margin: 2px;
}

.preview-container a:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.25), rgba(0, 255, 0, 0.15));
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* Links in character sheet */
.character-sheet a {
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.character-sheet a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 12px rgba(0, 255, 0, 0.7);
}

/* Links in footer */
.footer-section a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 255, 0.5);
    text-underline-offset: 3px;
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 350px; /* Space for character sheet */
}

h1, h2, h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 64px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #00cccc, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--neutral-color), #666666);
    border-color: var(--neutral-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #aaaaaa, var(--neutral-color));
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.4);
}

.btn-roll {
    background: linear-gradient(135deg, var(--info-color), #0088cc);
    border-color: var(--info-color);
}

.btn-roll:hover {
    background: linear-gradient(135deg, #00cccc, var(--info-color));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 0;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}

/* CYOA Section Styles */
.section {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--card-bg), #333333);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(0, 255, 255, 0.2);
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.section-title {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-box {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

/* Element Group Styles */
.element-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.element-group h3 {
    margin-bottom: 10px;
}

.group-description {
    font-style: italic;
    /* color: #666; */
    margin-bottom: 15px;
}

/* Choices and Options Styles */
.choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;

    /* Subtle background effect for choice groups */
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.03) 0%,
        rgba(0, 255, 255, 0.01) 50%,
        rgba(1, 81, 1, 0.02) 100%);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    padding: 15px 10px;
    border: 1px solid rgba(0, 255, 255, 0.08);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.05),
        inset 0 1px 0 rgba(0, 255, 255, 0.1);
    position: relative;
}

/* Enhanced background effect for option groups */
.choices-container.options-container {
    gap: 0;
    position: relative;
    padding-left: 30px; /* Space for the vertical line */

    /* Stronger subtle background for options */
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.05) 0%,
        rgba(0, 255, 255, 0.02) 30%,
        rgba(1, 81, 1, 0.03) 70%,
        rgba(0, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 255, 255, 0.12);
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.08),
        inset 0 1px 0 rgba(0, 255, 255, 0.15),
        inset 0 -1px 0 rgba(1, 81, 1, 0.1);
    padding: 20px 15px 15px 30px; /* Extra padding for the content */

    /* Subtle animated glow effect */
    position: relative;
    overflow: visible;
}

/* Animated background pulse for option containers */
.choices-container.options-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 255, 255, 0.02) 0%,
        rgba(1, 81, 1, 0.02) 100%);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    opacity: 0;
    animation: subtle-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Ensure vertical line is above the animated background */
.choices-container.options-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-color) 100%);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    border-radius: 1px;
    z-index: 1;
}

/* Subtle pulse animation */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
}

/* Choices and Options Styles */
.choice-item, .roll-item {
    background: linear-gradient(135deg, var(--secondary-color), #404040);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 15px;
    padding-top: 7px;
    flex: 0 0 calc(22% - 15px);
    min-width: 200px;
    max-width: calc(22% - 15px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

/* Linear styling for option items */
.option-item {
    background: linear-gradient(135deg, var(--secondary-color), #404040);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);

    /* Linear layout specific styles */
    flex: 1 1 90%;
    max-width: 90%;
    min-width: 90%;
    margin: 5px 0 5px 10%; /* Much larger left margin for significant indent */
    padding: 0;
    overflow: hidden;
}

.option-item .entry-title-container {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    padding: 8px 15px; /* Reduced from 12px 20px */
    border-bottom: 1px solid rgba(0, 255, 255, 0.4);
    margin-bottom: 0;
}

.option-item h3 {
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    font-size: 1rem; /* Reduced from 1.1rem */
    text-transform: uppercase;
    margin: 0px !important;
    letter-spacing: 0.5px;
}

.option-item .option-content {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Reduced from 20px */
    padding: 12px; /* Reduced from 20px */
    min-height: auto; /* Removed fixed min-height of 120px */
}

/* Option content without image should be more compact */
.option-item .option-content:not(:has(.entry-image)) {
    padding: 8px 12px; /* Even more compact when no image */
    min-height: auto;
}

.option-item .entry-image {
    flex-shrink: 0;
    margin: 0;
    text-align: left;
}

.option-item .entry-image img {
    width: 240px; /* Doubled from 120px, aspect ratio 1075x716 */
    height: 160px; /* Height based on aspect ratio: 240px / (1075/716) ≈ 160px */
    object-fit: contain; /* Changed from cover to contain to avoid cropping */
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.02)); /* Background for transparent images */
}

.option-item .option-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced from 10px */
}

.option-item .entry-metadata {
    margin-bottom: 0px; /* Reduced from 12px */
}

.option-item p {
    margin: 0 0 6px 0; /* Reduced from 10px */
    line-height: 1.4; /* Reduced from 1.5 */
    color: var(--text-color);
}

.option-item .description-effects,
.option-item .effects-list {
    margin-top: 6px; /* Reduced from 12px */
}

.option-item .preview-button,
.option-item .locked-indicator {
    margin-top: 8px; /* Reduced from 15px */
    align-self: flex-start;
}

/* Hover and selected states for option items */
.option-item:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3), 0 0 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #404040, var(--secondary-color));
}

.option-item:hover .entry-title-container {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-bottom-color: var(--accent-color);
}

.option-item:hover h3 {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.option-item.selected {
    background: linear-gradient(135deg, var(--accent-color), var(--choice-background-selected));
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: translateX(15px);
}

.option-item.selected .entry-title-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border-bottom-color: rgba(0, 0, 0, 0.4);
}

.option-item.selected h3 {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Disabled option styling */
.option-item.disabled-choice {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #404040, #2a2a2a) !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(136, 136, 136, 0.3);
}

.option-item.disabled-choice.selected {
    opacity: 0.8;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, var(--dark-accent-color), #008800) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 0 15px rgba(0, 204, 0, 0.3) !important;
    border-color: var(--primary-color);
}

.option-item.disabled-choice:hover {
    border-color: rgba(136, 136, 136, 0.3) !important;
    transform: none !important;
    box-shadow: none !important;
}

.option-item.disabled-choice:hover .entry-title-container {
    background: linear-gradient(135deg, rgba(136, 136, 136, 0.1), rgba(136, 136, 136, 0.05)) !important;
    border-bottom-color: rgba(136, 136, 136, 0.3) !important;
}

/* Responsive adjustments for option items */
@media (max-width: 768px) {
    .choices-container {
        padding: 12px 8px; /* Reduce padding on mobile */
        clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    }

    .choices-container.options-container {
        padding: 15px 10px 12px 25px; /* Adjust padding for mobile */
        clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    }

    .choices-container.options-container::before {
        left: 12px; /* Adjust vertical line position */
    }

    .choices-container.options-container::after {
        clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    }

    .option-item {
        margin-left: 8%; /* Less indentation on mobile */
        max-width: 92%;
        min-width: 92%;
        flex: 1 1 92%;
    }

    .option-item .option-content {
        flex-direction: column;
        gap: 10px; /* Reduced from 15px */
        padding: 10px; /* Reduced from 15px */
    }

    .option-item .entry-image {
        text-align: center;
    }

    .option-item .entry-image img {
        width: 200px; /* Proportionally scaled for mobile, maintaining aspect ratio */
        height: 133px; /* Height based on aspect ratio: 200px / (1075/716) ≈ 133px */
    }
}

@media (max-width: 480px) {
    .choices-container {
        padding: 10px 6px; /* Even smaller padding on very small screens */
        clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    }

    .choices-container.options-container {
        padding: 12px 8px 10px 20px; /* Compact padding for very small screens */
        clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    }

    .choices-container.options-container::before {
        left: 10px;
        width: 1px; /* Thinner line for very small screens */
    }

    .choices-container.options-container::after {
        clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    }

    .option-item {
        margin-left: 6%;
        max-width: 94%;
        min-width: 94%;
        flex: 1 1 94%;
        margin-top: 3px; /* Even more compact spacing on very small screens */
        margin-bottom: 3px;
    }

    .option-item .entry-title-container {
        padding: 6px 12px; /* Reduced from 10px 15px */
    }

    .option-item .option-content {
        padding: 8px; /* Reduced from 12px */
    }

    .option-item .entry-image img {
        width: 160px; /* Smaller for very small screens, maintaining aspect ratio */
        height: 107px; /* Height based on aspect ratio: 160px / (1075/716) ≈ 107px */
    }
}

/* Items with previews should always take full width on large screens */
.choice-item.has-preview, .option-item.has-preview, .roll-item.has-preview {
    flex: 1 1 45%;
    max-width: 45%;
}

/* Items with previews should always take full width on large screens */
.choice-item.max-width, .option-item.max-width, .roll-item.max-width {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

/* Keep parent choice styling clean when previews are open */
.choice-item:has(.preview-container),
.option-item:has(.preview-container),
.roll-item:has(.preview-container) {
    padding-bottom: 5px; /* Reduce bottom padding to accommodate preview */
}

.choice-item h3, .option-item h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.summary-selections {
    padding: 15px;
}

.choice-item:hover, .option-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #404040, var(--secondary-color));
}

.choice-item.selected, .option-item.selected {
    background: linear-gradient(135deg, var(--accent-color), var(--choice-background-selected));
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

/* Effect Styles */
.destiny-indicator {
    display: inline-block;
    margin-bottom: 0px;
    padding: 3px 8px;
    font-size: 0.8em;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    font-weight: bold;
    background: linear-gradient(135deg, var(--warning-color), #cc6600);
    color: #000;
    border: 1px solid var(--warning-color);
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.3);
}

.entry-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.requirements-indicator {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    color: var(--info-color);
    border: 1px solid var(--info-color);
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 0.8em;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.effect-item {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 1px 0;
    line-height: 1.0;
    font-size: 0.95em;
}

.effect-positive {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    color: var(--success-color);
    border: 1px solid var(--success-color);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.effect-negative {
    background: linear-gradient(135deg, rgba(255, 0, 68, 0.2), rgba(255, 0, 68, 0.1));
    color: var(--error-color);
    border: 1px solid var(--error-color);
    box-shadow: 0 0 5px rgba(255, 0, 68, 0.3);
}

.effect-neutral {
    background: linear-gradient(135deg, rgba(136, 136, 136, 0.2), rgba(136, 136, 136, 0.1));
    color: var(--neutral-color);
    border: 1px solid var(--neutral-color);
    box-shadow: 0 0 5px rgba(136, 136, 136, 0.3);
}

.effect-special {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    color: var(--info-color);
    border: 1px solid var(--info-color);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.effect-descriptor-remove {
    color: #F44336;
    text-decoration: line-through;
}

/* Roll Display Styles */
.roll-container {
    margin: 20px 0;
    padding: 15px;
    padding-top: 7px;
    background: linear-gradient(135deg, #2a2a2a, var(--card-bg));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.roll-container h3 {
    margin-top: 0;
}

.dice-result {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
}

.roll-details {
    font-size: 0.9rem;
    color: #666;
}

/* Character Sheet Styles */
.character-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--card-bg), #1a1a1a);
    box-shadow: 0 -4px 20px rgba(0, 255, 255, 0.2), 0 -1px 0 rgba(0, 255, 255, 0.3);
    z-index: 100;
    padding: 0px 15px 15px;
    display: flex;
    flex-direction: column;
    max-height: 350px;
    overflow-y: auto;
    border-top: 2px solid var(--primary-color);
}

.character-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    line-height: 0.8;
    padding: 0px 0;
    margin-bottom: 10px;
    position: relative;
}

.character-sheet-toggle {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    cursor: pointer;
    min-width: 80px;
    height: 32px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-group {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.02));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    padding: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.stat-title {
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.stat-name {
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
}

/* Meta resource summary (collapsed view) */
.meta-resources-summary {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 5px 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    align-items: center;
    flex-grow: 1;
    height: 40px;
}

.meta-resource-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
}

.meta-resource-label {
    font-weight: 500;
}

.meta-resource-value {
    font-weight: bold;
}

.character-sheet:not(.minimized) .meta-resources-summary {
    display: none;
}

/* Animation */
@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(240, 160, 75, 0.3); }
    100% { background-color: transparent; }
}

.highlight {
    animation: highlight 0.1s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .choice-item, .option-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Has-preview doesn't need a special rule on mobile as they're already full width */

    .character-sheet {
        max-height: 300px;
    }

    .character-sheet.expanded {
        max-height: 80vh;
    }

    .stat-group {
        min-width: 95%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .choice-item, .option-item {
        flex: 0 0 calc(30% - 15px);
        max-width: calc(30% - 15px);
    }
}

/* Minimized character sheet styles */
.character-sheet.minimized {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50px !important;
    height: 50px;
    overflow: hidden;
    padding: 0 15px !important;
    display: flex;
    align-items: center;
}

/* Media query for smaller screens - taller minimized sheet */
@media (max-width: 1100px) {
    .character-sheet.minimized {
        max-height: 80px !important;
        height: 80px;
        /* flex-direction: column;
        justify-content: flex-end; */
    }

    .character-sheet.minimized .meta-resources-summary {
        position: absolute;
        top: auto;
        bottom: 20px;
        left: 0;
        /* top: 15px !important; */
        right: 0;
        height: 50px;
        align-items: center;
        justify-content: center;
        padding-bottom: 0;
        z-index: 0;
    }

    .character-sheet.minimized .character-sheet-header {
        position: absolute;
        top: -5px;
        right: -10px;
        width: auto;
        z-index: 2;
    }
}

.character-sheet.minimized .character-sheet-header {
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: none;
    z-index: 2;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.character-sheet.minimized .character-sheet-header h3 {
    display: none;
}

.character-sheet.minimized .character-stats {
    display: none;
}

.character-sheet.minimized .button-group {
    display: flex;
    align-items: center;
}

.character-sheet.minimized .meta-resources-summary {
    border-bottom: none;
    background-color: transparent;
    padding: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.character-sheet-header.minimized-header {
    justify-content: flex-end;
    border-bottom: none;
    padding: 0;
    margin: 0;
    min-width: 300px;
    width: 100%;
}

/* Add roll styles to the end of the file */

/* Roll items */
.roll-item {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
    border: 1px solid #8a2be2;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.roll-item:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(138, 43, 226, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Roll container */
.roll-container {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(138, 43, 226, 0.05));
    border: 1px solid #8a2be2;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.roll-button {
    background: linear-gradient(135deg, #8a2be2, #6a1b9a);
    color: white;
    border: 1px solid #8a2be2;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roll-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #9932cc, #8a2be2);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.roll-button:disabled {
    background: linear-gradient(135deg, var(--neutral-color), #666666);
    cursor: not-allowed;
    box-shadow: none;
}

/* Roll results */
.roll-results {
    margin-top: 15px;
}

.dice-rolls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.dice-roll {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border: 1px solid var(--primary-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    padding: 8px 12px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.selectable-roll {
    cursor: pointer;
    transition: all 0.3s ease;
}

.selectable-roll:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.effects-list {
    list-style-type: none;
    padding-left: 0;
}

.effects-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.effects-list li:last-child {
    border-bottom: none;
}

/* Separator between rolls */
.roll-container + hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(109, 40, 217, 0.5), rgba(0, 0, 0, 0));
    margin: 30px 0;
}

/* Roll completed styling */
.roll-completed {
    font-weight: bold;
    color: var(--primary-color);
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    background-color: rgba(58, 90, 120, 0.1);
    display: inline-block;
}

.default-execute-message {
    font-style: italic;
    color: var(--info-color);
    margin-top: 5px;
    font-size: 0.9em;
}

/* Disabled choice styling */
.disabled-choice {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #404040, #2a2a2a) !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(136, 136, 136, 0.3);
}

.disabled-choice.selected {
    opacity: 0.8;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, var(--dark-accent-color), #008800) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 0 15px rgba(0, 204, 0, 0.3) !important;
    border-color: var(--primary-color);
}

.disabled-choice:hover {
    border-color: rgba(136, 136, 136, 0.3) !important;
    transform: none !important;
    box-shadow: none !important;
}

.locked-indicator {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(136, 136, 136, 0.2), rgba(136, 136, 136, 0.1));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    font-size: 0.8em;
    color: var(--neutral-color);
    border: 1px solid var(--neutral-color);
    box-shadow: 0 0 5px rgba(136, 136, 136, 0.2);
}

.lock-icon {
    font-size: 0.9em;
    margin-right: 4px;
}

/* Reroll and Selection button styles */
.reroll-button, .selection-button {
    background: linear-gradient(135deg, var(--success-color), #00cc00);
    color: #000;
    border: 1px solid var(--success-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reroll-button:hover:not(:disabled), .selection-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ff00, #00aa00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.reroll-button:disabled, .selection-button:disabled {
    background: linear-gradient(135deg, var(--neutral-color), #666666);
    cursor: not-allowed;
    box-shadow: none;
}

.influence-cost-info {
    float: right;
    background: linear-gradient(135deg, rgba(255, 0, 68, 0.2), rgba(255, 0, 68, 0.1));
    color: var(--error-color);
    padding: 4px 8px;
    margin: 5px 0;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--error-color);
    box-shadow: 0 0 8px rgba(255, 0, 68, 0.3);
}

.select-message, .selection-message {
    margin: 10px 0;
    font-weight: 500;
    color: #495057;
}

.selection-message {
    color: #28a745;
}

/* Style for roll result effects */
.roll-effects {
    margin-top: 0px;
    padding: 10px;
    padding-left: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    border-left: 4px solid var(--info-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Highlight selected roll more prominently */
.selected-roll {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.2));
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

/* Adding a container for roll button and influence buttons */
.roll-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.influence-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.roll-effects p {
    margin: 0px;
}

.result-effects-list {
    margin-top: 0px !important;
    padding: 5px;
}

/* Roll Results Table Styles */
.roll-results-table-container {
    margin: 10px 0;
    max-width: 100%;
    overflow-x: auto;
}

.roll-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.roll-results-table th {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    text-align: left;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.roll-results-table td {
    padding: 4px 12px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    font-size: 1em;
    background: linear-gradient(135deg, var(--card-bg), #333333);
}

.roll-results-table tr:nth-child(even) td {
    background: linear-gradient(135deg, #333333, var(--card-bg));
}

.roll-results-table tr:hover td {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
}

.roll-cell {
    font-weight: bold;
    width: 60px;
    text-align: center;
}

.effects-cell {
    padding: 4px 8px;
}

/* Entity and Effects Rendering Styles */
.entity-effects-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.entity-requirements {
    background-color: #f2f7ff;
    border-left: 3px solid #4a6fa5;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
}

.requirements-title {
    font-weight: bold;
    color: #3a5a78;
    margin-bottom: 5px;
}

.requirements-list {
    margin: 0;
    padding-left: 20px;
}

.requirement-characteristic,
.requirement-skill,
.requirement-age,
.requirement-descriptor,
.requirement-descriptor-not {
    margin: 2px 0;
    font-size: 0.95em;
}

.requirement-characteristic {
    color: #2c7be5;
}

.requirement-skill {
    color: #0e9f6e;
}

.requirement-age {
    color: #9f7315;
}

.requirement-descriptor,
.requirement-descriptor-not {
    color: #9f1239;
}

.effect-characteristic {
    color: #2c7be5;
    font-weight: bold;
}

.effect-skill {
    color: #0e9f6e;
    font-weight: bold;
}

.effect-descriptor {
    color: #9f1239;
    font-style: italic;
}

.effect-resource {
    color: #9f7315;
}

.effect-description {
    font-style: italic;
    color: #555;
}

.effect-execute {
    color: #5a32a3;
    font-weight: bold;
}

.execute-entity-title {
    margin-left: 8px;
    color: #6b7280;
    font-style: italic;
}

.execute-subcontainer {
    margin-left: 16px;
    padding-left: 8px;
    border-left: 2px solid #e5e7eb;
    margin-top: 4px;
}

.entity-title {
    font-weight: bold;
    margin-top: 6px;
}

.entity-description {
    font-style: italic;
    margin-bottom: 4px;
    /* color: #555; */
}

.entity-entry {
    margin-left: 16px;
    padding-left: 8px;
    border-left: 2px solid #e5e7eb;
    margin-top: 4px;
}

.entry-title {
    font-weight: bold;
    margin-bottom: 2px;
}

/* Ensure the roll container has some margin to look good */
.roll-container {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

/* Preview Styles */
.preview-button {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    padding: 5px 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-button:hover {
    background: linear-gradient(135deg, #00cccc, var(--primary-color));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.preview-container {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--card-bg), #333333);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: var(--text-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    z-index: 10;
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
    cursor: default;
}

.preview-container * {
    pointer-events: auto;
}

.preview-title {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    padding: 10px 15px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.preview-close-button {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.preview-close-button:hover {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.preview-content {
    padding: 15px;
}

.preview-entity-header {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
    margin: 10px 0;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.preview-separator {
    margin: 15px 0;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 255, 255, 0), rgba(0, 255, 255, 0.5), rgba(0, 255, 255, 0));
}

.preview-error {
    color: var(--error-color);
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 0, 68, 0.2), rgba(255, 0, 68, 0.1));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    margin: 10px 0;
    border: 1px solid var(--error-color);
    box-shadow: 0 0 10px rgba(255, 0, 68, 0.3);
}

.preview-missing {
    color: var(--warning-color);
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.2), rgba(255, 136, 0, 0.1));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    margin: 10px 0;
    border: 1px solid var(--warning-color);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}

/* Make sure choice items can position relative for preview container */
.choice-item, .option-item, .roll-item {
    position: relative;
}

/* Entity rendering styles */
.entity-test-info {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    padding: 10px;
    margin: 10px 0;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.entity-modifiers {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.entity-effects-title {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.success-effects {
    color: #28a745;
}

.fail-effects {
    color: #dc3545;
}

.entry-description {
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Fix for display of execute effects */
.effect-execute {
    color: #5a32a3;
    font-weight: bold;
}

/* Preview interaction styles */
.preview-container a,
.preview-container button,
.preview-container .interactive {
    cursor: pointer;
}

.preview-container input,
.preview-container select,
.preview-container textarea {
    cursor: text;
}

/* Make the roll results table more interactive */
.preview-container .roll-results-table tr:hover {
    background-color: #f0f0f0;
    cursor: default;
}

/* Add styling for roll details */
.roll-details-container {
    margin: 10px 0;
    margin-bottom: 0px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.02));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    font-family: 'Courier New', 'Consolas', monospace;
    line-height: 1.0;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.roll-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Add styling for test results */
.test-result-container {
    margin: 10px 0;
    padding: 10px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-result.success {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    color: var(--success-color);
    border: 1px solid var(--success-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.test-result.failure {
    background: linear-gradient(135deg, rgba(255, 0, 68, 0.2), rgba(255, 0, 68, 0.1));
    color: var(--error-color);
    border: 1px solid var(--error-color);
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.3);
}

/* Style for selectable rolls indicating success/failure */
.selectable-roll.success-roll {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.selectable-roll.failure-roll {
    border-color: var(--error-color);
    background: linear-gradient(135deg, rgba(255, 0, 68, 0.2), rgba(255, 0, 68, 0.1));
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.3);
}

/* Styling for different effect types */
.characteristic-effect {
    color: #1976d2;
}

.skill-effect {
    color: #7b1fa2;
}

.meta-resource-effect {
    color: #f57c00;
}

.descriptor-effect {
    color: #00796b;
}

.resource-effect {
    color: #c2185b;
}

.description-effect {
    color: #546e7a;
    font-style: italic;
}

/* Add styling for roll modifiers display */
.roll-modifiers {
    margin: 10px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    text-align: center;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
    border: 1px solid var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

/* Summary Styles */
.summary-container {
    background: linear-gradient(135deg, var(--card-bg), #333333);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    padding: 20px;
    margin: 20px 0;
    color: var(--text-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* New class for full-width stat groups */
.summary-full-width {
    width: 100%;
    flex: 1 1 100%;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.summary-group {
    margin-bottom: 15px;
}

.summary-group h4 {
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.summary-container ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 0;
}

.summary-container li {
    margin-bottom: 5px;
    position: relative;
}

.summary-container li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -15px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Export Popup Styles */
.export-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.export-popup-content {
    background: linear-gradient(135deg, var(--card-bg), #333333);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.4);
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.export-popup-header {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.export-popup-header h2 {
    margin: 0;
    color: #000;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-popup-close {
    background: none;
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.export-popup-close:hover {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.export-popup-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 70px); /* Subtract header height */
}

/* Make the summary inside the popup prettier */
.export-popup-body .summary-container {
    margin: 0;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
}

/* Add animation for the popup */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.export-popup-overlay {
    animation: fadeIn 0.1s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.export-popup-content {
    animation: slideIn 0.1s ease;
}

/* Enhanced Summary Styles with Character Sheet */
.summary-character-sheet {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

.summary-character-sheet h2,
.summary-selections h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.summary-selections h2 {
    margin-top: 30px;
}

.summary-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.summary-stat-group {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.02));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.summary-stat-group h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.summary-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-stats-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.summary-stats-table td {
    padding: 8px 4px;
}

.summary-stat-name {
    font-weight: 500;
    color: #f0f0f0;
}

.summary-stat-value {
    font-weight: bold;
    text-align: right;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.summary-stat-empty {
    color: var(--neutral-color);
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .summary-stat-row {
        flex-direction: column;
    }

    .summary-stat-group {
        min-width: 100%;
    }
}

/* Journal Styles */
.summary-journal {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.summary-journal h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.journal-entries {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.02));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.journal-entries p {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    line-height: 1.5;
}

.journal-entries p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.journal-entries strong {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.journal-entries ul {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
}

.journal-entries li {
    margin-bottom: 5px;
}

/* Section Header and Minimize Button Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-preview-button {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-preview-button:hover {
    background: linear-gradient(135deg, #00cccc, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.section-minimize-toggle {
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-minimize-toggle:hover {
    background: linear-gradient(135deg, #00cccc, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Minimized Section Styles */
.section-minimized {
    padding-bottom: 15px;
}

.section-minimized .section-header {
    margin-bottom: 0;
}

.section-content {
    transition: max-height 0.3s ease;
}

/* Update for minimized state */
.section-minimized .section-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Summary styling */
.summary-stat-description {
    font-size: 0.85em;
    color: #666;
    padding: 0 0.5rem 0.5rem 1rem;
    font-style: italic;
    text-align: left;
    border-bottom: 1px dashed #ddd;
}

/* Add styling for section images */
.section-image {
    margin: 1em 0;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add styling for entry images */
.entry-image {
    margin-bottom: 1em;
    line-height: 0;
    text-align: center;
}

.entry-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Add styling for roll images */
.roll-image {
    margin-bottom: 1em;
    text-align: center;
}

.roll-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Footer Section Styles */
.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 50px;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-hidden .footer-section {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.footer-toggle {
    position: absolute;
    right: 30px;
    top: 10px;
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    padding: 8px 15px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-toggle:hover {
    background: linear-gradient(135deg, #00cccc, var(--primary-color));
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.footer-section {
    margin-top: 0px;
    background: linear-gradient(135deg, var(--card-bg), #333333);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.credits-container, .changelog-container {
    flex: 1;
    min-width: 250px;
}

.credits-container h3, .changelog-container h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.credits-container p {
    margin: 5px 0;
    color: var(--text-color);
}

.changelog-entry {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.changelog-entry .version {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 50px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.changelog-entry .description {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .footer-section {
        flex-direction: column;
    }
}

/* Title Styles */
.title-container {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95), rgba(26, 26, 26, 0.95));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    padding: 15px 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--accent-color);
    border: 2px solid rgba(0, 255, 255, 0.4);
}

.title-container h1 {
    font-size: 2.8rem;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    padding: 5px;
    padding-bottom: 10px;
    background: linear-gradient(135deg, var(--card-bg), #333333);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.control-buttons .group-description {
    text-align: center;
    margin-block-start: 0px;
    margin-block-end: 0px;
    margin-bottom: 0px;
}

.control-buttons > div {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 80px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reset-btn {
    background: linear-gradient(135deg, var(--error-color), #cc0033);
    color: #fff;
    border-color: var(--error-color);
    box-shadow: 0 0 10px rgba(255, 0, 68, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ff0055, var(--error-color));
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.5);
    transform: translateY(-2px);
}

.save-build-btn {
    background: linear-gradient(135deg, var(--success-color), #00cc00);
    color: #000;
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.save-build-btn:hover {
    background: linear-gradient(135deg, var(--choice-background-hover), var(--choice-background-selected));
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.load-build-btn {
    background: linear-gradient(135deg, var(--info-color), #0088cc);
    color: #000;
    border-color: var(--info-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.load-build-btn:hover {
    background: linear-gradient(135deg, #00cccc, var(--info-color));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.music-btn {
    background: linear-gradient(135deg, var(--success-color), #00cc00);
    color: #000;
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.music-btn:hover {
    background: linear-gradient(135deg, var(--choice-background-hover), var(--choice-background-selected));
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .control-buttons > div {
        flex-direction: column;
        align-items: center;
    }

    .control-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Navigation Menu Styles */
.navigation-menu {
    position: fixed;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95), rgba(26, 26, 26, 0.95));
    border: 2px solid var(--primary-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    top: 5px;
    left: 5px;
    max-width: 250px;
    min-width: 160px;
}

.navigation-menu.collapsed {
    min-width: 40px;
    width: 40px;
}

.nav-header {
    padding: 10px 12px;
    font-size: 0.9em;
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-header:hover {
    background: linear-gradient(135deg, #00cccc, var(--primary-color));
    transform: translateY(-1px);
}

.nav-title {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-toggle {
    font-size: 14px;
    opacity: 0.8;
}

.nav-content {
    padding: 10px 0;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.nav-section {
    /* margin-bottom: 8px; */
}

.nav-section-title {
    padding: 4px;
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.nav-section-title:hover {
    background: rgba(0, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.nav-groups {
    padding-left: 15px;
}

.nav-group {
    padding: 4px 12px;
    font-size: 0.8em;
    color: var(--text-color);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.nav-group:hover {
    background: rgba(0, 255, 0, 0.08);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    opacity: 1;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    padding-left: 20px;
}

/* Custom scrollbar for navigation */
.navigation-menu::-webkit-scrollbar,
.nav-content::-webkit-scrollbar {
    width: 6px;
}

.navigation-menu::-webkit-scrollbar-track,
.nav-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

.navigation-menu::-webkit-scrollbar-thumb,
.nav-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.navigation-menu::-webkit-scrollbar-thumb:hover,
.nav-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}