/* Windows XP Default Blue Theme (Luna) Pallete */
:root {
    --xp-blue-primary: #3f6eb7; /* Title bar blue */
    --xp-blue-gradient-start: #4a89dc; /* Lighter blue for gradient top */
    --xp-blue-gradient-end: #3660a5; /* Darker blue for gradient bottom */
    --xp-gray-background: #f0f0f0; /* Default window background */
    --xp-gray-light: #f7f7f7; /* Very light gray for elements */
    --xp-gray-medium: #e4e4e4; /* Button default */
    --xp-gray-dark: #c0c0c0; /* Borders, shadows */
    --xp-text-color: #000000;
    --xp-button-border: #9b9b9b;
    --xp-button-active-border: #003c74;
    --xp-button-hover-blue: #a3c4f9; /* Blue highlight for buttons */
    --xp-focus-outline: #0078d7; /* Standard Windows focus outline */
}

body {
    background: url('/Windows.webp') no-repeat center center fixed; /* Default XP wallpaper */
    background-size: cover;
    color: var(--xp-text-color);
    line-height: 1.6;
    font-family: Tahoma, Geneva, sans-serif; /* XP Font */
    font-size: 14px;
}

.container {
    max-width: 900px;
    margin: 20px auto; /* Add some margin from top/bottom */
    padding: 0; /* Remove container padding, sections will have their own */
    background: none; /* No background for container itself */
    box-shadow: none; /* No shadow for container */
}

/* Common window/panel style for XP */
.xp-window {
    background-color: var(--xp-gray-background);
    border: 1px solid var(--xp-blue-gradient-end); /* Dark blue border for window */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    border-radius: 4px; /* Slight rounding */
    margin-bottom: 20px;
    overflow: hidden; /* To contain inner elements */
}

.xp-window-titlebar {
    background: linear-gradient(to bottom, var(--xp-blue-gradient-start), var(--xp-blue-gradient-end));
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid var(--xp-blue-gradient-end);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default; /* Indicate not draggable */
}

.xp-window-titlebar .title-text {
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.xp-window-content {
    padding: 15px;
    background-color: var(--xp-gray-background); /* Explicitly set content background */
}

/* Header (Top "window") */
header {
    padding: 0; /* Remove header padding */
    text-align: left; /* Adjust alignment for XP title bar style */
}

header .xp-window-titlebar {
    border-bottom: none; /* Title bar already has its own bottom border */
}

header h1 {
    color: white; /* Title text is white on blue bar */
    font-size: 18px; /* Standard XP title bar font size */
    margin: 0; /* Remove margin from h1 */
    display: inline-block; /* For title-text class */
}

.tagline {
    font-style: normal; /* Remove italic */
    color: var(--xp-text-color);
    padding: 10px 15px; /* Add padding to content part */
    display: block; /* Ensure it's on a new line below the notice */
    text-align: center;
}

.scrolling-notice {
    overflow: hidden;
    background: var(--xp-gray-light);
    margin: 0 15px 10px 15px; /* Margin inside the "window" */
    padding: 5px;
    border: 1px solid var(--xp-gray-dark);
    border-radius: 3px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

.scrolling-notice p {
    white-space: nowrap;
    animation: scroll-text 15s linear infinite;
    color: #444; /* Darker text for better contrast on light gray */
    font-size: 13px;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Project Link box */
.project-link {
    background-color: var(--xp-gray-light);
    border: 1px solid var(--xp-gray-dark);
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
}

.project-link a {
    color: var(--xp-blue-gradient-end); /* XP link blue */
    text-decoration: underline;
}
.project-link a:hover {
    color: var(--xp-blue-primary);
}
.project-link p {
    margin-bottom: 5px; /* Add some spacing between paragraphs */
}

/* Search container, Result container, Community section */
/* These top-level elements now solely rely on .xp-window for their window styling */
/* Their original styling properties like background-color, padding, border-radius, box-shadow are now handled by .xp-window */

/* The actual content inside these XP windows */
.search-container .xp-window-content,
#resultContainer .xp-window-content,
.community-section .xp-window-content {
    padding: 15px; /* Apply padding to the inner content area */
}

#loadingIndicator.xp-window {
    margin: 2rem auto; /* Center the loading window */
    padding: 0; /* Handled by xp-window-content */
    width: fit-content; /* Adjust width to content */
}
#loadingIndicator .xp-window-content {
    padding: 20px; /* Apply padding to its content */
    text-align: center;
}

.description {
    margin-bottom: 15px;
    text-align: left; /* Align description left inside the window content */
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"], select, textarea {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--xp-gray-dark);
    border-top-color: #a0a0a0; /* Darker top border for recessed effect */
    border-left-color: #a0a0a0; /* Darker left border */
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1); /* Recessed look */
    font-size: 1rem;
    color: var(--xp-text-color);
}

/* Specific styles for the textarea */
#lostMediaInput {
    min-height: 100px; /* Make it bigger */
    font-size: 1.25rem; /* Make text 1.25x bigger */
    resize: vertical; /* Allow vertical resizing */
    overflow-y: auto; /* Ensure scrollable if content exceeds height */
}

input[type="text"]:focus, select:focus, textarea:focus {
    outline: 1px solid var(--xp-focus-outline);
    border-color: var(--xp-focus-outline);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

button {
    background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray-medium));
    color: var(--xp-text-color);
    border: 1px solid var(--xp-button-border);
    border-radius: 3px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: normal; /* Remove bold */
    font-size: 13px;
    box-shadow: 1px 1px 0 rgba(0,0,0,0.1); /* Subtle shadow for depth */
    transition: all 0.1s ease-out; /* Smoother transition */
}

button:hover {
    background: linear-gradient(to bottom, var(--xp-button-hover-blue), var(--xp-blue-primary));
    color: white; /* White text on hover */
    border-color: var(--xp-blue-primary);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

button:active {
    background: linear-gradient(to top, var(--xp-button-hover-blue), var(--xp-blue-primary));
    border-color: var(--xp-button-active-border);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2); /* Pressed effect */
    transform: translateY(1px); /* Slight shift down when pressed */
}

/* Specific button overrides */
.share-button {
    background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray-medium));
    color: var(--xp-text-color);
    border-color: var(--xp-button-border);
}
.share-button:hover {
    background: linear-gradient(to bottom, var(--xp-button-hover-blue), var(--xp-blue-primary));
    color: white;
}
.share-button:active {
    background: linear-gradient(to top, var(--xp-button-hover-blue), var(--xp-blue-primary));
}

#loadingIndicator {
    text-align: center;
    margin: 2rem 0;
}

.spinner {
    width: 40px; /* Smaller spinner */
    height: 40px;
    border: 4px solid var(--xp-gray-medium); /* Lighter border */
    border-top: 4px solid var(--xp-blue-primary); /* XP blue spinner */
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none;
}

#resultContainer {
    background-color: var(--xp-gray-background);
    padding: 0;
    border: 1px solid var(--xp-gray-dark);
}

/* Wiki styling */
#wikiContent {
    font-family: Arial, sans-serif; /* Common web font for content */
    font-size: 13px;
}

#wikiContent h2 {
    font-size: 1.5rem;
    color: var(--xp-blue-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--xp-gray-dark);
    padding-bottom: 0.2rem;
}

#wikiContent h3 {
    font-size: 1.2rem;
    color: var(--xp-blue-gradient-end);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px dotted var(--xp-gray-dark); /* Dotted for sub-section */
    padding-bottom: 0.1rem;
}

#wikiContent p {
    margin-bottom: 0.8rem;
}

#wikiContent ul, #wikiContent ol {
    margin-left: 20px;
    margin-bottom: 0.8rem;
}

.wiki-status {
    background-color: #cccccc; /* Default gray for status */
    color: #333;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: normal;
    border: 1px solid #999999;
}

/* Specific status colors */
.wiki-lost { background-color: #ffcccc; border-color: #ff0000; color: #000; } /* Light red */
.wiki-partially-found { background-color: #ffe6b3; border-color: #ff8c00; color: #000; } /* Light orange */
.wiki-found { background-color: #ccffcc; border-color: #008000; color: #000; } /* Light green */
.wiki-existence-unconfirmed { background-color: #e0ccff; border-color: #800080; color: #000; } /* Light purple */
.wiki-false-flag { background-color: #d6b8a8; border-color: #8b4513; color: #000; } /* Light brown */
.wiki-hoax { background-color: #d2dce2; border-color: #5f9ea0; color: #000; } /* Light blue-gray */
.wiki-fictional-lost-media { background-color: #b3e0ff; border-color: #007bff; color: #000; } /* Light blue */
.wiki-recently-rediscovered { background-color: #ccf2f5; border-color: #00bcd4; color: #000; } /* Light cyan */
.wiki-being-digitized { background-color: #b3e6e6; border-color: #009688; color: #000; } /* Light teal */
.wiki-reconstruction-attempt { background-color: #ffc9b3; border-color: #ff5722; color: #000; } /* Light orange-red */
.wiki-destroyed { background-color: #e0e0e0; border-color: #424242; color: #000; } /* Light gray */
.wiki-creator-resurrected { background-color: #f7b3d0; border-color: #e91e63; color: #000; } /* Light pink */

.wiki-section {
    margin-bottom: 1.5rem;
}

.wiki-section h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.wiki-image-placeholder {
    background-color: #eee;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin: 1rem 0;
    position: relative;
}

.wiki-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wiki-image-placeholder .generate-image-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--xp-blue-primary); /* This will be XP Blue from the root vars */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.9;
}

.wiki-image-placeholder .generate-image-btn:hover {
    opacity: 1;
}

.wiki-info-box {
    background-color: #ffffff;
    border: 1px solid var(--xp-gray-dark);
    padding: 10px;
    margin: 10px 0 10px 15px; /* Adjust margin */
    float: right;
    width: 250px; /* Slightly narrower */
    border-radius: 3px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

.wiki-info-box h4 {
    background-color: var(--xp-blue-primary);
    color: white;
    padding: 3px 5px;
    margin: -10px -10px 10px -10px; /* Extend background */
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.wiki-info-item {
    margin-bottom: 5px;
    font-size: 12px;
}

.wiki-info-label {
    font-weight: bold;
}

.wiki-references {
    border-top: 1px dotted var(--xp-gray-dark);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.wiki-references ol {
    margin-left: 1.5rem;
}

/* Community Entries */
.community-section {
    margin-top: 3rem;
    background-color: var(--xp-gray-background);
    padding: 0;
    border: 1px solid var(--xp-gray-dark);
}

.community-section h2 {
    /* This rule will be overridden by .xp-window-titlebar on the H2 itself now */
    display: none; /* Hide the h2 directly as it's replaced by .xp-window-titlebar content */
}

.community-description {
    text-align: left;
    margin-bottom: 1.5rem;
}

.community-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.community-entry {
    background-color: #e0e0e0; /* Slightly darker than window background */
    border: 1px solid var(--xp-gray-dark);
    border-radius: 3px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.1s ease-out;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.community-entry:hover {
    transform: none; /* No lift effect */
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1); /* Pressed effect on hover */
    background-color: #d0d0d0;
}
.community-entry:active {
    background-color: #c0c0c0;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
}

.entry-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--xp-blue-primary);
    font-size: 14px;
}

.entry-creator {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.entry-status {
    /* Re-using wiki-status directly, no need for composes */
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    margin-top: 5px;
}

.entry-preview {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-entries {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    /* Apply XP window styling to the modal content itself */
    background-color: var(--xp-gray-background);
    border: 1px solid var(--xp-blue-gradient-end);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0; /* No padding on the outer modal-content, it's handled by xp-window-content */
    max-width: 700px; /* Smaller max-width for modals */
    max-height: 90vh;
    overflow: hidden; /* To contain inner elements like xp-window */
    position: relative;
    display: flex; /* Make it a flex container to arrange titlebar and content */
    flex-direction: column; /* Stack children vertically */
}

/* Specific styling for modal title bar to look like XP */
.modal-content .xp-window-titlebar {
    border-radius: 3px 3px 0 0; /* Apply border-radius to match XP window */
    border-bottom: 1px solid var(--xp-blue-gradient-end); /* Ensure standard border */
}

/* Ensure the title text within the modal title bar is white */
.modal-content .xp-window-titlebar .title-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin: 0; /* Remove default h2 margin */
}

/* Content area of the modal */
.modal-content .xp-window-content {
    padding: 15px;
    overflow-y: auto; /* Allow scrolling for modal content */
    flex-grow: 1; /* Allow content to grow and take available space */
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: white; /* White X on blue bar */
    padding: 0;
    line-height: 1; /* For better alignment */
    width: 20px; /* Fixed size */
    height: 20px;
    text-align: center;
    border-radius: 2px;
    font-size: 1.5rem; /* Make X bigger */
    font-weight: normal; /* Remove bold default from button style */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s ease-out; /* Smooth transition */
}

.close-modal:hover {
    background-color: #c00000; /* Red hover for close button */
    color: white;
    border-color: #c00000; /* Match border color */
}
.close-modal:active {
    background-color: #800000;
    border-color: #800000; /* Match border color */
}

.security-warning {
    background-color: #ffe0b2; /* Light orange for warning */
    color: #e65100;
    padding: 1rem;
    border: 1px solid #ff9800;
    border-radius: 4px;
    margin: 1rem 0;
    font-weight: bold;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--xp-gray-background);
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--xp-gray-dark);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Music Controls & Panel */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--xp-gray-medium); /* XP gray button */
    border: 1px solid var(--xp-button-border);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    color: var(--xp-text-color);
    border-radius: 3px; /* Square-ish */
    width: 40px; /* Smaller */
    height: 40px;
}

.music-controls:hover {
    transform: none; /* No scale on hover */
    background: linear-gradient(to bottom, var(--xp-button-hover-blue), var(--xp-blue-primary));
    color: white;
    border-color: var(--xp-blue-primary);
}

.music-controls:active {
    background: linear-gradient(to top, var(--xp-button-hover-blue), var(--xp-blue-primary));
    border-color: var(--xp-button-active-border);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.music-panel {
    position: fixed;
    bottom: 70px; /* Adjust position */
    right: 20px;
    background-color: var(--xp-gray-background);
    border: 1px solid var(--xp-blue-gradient-end);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0; /* Remove panel padding, content will have */
    width: 250px; /* Slightly narrower */
    transition: all 0.3s ease;
    color: var(--xp-text-color);
}

.music-panel.hidden {
    transform: translateX(270px); /* Adjust for new width */
    opacity: 0;
    pointer-events: none;
}

.music-panel h3 {
    /* Use window titlebar style */
    background: linear-gradient(to bottom, var(--xp-blue-gradient-start), var(--xp-blue-gradient-end));
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid var(--xp-blue-gradient-end);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    text-align: center;
    margin: 0; /* Remove h3 margin */
    border-radius: 3px 3px 0 0; /* Only top corners rounded */
}
.music-panel h3 .title-text { /* Add text-shadow for music panel title */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.music-panel-content { /* Add this new class for content padding */
    padding: 15px;
}

.music-panel h4 {
    margin: 10px 0 5px;
    font-size: 13px;
    color: var(--xp-text-color);
}

.track-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.track-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.track-controls button {
    width: 30px; /* Smaller buttons */
    height: 30px;
    border-radius: 3px; /* Square-ish */
    background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray-medium));
    color: var(--xp-text-color);
    border: 1px solid var(--xp-button-border);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.track-controls button:hover {
    background: linear-gradient(to bottom, var(--xp-button-hover-blue), var(--xp-blue-primary));
    color: white;
    border-color: var(--xp-blue-primary);
}

.track-controls button:active {
    background: linear-gradient(to top, var(--xp-button-hover-blue), var(--xp-blue-primary));
    border-color: var(--xp-button-active-border);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.track-list {
    margin-top: 1rem;
}

.track-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 120px; /* Smaller list */
    border: 1px inset #b0b0b0; /* Sunken border for listbox */
    background-color: #ffffff;
    padding: 5px;
    border-radius: 2px;
}

.track-list li {
    padding: 5px 8px;
    border-radius: 2px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 12px;
    color: var(--xp-text-color);
    display: flex;
    justify-content: space-between;
}

.track-list li:hover {
    background-color: #ddeeff; /* Light blue hover */
    color: #000;
}

.track-list li.active {
    background-color: var(--xp-blue-primary); /* Blue selected */
    color: white;
    font-weight: bold;
}
.track-list li.active span {
    color: white; /* Ensure description is white too */
}

/* Status selector styling */
.status-selector-wrapper label {
    font-weight: bold;
    color: var(--xp-text-color);
    font-size: 13px;
}

#statusSelector {
    padding: 6px 8px; /* Adjust padding */
    border: 1px solid var(--xp-button-border);
    border-radius: 2px;
    background-color: #ffffff;
    font-size: 13px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

#statusSelector option {
    padding: 8px;
}

.share-container {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 15px;
    border-top: 1px solid var(--xp-gray-dark);
}

#shareConfirmation {
    color: green;
    margin-top: 0.5rem;
    font-weight: bold;
}

/* Remove dark mode styles as we are going for a fixed XP theme */
/* All dark mode related classes should be removed or made obsolete */
.dark-mode { /* This class itself will not be added anymore */
    /* All properties within this were for dark mode, which is now removed */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Allow background to scroll on mobile */
        font-size: 12px; /* Slightly smaller base font for mobile */
    }

    .container {
        margin: 10px; /* Reduce margin on smaller screens */
        padding: 0;
        max-width: 100%; /* Allow container to take full width */
    }

    .xp-window {
        margin-bottom: 15px; /* Reduce spacing between windows */
    }

    .xp-window-titlebar {
        font-size: 13px; /* Slightly smaller title bar font */
        padding: 4px 8px; /* Reduce padding */
    }

    header h1 {
        font-size: 16px; /* Adjust header title font size */
    }

    .tagline {
        padding: 8px 10px; /* Reduce padding */
        font-size: 12px;
    }

    .description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .input-wrapper {
        flex-direction: column; /* Stack input and button vertically */
        gap: 8px; /* Smaller gap */
        margin-bottom: 10px;
    }

    #lostMediaInput {
        min-height: 80px; /* Smaller min-height for mobile input */
        font-size: 1rem; /* Adjust font size relative to new base */
    }

    button {
        width: 100%; /* Make buttons full width when stacked */
        font-size: 12px;
        padding: 10px 15px; /* Increase padding for easier tapping */
    }

    .xp-window-content {
        padding: 10px; /* Reduce content padding for more space */
    }

    /* Wiki content adjustments */
    #wikiContent {
        font-size: 12px;
    }

    #wikiContent h2 {
        font-size: 1.3rem; /* Smaller H2 */
        margin-top: 0.8rem;
        margin-bottom: 0.4rem;
    }

    #wikiContent h3 {
        font-size: 1.1rem; /* Smaller H3 */
        margin-top: 0.8rem;
        margin-bottom: 0.4rem;
    }

    #wikiContent p {
        margin-bottom: 0.6rem;
    }

    #wikiContent ul, #wikiContent ol {
        margin-left: 15px; /* Reduce list indentation */
        margin-bottom: 0.6rem;
    }

    .wiki-info-box {
        float: none; /* Remove float */
        width: auto; /* Take full available width */
        margin: 10px 0; /* Center it with top/bottom margin */
        padding: 8px; /* Adjust padding */
    }

    .wiki-info-box h4 {
        margin: -8px -8px 8px -8px; /* Adjust margin to extend background */
    }

    .wiki-info-item {
        font-size: 11px; /* Smaller info item font */
    }

    .wiki-references {
        font-size: 0.8rem; /* Smaller references font */
        padding-top: 0.8rem;
        margin-top: 1rem;
    }

    /* Community entries adjustments */
    .community-entries {
        grid-template-columns: 1fr; /* Single column layout for community entries */
        gap: 1rem; /* Reduce gap */
    }

    .community-entry {
        padding: 8px; /* Reduce padding for entries */
    }

    .entry-title {
        font-size: 13px;
    }

    .entry-creator, .entry-preview {
        font-size: 0.7rem;
    }

    /* Modal adjustments */
    .modal-content {
        max-width: 95vw; /* Almost full width */
        max-height: 95vh; /* Almost full height */
    }

    .modal-content .xp-window-content {
        padding: 10px; /* Reduced padding for modal content */
    }

    footer {
        padding: 10px; /* Reduce footer padding */
        font-size: 0.75rem; /* Smaller footer text */
        margin-top: 15px;
    }

    .share-container {
        margin-top: 1rem;
        padding-top: 10px;
    }

    #statusSelector {
        padding: 5px 6px; /* Adjust padding */
        font-size: 12px;
    }
}