* {
    font-family: "Segoe UI", "Roboto", "Inter", sans-serif;
}

/* Base Window Styling */
window, dialog {
    background-color: #0F172A; /* Slate 900 */
    color: #E2E8F0; /* Slate 200 */
}

/* Main Layout Separators */
paned > separator {
    background-color: rgba(255, 255, 255, 0.05);
    min-width: 2px;
}

/* Chat Input Styling */
.message-input textview {
    background-color: #1E293B; /* Slate 800 */
    color: #F8FAFC; /* Slate 50 */
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.message-input textview:focus {
    border-color: #38BDF8; /* Sky 400 Glow */
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.message-input scrollbar.vertical slider {
    min-height: 0px;
}

/* Messages */
.message-container {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.message-container:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.message-text, .message-text text {
    background: inherit;
    font-size: 14px;
}

.message-text.pending {
    color: alpha(currentColor, 0.5);
}

.message-text.failed {
    color: #EF4444; /* Red 500 */
}

.message-reply {
    border-left: 3px solid #38BDF8;
    padding-left: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 4px;
    opacity: 0.9;
    background-color: rgba(56, 189, 248, 0.05);
    border-radius: 0 8px 8px 0;
}

/* Embeds & Attachments */
.embed {
    border-radius: 12px;
    padding: 12px;
    background-color: #1E293B; /* Slate 800 */
    border-left: 4px solid #38BDF8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-top: 4px;
}

.embed-footer {
    margin-top: 8px;
    font-size: 11px;
    color: #94A3B8; /* Slate 400 */
}

.embed-author {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 13px;
    color: #F8FAFC;
}

.message-attachment-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    background-color: #1E293B;
    margin-top: 4px;
}

.message-attachment-box label {
    margin: 5px;
    color: #CBD5E1;
}

/* Guild List & Channels */
.classic-guild-list > row {
    padding: 6px;
    box-shadow: none;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
}

.classic-guild-list > row:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.classic-guild-list-guild.has-unread {
    background: radial-gradient(8px circle at left, #38BDF8 50%, transparent 20%);
}

.classic-guild-list-folder.has-unread stack {
    background: radial-gradient(8px circle at left, #38BDF8 50%, transparent 20%);
}

.classic-guild-list-guild box, .classic-guild-list-folder stack {
    padding-left: 14px;
}

.guild-list-scroll > scrollbar {
    border: none;
}
.guild-list-scroll > scrollbar slider {
    border: none;
    margin: 0px;
    min-width: 0px;
    min-height: 0px;
}

.channel-list .view:selected {
    background-color: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    border-radius: 8px;
}

/* Status Indicators */
.status-indicator.dnd { color: #EF4444; }
.status-indicator.online { color: #10B981; }
.status-indicator.offline { color: #64748B; }
.status-indicator.idle { color: #F59E0B; }

/* Profile & Connections */
.profile-main-container {
    padding: 24px;
    background-color: #1E293B;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    margin: 16px;
}

.profile-username {
    margin-left: 12px;
    font-size: 22px;
    font-weight: bold;
    color: #F8FAFC;
}

.profile-username-nondisplay {
    margin-left: 12px;
    color: #94A3B8;
}

.profile-switcher, .profile-stack, .profile-notes-label {
    padding-top: 10px;
    padding-bottom: 10px;
}

.profile-badges {
    padding-left: 8px;
}

.profile-badge {
    margin-right: 6px;
}

.profile-connections {
    margin-top: 12px;
}

.profile-connection {
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s ease;
}

.profile-connection:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.profile-connection-image {
    padding-right: 8px;
}

/* Reactions */
.reaction-box {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    margin-right: 4px;
    transition: all 0.2s ease;
}

.reaction-box:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.reaction-box.reacted {
    border: 1px solid #38BDF8;
    background-color: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
}

/* Dialogs & Menus */
.set-status-dialog .dialog-vbox {
    padding: 10px;
}

.set-status-dialog .dialog-action-area {
    margin: 12px 10px 10px 10px;
}

.voice-settings-window > box {
    padding: 12px;
}

.voice-settings-window scale {
    margin-right: 12px;
}

/* Mentions */
.classic-mention-overlay:selected {
    color: #F8FAFC;
    background-color: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    padding: 0 4px;
}

/* Futuristic Voice Dashboard styling */
.voice-window-dashboard stackswitcher {
    background-color: #1E293B;
    border-radius: 20px;
    padding: 4px;
}

.voice-window-dashboard stackswitcher button {
    border-radius: 16px;
    padding: 6px 16px;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

.voice-window-dashboard stackswitcher button:checked {
    background-color: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.voice-window-dashboard stackswitcher button:hover:not(:checked) {
    background-color: rgba(255, 255, 255, 0.05);
}

