.winbox {
    z-index: 9999 !important;
}

.chat-panel {
    position: relative;
    z-index: 9999;
}


.winbox {
    /* position: relative; */
    border: none !important; /* Remove WinBox default border */
    background: transparent !important; /* Transparent to show gradient */
    box-shadow: none !important; /* Remove shadow to avoid conflicts */
    box-sizing: border-box;
}

/* Gradient border using pseudo-element */
.winbox-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.winbox-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(to right, #f72585, #3a0ca3) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.winbox-content {
    width: 100%;
    height: 100%;
    background: #000; /* Black backdrop */
    box-sizing: border-box;
    filter: none !important;
}

.winbox-content.unblurred {
    filter: none; /* Remove blur when unblurred */
}

.username-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00; /* Green text */
    padding: 20px;
    border-radius: 5px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.username-prompt input {
    padding: 5px;
    font-size: 10px; /* Smaller text */
    border: 1px solid #00ff00;
    border-radius: 3px;
    background: #000;
    color: #00ff00;
}

.username-prompt input::placeholder {
    color: #00ff00;
    opacity: 0.7;
}

.username-prompt button {
    padding: 5px 10px;
    background: linear-gradient(to right, #f72585, #3a0ca3);
    color: #ffffff; /* White text */
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
}

.username-prompt button:hover {
    background: linear-gradient(to right, #d11f71, #2a0877);
}

.winbox-title {
    background: #000;
    color: #00ff00;
    font-weight: bold !important;
    font-size: 10px !important; /* Smaller title */
    padding: 3px 8px !important;
}

.winbox-button {
    background: #3a0ca3;
    color: #00ff00;
    padding: 1px 2px !important;
    font-size: 8px !important;
    width: 12px !important;
    height: 12px !important;
    line-height: 12px !important;
    z-index: 9998 !important;
}

.winbox-body {
    display: flex;
    height: calc(100% - 30px);
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* Left panel for channels */
.channel-panel {
    width: 150px;
    background: #000;
    color: #00ff00;
    overflow-y: auto;
    padding: 2px;
    box-sizing: border-box;
    height: 100%;
}

.channel-item {
    padding: 2px;
    cursor: pointer;
    font-size: 9px !important; /* Smaller text */
    color: #00ff00;
}

.channel-item.active {
    background: #222;
    font-weight: bold;
}

.channel-item:hover {
    background: #111;
}

/* Center panel for chat */
.chat-panel {
    flex: 1;
    color: #00ff00;
    background: #000;
    padding: 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Chat container (messages area) */
.chat-container {
    flex: 1;
    background: #000;
    font-size: 10px; /* Smaller text */
    overflow-y: auto;
    padding: 2px;
    box-sizing: border-box;
    height: calc(100% - 40px);
    min-height: 0;
}

/* Chat messages */
.chat-message {
    margin: 1px 0;
    color: #00ff00;
}

.chat-message .timestamp {
    color: #ffffff; /* White timestamps */
}

.chat-message .username {
    font-weight: bold;
}

/* Username input */
.username-input {
    width: 100%;
    padding: 2px;
    margin-top: 1px;
    background: #000;
    border: 1px solid #00ff00;
    font-size: 10px;
    box-sizing: border-box;
    height: 20px;
    display: block;
    color: #00ff00;
}

.username-input::placeholder {
    color: #00ff00;
    opacity: 0.7;
}

/* Input container (chat input + emoji button + send button) */
.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 1px;
    height: 40px;
    min-height: 0;
    justify-content: space-between; /* Equal spacing between elements */
    gap: 5px; /* Consistent spacing */
}

/* Chat input */
.chat-input {
    flex: 1;
    width: 70%; /* Reduced width to make space */
    padding: 1px;
    background: #000;
    border: 1px solid #00ff00;
    font-size: 9px;
    box-sizing: border-box;
    height: 100%;
    color: #00ff00;
}

.chat-input::placeholder {
    color: #00ff00;
    opacity: 0.7;
}

/* Emoji button */
.emoji-button {
    padding: 2px 5px;
    background: #222;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-size: 9px;
    cursor: pointer;
    height: 100%;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.emoji-button:hover {
    background: #333;
}

/* Emoji picker */
.emoji-picker {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid #00ff00;
    padding: 5px;
    border-radius: 4px;
    display: none;
    z-index: 10001;
}

.emoji-picker.visible {
    display: block;
}

.emoji-picker span {
    font-size: 16px;
    margin: 0 5px;
    cursor: pointer;
}

/* Send button */
.send-button {
    padding: 2px 5px;
    background: linear-gradient(to right, #f72585, #3a0ca3);
    color: #ffffff; /* White text */
    border: none;
    font-size: 9px;
    cursor: pointer;
    height: 100%;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.send-button:hover {
    background: linear-gradient(to right, #d11f71, #2a0877);
}

/* Collapsible user panel with user count above */
.user-panel-container {
    width: 150px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.user-count {
    color: #00ff00;
    font-size: 10px;
    cursor: pointer;
    background: #222;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
}

.user-count:hover {
    background: #333;
}

.user-panel {
    flex: 1;
    background: #000;
    color: #00ff00;
    overflow-y: auto;
    padding: 2px;
    box-sizing: border-box;
    display: none; /* Hidden by default */
    border-top: 1px solid #00ff00;
}

.user-panel.visible {
    display: block;
}

.user-item {
    padding: 2px;
    font-size: 9px !important;
}

nav {
    margin-bottom: 20px;
    color: #00ff00;
    font-size: 12px; /* Slightly smaller */
}

nav a {
    color: #f72585;
    text-decoration: none;
    margin-right: 10px;
}

nav a:hover {
    color: #3a0ca3;
}
