/* style.css */

/* --- Global Styles --- */
:root {
    --primary-bg-color: #0d0d0d; /* Deep dark background */
    --secondary-bg-color: #1a1a1a; /* Slightly lighter dark for panels */
    --accent-color-1: #00ffcc; /* Bright cyan/teal for highlights */
    --accent-color-2: #ff00ea; /* Vibrant magenta for secondary highlights */
    --text-color-light: #e0e0e0; /* Light grey for general text */
    --text-color-dark: #888888; /* Darker grey for subtle text */
    --border-color: #2a2a2a; /* Subtle border for elements */
    --glow-color: rgba(0, 255, 204, 0.5); /* Glow effect for interactive elements */
    --error-color: #ff3366; /* Red for error messages */

    /* Role Colors */
    --role-admin: #ff0000; /* Bright Red */
    --role-moderator: #0000ff; /* Bright Blue */
    --role-staff: #00ff00; /* Bright Green */
    --role-member: #ff4500; /* Blood Orange */

    --animation-speed-fast: 0.2s;
    --animation-speed-medium: 0.4s;
    --animation-speed-slow: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: var(--text-color-light); /* Default text color */
}

html, body {
    height: 100%;
    overflow: hidden; /* Prevent scroll for full-page effects */
    background-color: var(--primary-bg-color);
    position: relative;
}

/* --- Enhanced Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 2% auto;
    border: 2px solid #00ff00;
    border-radius: 15px;
    width: 95%;
    max-width: 700px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.enhanced-modal {
    max-width: 800px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
}

.modal-header h2 {
    color: #00ff00;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-section {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.03);
}

.form-section h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00ff00;
    cursor: pointer;
}

.checkbox-group label {
    color: #00ff00;
    cursor: pointer;
    font-weight: normal;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close, .close-button {
    color: #ff0000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close:hover,
.close:focus,
.close-button:hover,
.close-button:focus {
    color: #ff6666;
    text-decoration: none;
}

/* --- App Container for Background Effects --- */
#app-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Important for background particles/lines */
    perspective: 1000px; /* For 3D effects if any */
}

/* --- Custom Right-Click Menu --- */
.context-menu {
    position: fixed;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--accent-color-1);
    box-shadow: 0 0 15px var(--glow-color);
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1000;
    display: none; /* Hidden by default, shown by JS */
    font-size: 0.9em;
    color: var(--accent-color-1);
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%); /* Centering on cursor */
    pointer-events: none; /* Allow clicks to pass through if not active */
}

/* --- Navigation --- */
.main-nav {
    position: fixed; /* Fixed position for non-traditional layout */
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 50;
    background-color: rgba(26, 26, 26, 0.8); /* Semi-transparent */
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 300;
    transition: background-color var(--animation-speed-fast) ease, color var(--animation-speed-fast) ease, transform var(--animation-speed-fast) ease;
    overflow: hidden;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color-1), transparent);
    transition: left var(--animation-speed-medium) ease-out;
    z-index: -1;
    opacity: 0.2;
}

.nav-item:hover::before {
    left: 0;
}

.nav-item:hover {
    color: var(--primary-bg-color); /* Text darkens on hover */
    background-color: var(--accent-color-1); /* Becomes solid accent color */
    transform: translateX(10px);
    box-shadow: 0 0 15px var(--glow-color);
}

.nav-item .nav-icon {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--accent-color-1); /* Default icon color */
    transition: color var(--animation-speed-fast) ease;
}

.nav-item:hover .nav-icon {
    color: var(--primary-bg-color); /* Icon darkens on hover */
}

/* Active navigation item styling */
.nav-item.active {
    background-color: var(--accent-color-1);
    color: var(--primary-bg-color);
    font-weight: 700;
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateX(10px);
    border-left: 5px solid var(--accent-color-2);
}
.nav-item.active .nav-icon {
    color: var(--primary-bg-color);
}

/* --- Main Content Area --- */
.main-content {
    position: relative;
    width: calc(100% - 100px); /* Adjust for navigation width */
    height: 100%;
    margin-left: 100px; /* Offset for navigation */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* For page transition effects */
}

/* Page Section Styles */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none; /* Disable interaction when hidden */
    transition: opacity var(--animation-speed-medium) ease-in-out, transform var(--animation-speed-medium) ease-in-out;
    background-color: transparent; /* Pages themselves don't have bg */
}

.page.active-page {
    opacity: 1;
    pointer-events: auto; /* Enable interaction when active */
    position: relative; /* Take up space */
}

.page-title {
    font-size: 4em;
    margin-bottom: 20px;
    margin-top: 20px; /* Added to fix title alignment */
    font-weight: 700;
    color: var(--accent-color-1);
    text-shadow: 0 0 10px var(--glow-color);
    position: relative;
    display: inline-block; /* For glitch effect */
}

/* Glitch Effect for Titles */
.glitched-text::before,
.glitched-text::after {
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-shadow: 0 0 10px var(--glow-color);
}

.glitched-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color-2);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitched-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-color-1);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(27px, 9999px, 86px, 0); transform: skew(-0.5deg); }
    10% { clip: rect(25px, 9999px, 45px, 0); transform: skew(-0.5deg); }
    20% { clip: rect(61px, 9999px, 57px, 0); transform: skew(0.2deg); }
    30% { clip: rect(93px, 9999px, 87px, 0); transform: skew(0.3deg); }
    40% { clip: rect(76px, 9999px, 79px, 0); transform: skew(0.1deg); }
    50% { clip: rect(72px, 9999px, 78px, 0); transform: skew(-0.4deg); }
    60% { clip: rect(26px, 9999px, 20px, 0); transform: skew(0.5deg); }
    70% { clip: rect(68px, 9999px, 34px, 0); transform: skew(0.2deg); }
    80% { clip: rect(10px, 9999px, 14px, 0); transform: skew(-0.1deg); }
    90% { clip: rect(14px, 9999px, 44px, 0); transform: skew(0.3deg); }
    100% { clip: rect(91px, 9999px, 31px, 0); transform: skew(0.1deg); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(95px, 9999px, 6px, 0); transform: skew(0.5deg); }
    10% { clip: rect(69px, 9999px, 60px, 0); transform: skew(-0.3deg); }
    20% { clip: rect(50px, 9999px, 54px, 0); transform: skew(0.4deg); }
    30% { clip: rect(31px, 9999px, 99px, 0); transform: skew(-0.2deg); }
    40% { clip: rect(18px, 9999px, 86px, 0); transform: skew(0.1deg); }
    50% { clip: rect(44px, 9999px, 68px, 0); transform: skew(-0.5deg); }
    60% { clip: rect(13px, 9999px, 49px, 0); transform: skew(0.3deg); }
    70% { clip: rect(49px, 9999px, 70px, 0); transform: skew(-0.1deg); }
    80% { clip: rect(63px, 9999px, 25px, 0); transform: skew(0.2deg); }
    90% { clip: rect(10px, 9999px, 10px, 0); transform: skew(-0.4deg); }
    100% { clip: rect(45px, 9999px, 32px, 0); transform: skew(0.5deg); }
}

.page-description {
    font-size: 1.2em;
    color: var(--text-color-light);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.page-content {
    font-size: 1em;
    color: var(--text-color-dark);
    max-width: 700px;
    line-height: 1.8;
    text-align: justify;
    margin-top: 20px;
}

.call-to-action-button, .auth-button, .contact-button, .send-chat-button, .emoji-button, .view-private-messages-button, #send-private-reply-button, #admin-load-users-btn {
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    color: var(--primary-bg-color);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    transition: all var(--animation-speed-fast) ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.call-to-action-button:hover, .auth-button:hover, .contact-button:hover, .send-chat-button:hover, .emoji-button:hover, .view-private-messages-button:hover, #send-private-reply-button:hover, #admin-load-users-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px var(--glow-color), 0 0 40px var(--accent-color-2);
}

.call-to-action-button::before, .auth-button::before, .contact-button::before, .send-chat-button::before, .emoji-button::before, .view-private-messages-button::before, #send-private-reply-button::before, #admin-load-users-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.4s ease-out, height 0.4s ease-out, top 0.4s ease-out, left 0.4s ease-out;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.call-to-action-button:hover::before, .auth-button:hover::before, .contact-button:hover::before, .send-chat-button:hover::before, .emoji-button:hover::before, .view-private-messages-button:hover::before, #send-private-reply-button:hover::before, #admin-load-users-btn:hover::before {
    width: 200%;
    height: 200%;
    opacity: 1;
}

/* Forms (Auth, Contact, Settings) */
.auth-forms, .settings-forms, .admin-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin-top: 30px;
}

.form-container, .admin-section {
    background-color: var(--secondary-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    flex: 1 1 350px; /* Allows flexible width */
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children horizontally */
}

.form-container h2, .admin-section h2 {
    color: var(--accent-color-1);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.auth-form, #mod-kick-message-form, .admin-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Removed align-items: center here to let inputs be full width of form-container */
}

/* Reverted original input styling for Auth forms */
.auth-form label, #mod-kick-message-form label, .admin-form label {
    font-size: 0.95em;
    color: var(--text-color-light);
    text-align: left;
    width: 100%;
}

.auth-form input, #mod-kick-message-form input, .admin-form input, .admin-form select {
    width: 100%; /* Inputs take full width of their form */
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg-color);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-color-light);
    transition: border-color var(--animation-speed-fast) ease, box-shadow var(--animation-speed-fast) ease;
}

/* Specific styling for Contact Form inputs */
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center; /* Center labels and inputs within the contact form */
}

.contact-form label {
    font-size: 0.95em;
    color: var(--text-color-light);
    text-align: left;
    width: 100%;
    max-width: 350px; /* Max width for contact form labels */
}

.contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 350px; /* Set a reasonable maximum width for contact inputs */
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg-color);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-color-light);
    transition: border-color var(--animation-speed-fast) ease, box-shadow var(--animation-speed-fast) ease;
}


.auth-form input:focus, .contact-form input:focus, .contact-form textarea:focus, #mod-kick-message-form input:focus, .admin-form input:focus, .admin-form select:focus {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 8px var(--glow-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--error-color); /* Default for errors */
    text-align: center;
}

.switch-auth {
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-color-dark);
}

.switch-auth a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: color var(--animation-speed-fast) ease;
}

.switch-auth a:hover {
    color: var(--accent-color-2);
    text-decoration: underline;
}

/* News Feed */
.news-feed {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.news-item {
    background-color: var(--secondary-bg-color);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--animation-speed-fast) ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--glow-color);
}

.news-title {
    font-size: 1.8em;
    color: var(--accent-color-1);
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.9em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

.news-summary {
    font-size: 1em;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* --- Chat Specific Styles --- */

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--primary-bg-color); /* Slightly different from main chat bg */
    border: 1px solid var(--border-color);
}

.chat-message.self {
    background-color: #222; /* Different background for self messages */
    border-left: 3px solid var(--accent-color-1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.message-header .username {
    font-weight: 700;
}

.message-header .message-timestamp {
    color: var(--text-color-dark);
    font-size: 0.8em;
}

.message-body {
    color: var(--text-color-light);
    line-height: 1.5;
    word-wrap: break-word; /* Ensure long words don't overflow */
}

.message-body .text {
    white-space: pre-wrap; /* Respects whitespace and wraps text */
}

.chat-layout {
    display: flex;
    flex-direction: column; /* Changed to column for better vertical centering */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.chat-container {
    display: flex;
    width: 95%; /* Make it take more width */
    max-width: 1200px; /* Max width for large screens */
    height: calc(100vh - 180px); /* Adjust height for title and padding */
    background-color: var(--secondary-bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--border-color);
    position: relative;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px; /* For scrollbar */
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar, .private-message-list::-webkit-scrollbar, .user-management-list::-webkit-scrollbar, #online-users::-webkit-scrollbar, #active-bans-list::-webkit-scrollbar {
    width: 8px;
    background-color: var(--primary-bg-color);
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb, .private-message-list::-webkit-scrollbar-thumb, .user-management-list::-webkit-scrollbar-thumb, #online-users::-webkit-scrollbar-thumb, #active-bans-list::-webkit-scrollbar-thumb {
    background-color: var(--accent-color-1);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--glow-color);
}

.chat-messages::-webkit-scrollbar-track, .private-message-list::-webkit-scrollbar-track, .user-management-list::-webkit-scrollbar-track, #online-users::-webkit-scrollbar-track, #active-bans-list::-webkit-scrollbar-track {
    background: var(--secondary-bg-color);
    border-radius: 5px;
}

/*
NOTE: The following HTML change is required in the JS file that generates chat messages:
Replace: <div style="width:100%; text-align: right;">${timestampSpan}</div>
With: <div class="message-timestamp">${timestampSpan}</div>
*/


.chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
    border-radius: 12px;
    background-color: #2c2c2c; /* Darker, solid background */
    word-break: break-word;
    max-width: 80%; /* Prevent messages from taking full width */
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-message.self {
    /* align-self is removed to keep all messages left-aligned */
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(255, 0, 234, 0.1));
    border-color: var(--accent-color-1);
}

.chat-message.self::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--accent-color-1);
}

.chat-message .username {
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

/* Role-based username colors */
.username.role-admin { color: var(--role-admin); }
.username.role-moderator { color: var(--role-moderator); }
.username.role-staff { color: var(--role-staff); }
.username.role-member { color: var(--role-member); }

.username .role-icon {
    margin-right: 5px;
    font-size: 0.9em;
    vertical-align: middle;
    /* Specific icon colors if desired, otherwise inherits from username color */
}

.chat-message .text {
    font-size: 1em;
    color: var(--text-color-light);
    line-height: 1.5;
}

.message-timestamp {
    font-size: 0.75em;
    color: var(--text-color-dark);
    margin-top: 8px;
    align-self: flex-end;
}

.system-message {
    text-align: center;
    font-style: italic;
    color: var(--text-color-dark);
    margin: 10px 0;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Push to bottom */
    align-items: center;
}

.chat-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg-color);
    border-radius: 25px;
    font-size: 1em;
    color: var(--text-color-light);
    transition: border-color var(--animation-speed-fast) ease, box-shadow var(--animation-speed-fast) ease;
}

.chat-input:focus {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 8px var(--glow-color);
    outline: none;
}

.emoji-picker-container {
    position: relative;
}

.emoji-button {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    color: var(--primary-bg-color);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.emoji-button:hover {
    transform: scale(1.05);
}

.emoji-panel {
    position: absolute;
    bottom: 60px; /* Above the input area */
    right: 0;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 5px;
    width: 250px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.emoji-panel button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color var(--animation-speed-fast) ease;
}

.emoji-panel button:hover {
    background-color: rgba(0, 255, 204, 0.2);
}

.send-chat-button {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    color: var(--primary-bg-color);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.send-chat-button:hover {
    transform: scale(1.05);
}

.chat-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.user-count {
    font-size: 0.9em;
    color: var(--text-color-dark);
}

.private-msg-notification {
    background-color: var(--accent-color-2);
    color: var(--primary-bg-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    animation: pulse 1.5s infinite alternate;
}

.private-msg-notification i {
    margin-right: 5px;
}

.view-private-messages-button {
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--accent-color-2), var(--accent-color-1));
    color: var(--primary-bg-color);
    box-shadow: 0 0 10px rgba(255, 0, 234, 0.5);
}

.view-private-messages-button:hover {
    box-shadow: 0 0 15px var(--accent-color-2), 0 0 25px var(--accent-color-1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

.user-list-panel {
    width: 250px;
    background-color: var(--primary-bg-color);
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.user-list-panel h2 {
    color: var(--accent-color-1);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

#online-users {
    list-style: none;
    padding: 0;
}

#online-users li {
    padding: 8px 0;
    cursor: pointer;
    transition: background-color var(--animation-speed-fast) ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

#online-users li:last-child {
    border-bottom: none;
}

#online-users li:hover {
    background-color: rgba(0, 255, 204, 0.1);
    transform: translateX(3px);
}

#online-users li .username {
    font-weight: 700;
    margin-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Private Message Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-bg-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px var(--glow-color);
    border: 1px solid var(--accent-color-1);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    color: var(--text-color-dark);
    cursor: pointer;
    transition: color var(--animation-speed-fast) ease;
}

.modal-close-button:hover {
    color: var(--error-color);
}

.modal-content h2 {
    color: var(--accent-color-1);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.private-message-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px; /* For scrollbar */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.private-message {
    background-color: rgba(0, 255, 204, 0.08); /* Lighter accent background */
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    word-break: break-word;
}

.private-message.sent {
    background-color: rgba(255, 0, 234, 0.08); /* Magenta for sent messages */
    align-self: flex-end;
}

.private-message .sender {
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: 5px;
}

.private-message.sent .sender {
    color: var(--accent-color-2);
}

.private-message .timestamp {
    font-size: 0.75em;
    color: var(--text-color-dark);
    margin-top: 5px;
    text-align: right;
}

.private-message-reply-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#private-reply-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg-color);
    border-radius: 25px;
    font-size: 1em;
    color: var(--text-color-light);
}

/* Notification Modal Styles */
.notification-content {
    background-color: #1a1a1a;
    color: #ff00ff;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.7);
    text-align: center;
    max-width: 70%;
    width: 70%;
}

#notification-message {
    font-size: 3em; /* 3 times normal chat text */
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 10px #ff00ff;
}

/* Settings Page Container */
.settings-container {
    max-height: 90vh;
    overflow-y: auto;
    padding-top: 40px; /* Add padding to prevent title from being cut off */
}

/* Modern Admin Dashboard Styles */
.admin-dashboard {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.15), rgba(255, 51, 102, 0.1));
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    font-size: 2.5em;
    color: var(--accent-color-1);
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

.header-title h2 {
    color: var(--accent-color-1);
    margin: 0;
    font-size: 2.4em;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    font-weight: 700;
}

.header-subtitle {
    color: var(--text-color-dark);
    margin: 5px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.quick-stat {
    text-align: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.quick-stat .stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color-1);
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.4);
}

.quick-stat .stat-label {
    font-size: 0.9em;
    color: var(--text-color-dark);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    grid-template-areas:
        "users quick"
        "users stats"
        "bans controls";
}

.user-management-panel {
    grid-area: users;
}

.quick-actions-panel {
    grid-area: quick;
}

.system-panel {
    grid-area: stats;
}

.bans-panel {
    grid-area: bans;
}

.controls-panel {
    grid-area: controls;
}

/* Dashboard Panels */
.dashboard-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.dashboard-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.15);
}

.panel-header {
    background: rgba(0, 255, 204, 0.1);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-header h3 {
    color: var(--accent-color-1);
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.panel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-content {
    padding: 25px;
}

/* Modern Table */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.modern-table th,
.modern-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.modern-table th {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-color-1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.modern-table tr:hover {
    background: rgba(0, 255, 204, 0.08);
}

/* Action Cards */
.action-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.action-icon {
    font-size: 2.5em;
    color: var(--accent-color-2);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.action-card h4 {
    color: var(--accent-color-2);
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.compact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 255, 204, 0.05);
    border-color: rgba(0, 255, 204, 0.4);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.users-icon {
    background: rgba(0, 255, 204, 0.2);
    color: var(--accent-color-1);
}

.online-icon {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.banned-icon {
    background: rgba(255, 51, 102, 0.2);
    color: var(--accent-color-2);
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color-1);
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Bans Container */
.bans-container {
    max-height: 300px;
    overflow-y: auto;
}

.ban-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.ban-item:hover {
    background: rgba(255, 51, 102, 0.15);
}

.ban-item:last-child {
    margin-bottom: 0;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.warning-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.warning-btn:hover {
    background: rgba(255, 193, 7, 0.3);
}

.info-btn {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.info-btn:hover {
    background: rgba(23, 162, 184, 0.3);
}

.secondary-btn {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.secondary-btn:hover {
    background: rgba(108, 117, 125, 0.3);
}

/* Button Styles */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-block {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "users"
            "quick"
            "stats"
            "bans"
            "controls";
    }
    
    .header-stats {
        gap: 15px;
    }
    
    .quick-stat {
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-title h2 {
        font-size: 2em;
    }
    
    .header-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .quick-stat {
        min-width: 120px;
        padding: 10px 12px;
    }
    
    .quick-stat .stat-number {
        font-size: 1.6em;
    }
    
    .panel-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .panel-content {
        padding: 20px;
    }
    
    .panel-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .table-container {
        font-size: 0.9em;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 10px 12px;
    }
    
    .action-cards {
        gap: 12px;
    }
    
    .action-card {
        padding: 15px;
    }
    
    .action-icon {
        font-size: 2em;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-btn {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .bans-container {
        max-height: 250px;
    }
    
    .ban-item {
        padding: 12px;
        font-size: 0.85em;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-actions .search-input {
        margin-bottom: 10px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
    
    .system-actions {
        gap: 8px;
    }
    
    .admin-card {
        padding: 15px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .admin-dashboard {
        padding: 10px;
    }
    
    .dashboard-header {
        padding: 15px;
    }
    
    .header-title h2 {
        font-size: 1.8em;
    }
    
    .header-icon {
        font-size: 2em;
    }
    
    .quick-stat {
        min-width: 100px;
        padding: 8px 10px;
    }
    
    .quick-stat .stat-number {
        font-size: 1.4em;
    }
    
    .quick-stat .stat-label {
        font-size: 0.8em;
    }
    
    .panel-header {
        padding: 12px 15px;
    }
    
    .panel-header h3 {
        font-size: 1.1em;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    .action-card {
        padding: 12px;
    }
    
    .action-icon {
        font-size: 1.8em;
    }
    
    .action-card h4 {
        font-size: 1em;
    }
    
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
    
    .stat-value {
        font-size: 1.3em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }

    .user-settings-panel .settings-forms-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .user-settings-panel .form-container {
        background: rgba(255, 255, 255, 0.05);
        padding: 20px;
        border-radius: 10px;
        border: 1px solid rgba(0, 255, 0, 0.2);
    }

    .user-settings-panel .form-container h2 {
        margin-top: 0;
        font-size: 1.2em;
        color: #00ff00;
        border-bottom: 1px solid rgba(0, 255, 0, 0.3);
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .control-btn {
        padding: 10px 12px;
        font-size: 0.85em;
        gap: 8px;
    }
}

.search-input {
    min-width: 250px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 25px;
    color: #00ff00;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

/* Enhanced Button Styles */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info {
    padding: 10px 18px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    background: none;
}

.btn-primary {
    background: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #007bff;
}

.btn-primary:hover {
    background: rgba(0, 123, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
    color: #6c757d;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.4);
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.5);
}

.btn-success {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.btn-success:hover {
    background: rgba(40, 167, 69, 0.4);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.4);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.btn-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
}

.btn-warning:hover {
    background: rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.btn-info {
    background: rgba(23, 162, 184, 0.2);
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-info:hover {
    background: rgba(23, 162, 184, 0.4);
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.5);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #00ff00;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.admin-table th {
    background: rgba(0, 255, 0, 0.15);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.admin-table tr:hover {
    background: rgba(0, 255, 0, 0.08);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-list {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.admin-list ul {
    list-style: none;
    padding: 0;
}

.admin-list li {
    padding: 8px;
    border-bottom: 1px dotted rgba(0, 255, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ff00;
}

.admin-list li:last-child {
    border-bottom: none;
}

.admin-list li span {
    font-size: 0.9em;
    color: #00ff00;
}

.admin-list li:hover {
    background: rgba(0, 255, 0, 0.08);
}

/* Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.admin-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.admin-card h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Form Styles */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group label {
    color: #00ff00;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 6px;
    color: #00ff00;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.admin-form button {
    margin-top: 10px;
}

/* Statistics */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.stat-label {
    color: #00ff00;
    font-weight: bold;
}

.stat-value {
    color: #00ff00;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.system-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.bans-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: row;
        width: 100%;
        height: auto;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        justify-content: space-around;
        padding: 5px 0;
        border-top-right-radius: 0;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .nav-item {
        flex-direction: column;
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .nav-item .nav-icon {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1em;
    }

    .nav-item:hover {
        transform: translateY(-5px);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding-bottom: 70px; /* Space for fixed bottom navigation */
    }

    .page-title {
        font-size: 2.5em;
    }

    .page-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .call-to-action-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .chat-container {
        flex-direction: column;
        height: calc(100vh - 160px); /* Adjust for smaller screens */
        width: 98%;
    }

    .chat-main {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
    }

    .user-list-panel {
        width: 100%;
        height: 150px; /* Shorter on mobile */
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 15px;
    }

    .emoji-panel {
        bottom: 110px; /* Above input and status bar */
        width: 100%;
        left: 0;
        transform: none;
        max-height: 150px;
    }

    .form-container, .admin-section {
        flex: 1 1 100%; /* Full width on small screens */
        max-width: 100%;
        padding: 20px;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-actions button {
        width: 100%;
    }

    .private-message-list {
        max-height: 50vh; /* Adjust for modal size */
    }

    .modal-content {
        padding: 20px;
    }

    .private-message-reply-area {
        flex-direction: column;
    }

    #private-reply-input, #send-private-reply-button {
        width: 100%;
    }
}

/* --- Background Particle/Line Grid (Conceptual via JS) --- */
/* This styling would be applied to canvas or dynamically created divs by script.js */
.background-grid-particle {
    position: absolute;
    background-color: rgba(0, 255, 204, 0.1);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.background-line {
    position: absolute;
    background-color: rgba(255, 0, 234, 0.05);
    height: 1px;
    width: 0;
    opacity: 0;
    transform-origin: left center;
    transition: width 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}
