:root {
    --primary: #5865F2;
    --secondary: #57F287;
    --dark: #1e1e2e;
    --darker: #171722;
    --card: #2a2a3a;
    --text: #ffffff;
    --text-muted: #a0a0b0;
    --danger: #ed4245;
    --warning: #fee75c;
    --success: #57f287;
    --border: #3a3a4a;
    --sidebar-width: 260px;
    --sidebar-radius: 12px;
    --message-padding: 8px 16px;
    --card-padding: 24px;
    --button-padding: 14px;
    --button-font-size: 16px;
    --base-font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark), var(--darker));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text);
}

.loader-logo {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.loader-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Spinner Animation */
.spinner {
    width: 44px;
    height: 44px;
    animation: spinner-y0fdc1 2s infinite ease;
    transform-style: preserve-3d;
    margin: 0 auto 20px;
}

.spinner > div {
    background-color: rgba(88, 101, 242, 0.2);
    height: 100%;
    position: absolute;
    width: 100%;
    border: 2px solid var(--primary);
}

.spinner div:nth-of-type(1) {
    transform: translateZ(-22px) rotateY(180deg);
}

.spinner div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}

.spinner div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}

.spinner div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}

.spinner div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}

.spinner div:nth-of-type(6) {
    transform: translateZ(22px);
}

@keyframes spinner-y0fdc1 {
    0% {
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }
    50% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }
    100% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: progress-animation 2.5s ease-in-out;
    transform-origin: left;
}

@keyframes progress-animation {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(0.7);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::-webkit-scrollbar-corner {
    background: var(--darker);
}

/* Settings specific scrollbar */
.settings-container::-webkit-scrollbar,
.settings-sidebar::-webkit-scrollbar,
.settings-main::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.settings-container::-webkit-scrollbar-track,
.settings-sidebar::-webkit-scrollbar-track,
.settings-main::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.settings-container::-webkit-scrollbar-thumb,
.settings-sidebar::-webkit-scrollbar-thumb,
.settings-main::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border);
}

.settings-container::-webkit-scrollbar-thumb:hover,
.settings-sidebar::-webkit-scrollbar-thumb:hover,
.settings-main::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--darker);
}

body {
    background-color: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: var(--base-font-size);
}

#auth-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark), var(--darker));
    padding: 20px;
}

.auth-container {
    background-color: var(--card);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-tab.active {
    background-color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: var(--button-padding);
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: var(--button-font-size);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c12c2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.3);
}

.social-login {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.discord-btn {
    background-color: #5865F2;
    color: white;
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.google-btn {
    background-color: #DB4437;
    color: white;
}

.google-btn:hover {
    background-color: #c23325;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

#main-app {
    display: none;
    flex-direction: column;
    height: 100vh;
}

.header {
    background-color: var(--card);
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 24px;
    color: var(--primary);
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--darker);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 30px;
    padding: 0 12px;
}

.nav-section h3 {
    padding: 0 12px 10px;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--message-padding);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--sidebar-radius);
    margin: 4px 8px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), #7983f5);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    transform: translateX(4px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active i {
    transform: scale(1.1);
}

.user-section {
    margin-top: auto;
    padding: 20px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--sidebar-radius);
    transition: all 0.3s ease;
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar-sidebar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.user-profile:hover .user-avatar-sidebar {
    transform: scale(1.05);
    border-radius: 16px;
}

.user-details {
    flex: 1;
}

.user-details .username {
    font-weight: 600;
    font-size: 14px;
}

.user-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.settings-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    flex: 1;
    flex-direction: column;
    height: 100%;
}

.page.active {
    display: flex;
}

.page-header {
    margin-bottom: 30px;
    padding: 30px 30px 0;
}

.page-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.chat-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.card {
    background-color: var(--card);
    border-radius: 12px;
    padding: var(--card-padding);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 30px;
}

.stat-card {
    background-color: var(--card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-info .value {
    font-size: 24px;
    font-weight: 700;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 30px;
}

.chat-fullscreen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--dark);
}

.chat-header-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background-color: var(--card);
    flex-shrink: 0;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.chat-tools {
    display: flex;
    gap: 8px;
}

.chat-tool-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.chat-tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--dark);
    min-height: 0;
}

.message {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    transition: background-color 0.2s;
    position: relative;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-avatar:hover {
    transform: scale(1.05);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-sender {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.message-sender:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-text {
    line-height: 1.4;
    word-wrap: break-word;
}

.mention {
    background-color: rgba(88, 101, 242, 0.2);
    color: var(--primary);
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.message-reactions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reaction {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.message:hover .message-actions {
    opacity: 1;
}

.message-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.message-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.message-actions-menu {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 150px;
    right: 10px;
    top: 30px;
}

.message-actions-menu button {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.message-actions-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.message-actions-menu button i {
    width: 16px;
    text-align: center;
}

.message-actions-menu button.delete-btn {
    color: var(--danger);
}

.message-actions-menu button.delete-btn:hover {
    background: rgba(237, 66, 69, 0.1);
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input-tools {
    display: flex;
    gap: 4px;
}

.input-tool-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.input-tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.chat-input-wrapper {
    flex: 1;
}

.chat-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-size: 14px;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.send-button {
    background-color: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background-color: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.settings-container {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-header h1 {
    font-size: 32px;
    margin: 0;
}

.settings-content {
    display: flex;
    gap: 30px;
    min-width: 0;
    height: calc(100% - 100px);
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 100%;
}

.settings-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.settings-category:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.settings-category.active {
    background-color: var(--primary);
    transform: translateX(4px);
}

.settings-category i {
    width: 20px;
    text-align: center;
}

.settings-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    max-height: 100%;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.profile-banner-upload {
    margin-bottom: 80px;
    position: relative;
}

.banner-preview {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.change-banner-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.change-banner-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.profile-avatar-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-avatar-large {
    text-align: center;
    position: relative;
    margin-top: -60px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin: 0 auto 16px;
    border: 4px solid var(--card);
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    border-radius: 25px;
    transform: scale(1.05);
}

.profile-details {
    flex: 1;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.account-actions {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-small.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-small.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-small.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.badge-item.profile-hidden {
    opacity: 0.4;
    background-color: rgba(255, 255, 255, 0.02);
}

.badge-item.profile-hidden .badge-icon {
    filter: grayscale(1);
}

.badge-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.badge-item:hover .badge-actions {
    opacity: 1;
}

.badge-action-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.3s;
}

.badge-action-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.badge-icon.admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.badge-icon.moderator {
    background: linear-gradient(135deg, #57f287, #2ecc71);
    color: white;
}

.badge-icon.developer {
    background: linear-gradient(135deg, #5865f2, #3498db);
    color: white;
}

.badge-icon.early-supporter {
    background: linear-gradient(135deg, #feca57, #f39c12);
    color: white;
}

.badge-info {
    flex: 1;
}

.badge-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.badge-description {
    font-size: 12px;
    color: var(--text-muted);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--primary);
    background-color: rgba(88, 101, 242, 0.1);
}

.theme-preview-box {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.theme-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-option.active .theme-check {
    opacity: 1;
}

.reset-theme-btn {
    margin-top: 15px;
}

.custom-dropdown {
    position: relative;
}

.dropdown-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--card);
    color: var(--text);
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: all 0.3s ease;
}

.dropdown-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.2);
}

.slider-value {
    min-width: 50px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.theme-preview {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.preview-header {
    background-color: var(--primary);
    padding: 12px 16px;
    font-weight: 600;
}

.preview-content {
    padding: 16px;
    background-color: var(--card);
}

.preview-message {
    display: flex;
    gap: 12px;
}

.preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.preview-text {
    flex: 1;
}

.preview-username {
    font-weight: 600;
    margin-bottom: 4px;
}

.keybind-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keybind-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.keybind-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.keybind-action {
    flex: 1;
    font-weight: 500;
}

.keybind-combination {
    background-color: var(--darker);
    padding: 6px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--border);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card);
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.large-modal {
    width: 800px;
    max-width: 95%;
}

.profile-modal {
    width: 400px;
}

.emoji-modal {
    width: 400px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.emoji-search {
    margin-bottom: 16px;
}

.emoji-search input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text);
    transition: all 0.3s ease;
}

.emoji-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.emoji-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.emoji-category {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-category.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.server-settings-sidebar {
    width: 200px;
    float: left;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.server-settings-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.server-settings-category:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.server-settings-category.active {
    background-color: var(--primary);
    transform: translateX(4px);
}

.server-settings-content {
    margin-left: 220px;
}

.server-settings-section {
    display: none;
}

.server-settings-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.role-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.role-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.role-info {
    flex: 1;
}

.role-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.role-members {
    font-size: 12px;
    color: var(--text-muted);
}

.role-actions {
    display: flex;
    gap: 8px;
}

.members-search {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.search-input-full {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.search-input-full:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.members-list-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.member-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.member-item:hover .member-avatar {
    transform: scale(1.05);
    border-radius: 14px;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.member-status {
    font-size: 12px;
    color: var(--text-muted);
}

.member-roles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.role-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.role-tag:hover {
    transform: translateY(-1px);
}

.role-tag.admin {
    background-color: var(--danger);
    color: white;
}

.role-tag.moderator {
    background-color: var(--secondary);
    color: black;
}

.profile-preview {
    text-align: center;
}

.profile-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 60px -20px;
}

.profile-avatar-large-preview {
    margin-top: -70px;
    margin-bottom: 20px;
}

.avatar-preview-large {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    border: 4px solid var(--card);
    transition: all 0.3s ease;
}

.avatar-preview-large:hover {
    border-radius: 25px;
    transform: scale(1.05);
}

.profile-info {
    text-align: center;
}

.profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.profile-badges {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.profile-badge {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
}

.profile-badge:hover {
    transform: scale(1.2);
}

.profile-badge.admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.profile-badge.early-supporter {
    background: linear-gradient(135deg, #feca57, #f39c12);
    color: white;
}

.profile-username {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 16px;
}

.profile-bio {
    margin-bottom: 24px;
    line-height: 1.5;
}

.profile-stats {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.color-picker {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: var(--text);
    transform: scale(1.1);
}

.permissions-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

.permission-category {
    margin-bottom: 20px;
}

.permission-category h4 {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
}

.permission-item {
    margin-bottom: 8px;
}

.permission-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.permission-item label:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modern Logs Page Styles */
.logs-controls {
    padding: 0 30px;
    margin-bottom: 20px;
}

.logs-search-filter {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#logs-search {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--card);
    color: var(--text);
    transition: all 0.3s ease;
}

#logs-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.logs-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.logs-stats {
    display: flex;
    gap: 20px;
}

.log-stat {
    font-size: 14px;
    color: var(--text-muted);
}

.logs-container {
    max-height: 600px;
    overflow-y: auto;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-entry {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.log-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    transition: all 0.3s ease;
}

.log-entry.system::before {
    background: var(--primary);
}

.log-entry.user::before {
    background: var(--secondary);
}

.log-entry.security::before {
    background: var(--danger);
}

.log-entry.error::before {
    background: var(--warning);
}

.log-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.log-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    flex: 1;
}

.log-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.system {
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.badge.user {
    background: rgba(87, 242, 135, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(87, 242, 135, 0.3);
}

.badge.security {
    background: rgba(237, 66, 69, 0.15);
    color: var(--danger);
    border: 1px solid rgba(237, 66, 69, 0.3);
}

.badge.error {
    background: rgba(254, 231, 92, 0.15);
    color: var(--warning);
    border: 1px solid rgba(254, 231, 92, 0.3);
}

.badge.info {
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.badge.warning {
    background: rgba(254, 231, 92, 0.15);
    color: var(--warning);
    border: 1px solid rgba(254, 231, 92, 0.3);
}

.badge.error {
    background: rgba(237, 66, 69, 0.15);
    color: var(--danger);
    border: 1px solid rgba(237, 66, 69, 0.3);
}

.badge.critical {
    background: rgba(237, 66, 69, 0.25);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.log-time {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.log-description {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.log-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.log-actions {
    display: flex;
    gap: 8px;
}

.log-action-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.log-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.no-logs {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-logs i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-logs p {
    font-size: 16px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.notification-success {
    border-left: 4px solid var(--secondary);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 18px;
}

.notification-success .notification-content i {
    color: var(--secondary);
}

.notification-error .notification-content i {
    color: var(--danger);
}

.notification-info .notification-content i {
    color: var(--primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Theme Definitions */
body[data-theme="dark"] {
    --primary: #5865F2;
    --secondary: #57F287;
    --dark: #1e1e2e;
    --darker: #171722;
    --card: #2a2a3a;
    --text: #ffffff;
    --text-muted: #a0a0b0;
    --border: #3a3a4a;
}

body[data-theme="light"] {
    --primary: #5865F2;
    --secondary: #57F287;
    --dark: #ffffff;
    --darker: #f8f9fa;
    --card: #ffffff;
    --text: #2e2e2e;
    --text-muted: #6c757d;
    --border: #dee2e6;
}

body[data-theme="midnight"] {
    --primary: #7b68ee;
    --secondary: #00ced1;
    --dark: #0f0f23;
    --darker: #0a0a1a;
    --card: #232347;
    --text: #e6e6fa;
    --text-muted: #a0a0c0;
    --border: #34345a;
}

body[data-theme="forest"] {
    --primary: #228B22;
    --secondary: #32CD32;
    --dark: #1a2f1a;
    --darker: #142814;
    --card: #2d5016;
    --text: #f0fff0;
    --text-muted: #a0c0a0;
    --border: #3a5a3a;
}

body[data-theme="coral"] {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --dark: #2D2D2D;
    --darker: #1A1A1A;
    --card: #3A3A3A;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --border: #4A4A4A;
}

body[data-theme="sunset"] {
    --primary: #A8E6CF;
    --secondary: #FFD93D;
    --dark: #2D1B2D;
    --darker: #1A0F1A;
    --card: #3A2A3A;
    --text: #ffffff;
    --text-muted: #b0a0b0;
    --border: #4A3A4A;
}

body[data-theme="purple"] {
    --primary: #6A11CB;
    --secondary: #2575FC;
    --dark: #1A1A2D;
    --darker: #0F0F1A;
    --card: #2A2A3D;
    --text: #ffffff;
    --text-muted: #a0a0c0;
    --border: #3A3A4D;
}

/* Accessibility Styles */
body.high-contrast {
    --text: #000000;
    --text-muted: #333333;
    --dark: #ffffff;
    --card: #ffffff;
    --border: #000000;
}

body.high-contrast .card {
    border: 2px solid var(--border);
}

body.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

body.no-animations * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Compact Mode Styles */
body.compact-mode .message {
    padding: 4px 0;
}

body.compact-mode .card {
    padding: 16px;
}

body.compact-mode .nav-item {
    padding: 8px 12px;
}

body.compact-mode .stat-card {
    padding: 16px;
}

body.compact-mode .settings-category {
    padding: 10px 14px;
}

/* Large Buttons Styles */
body.large-buttons .btn {
    padding: 16px 24px;
    font-size: 18px;
}

body.large-buttons .btn-small {
    padding: 12px 20px;
    font-size: 16px;
}

body.large-buttons .message-action-btn {
    padding: 8px 12px;
    font-size: 14px;
}

body.large-buttons .nav-item {
    padding: 16px 20px;
}

/* Status Colors */
.status-indicator.online {
    background-color: var(--success);
}

.status-indicator.idle {
    background-color: var(--warning);
}

.status-indicator.dnd {
    background-color: var(--danger);
}

.status-indicator.invisible {
    background-color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-customization {
        flex-direction: column;
    }
    
    .chat-actions {
        flex-direction: column;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .content {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .settings-content {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
    }
    
    .settings-category {
        justify-content: center;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .user-profile {
        justify-content: center;
    }
    
    .user-details {
        text-align: center;
    }
    
    .server-settings-sidebar {
        width: 100%;
        float: none;
        border-right: none;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .server-settings-content {
        margin-left: 0;
    }
    
    .large-modal {
        width: 95%;
    }
    
    .theme-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .settings-container {
        padding: 20px;
    }
    
    .settings-header h1 {
        font-size: 24px;
    }
    
    .logs-search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        min-width: auto;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
    
    .logs-actions {
        justify-content: stretch;
    }
    
    .logs-actions .btn {
        flex: 1;
    }
    
    .logs-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .logs-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .log-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .log-meta {
        justify-content: flex-start;
    }
    
    .log-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .page-header {
        padding: 20px 20px 0;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .stats-grid {
        padding: 0 20px;
    }
    
    .activity-list {
        padding: 0 20px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logs-controls {
        padding: 0 20px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .logs-actions {
        flex-direction: column;
    }
}