/* Discord-like Theme for Artemis */

/* CSS Variables */
:root {
    --bg-primary: #36393f;
    --bg-secondary: #2f3136;
    --bg-tertiary: #202225;
    --bg-input: #40444b;
    --bg-hover: #3c3f45;
    --bg-active: #393c43;
    
    --text-primary: #dcddde;
    --text-muted: #72767d;
    --text-heading: #ffffff;
    
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --accent-active: #3d45b3;
    
    --danger: #ed4245;
    --danger-hover: #c03537;
    --success: #3ba55d;
    --warning: #faa61a;
    
    --online: #3ba55d;
    --offline: #747f8d;
    --idle: #faa61a;
    
    --border-color: #202225;
    --border-light: #40444b;
    
    --font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    
    --server-list-width: 72px;
    --channels-width: 240px;
    --header-height: 48px;
    --user-panel-height: 52px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.5;
}

body.artemis-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background-color: var(--success);
    color: white;
}

.flash-error {
    background-color: var(--danger);
    color: white;
}

.flash-info {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.1s ease;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background-color: #5c6067;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #2d8d4a;
}

.btn-danger {
    background-color: transparent;
    color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    color: var(--accent);
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
}

.logo strong {
    background: linear-gradient(135deg, var(--accent) 0%, #7289da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-input);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--accent);
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
}

/* App Layout */
.app-layout {
    display: grid;
    grid-template-columns: var(--server-list-width) var(--channels-width) 1fr;
    height: 100vh;
    width: 100vw;
}

/* Server List */
.server-list {
    background-color: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    overflow-y: auto;
}

.server-item {
    position: relative;
    cursor: pointer;
}

.server-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background-color: var(--text-heading);
    border-radius: 0 4px 4px 0;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    transition: border-radius 0.2s, background-color 0.2s;
}

.server-item:hover .server-icon,
.server-item.active .server-icon {
    border-radius: 16px;
    background-color: var(--accent);
    color: white;
}

.server-icon.home-icon {
    color: var(--text-heading);
}

.server-icon.friend-icon {
    color: var(--text-muted);
}

.server-divider {
    width: 32px;
    height: 2px;
    background-color: var(--bg-tertiary);
    margin: 4px 0;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.server-initial {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
}

.server-item .server-icon.add-icon,
.server-item .server-icon.join-icon {
    color: var(--success);
}

.server-item:hover .server-icon.add-icon,
.server-item:hover .server-icon.join-icon {
    background-color: var(--success);
    color: white;
}

.server-item a {
    text-decoration: none;
}

/* Channels Sidebar */
.channels-sidebar {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.channels-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.channels-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-heading);
}

.channels-list {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
    margin-bottom: 2px;
}

.category span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-btn {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.1s;
}

.channel-item:hover {
    background-color: var(--bg-hover);
    text-decoration: none;
}

.channel-item.active {
    background-color: var(--bg-active);
}

.channel-avatar {
    position: relative;
    width: 32px;
    height: 32px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.channel-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.status-indicator.online {
    background-color: var(--online);
}

.status-indicator.offline {
    background-color: var(--offline);
}

.channel-name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-item.pending .channel-name {
    opacity: 0.6;
}

.pending-badge {
    font-size: 10px;
    background-color: var(--danger);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* User Panel */
.user-panel {
    padding: 8px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    position: relative;
    width: 32px;
    height: 32px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
}

.user-details .status-text {
    font-size: 12px;
    color: var(--text-muted);
}

.user-actions {
    display: flex;
    gap: 4px;
}

.logout-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-muted);
    transition: color 0.1s, background-color 0.1s;
}

.logout-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

/* Main Content */
.main-content {
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.welcome-content h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.welcome-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pending-section {
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.pending-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-heading);
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 32px;
    height: 32px;
}

.chat-user-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-heading);
}

.chat-user-info .status-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Messages Area */
.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.message:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.message-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
}

.message-own .message-author {
    color: var(--accent);
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.message-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Typing Indicator */
.typing-indicator {
    padding: 4px 16px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dots {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* Message Input */
.message-input-container {
    padding: 16px;
    border-top: 1px solid var(--bg-tertiary);
}

.message-form {
    background-color: var(--bg-input);
    border-radius: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}

#message-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.1s;
}

.send-btn:hover {
    background-color: var(--accent-hover);
}

/* Friends Container */
.friends-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.friends-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.friends-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
}

.friends-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.1s, background-color 0.1s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background-color: var(--bg-active);
    color: var(--text-primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background-color: var(--text-muted);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    margin-left: 4px;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.tab-content.active {
    display: block;
}

/* Friends List */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: var(--text-primary);
}

.friend-info:hover {
    text-decoration: none;
}

.friend-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.friend-details {
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
}

.friend-status {
    font-size: 12px;
    color: var(--text-muted);
}

.friend-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.1s;
}

.action-btn:hover {
    background-color: var(--bg-hover);
}

.action-btn.danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Pending List */
.pending-list h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.pending-avatar {
    width: 40px;
    height: 40px;
}

.pending-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pending-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-heading);
}

.pending-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.pending-actions {
    display: flex;
    gap: 8px;
}

/* Add Friend Section */
.add-friend-section {
    max-width: 500px;
}

.add-friend-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.add-friend-section > p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.add-friend-form .input-group {
    display: flex;
    gap: 8px;
}

.add-friend-form input {
    flex: 1;
    padding: 10px 12px;
    background-color: var(--bg-input);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.add-friend-form input::placeholder {
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--bg-tertiary);
}

/* Scrollbar for channels */
.channels-list::-webkit-scrollbar,
.messages-area::-webkit-scrollbar {
    width: 4px;
}

.channels-list::-webkit-scrollbar-thumb,
.messages-area::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
}

.channel-item-wrapper {
    display: flex;
    align-items: center;
    margin: 0 8px;
    border-radius: 4px;
}

.channel-item-wrapper:hover {
    background-color: var(--bg-hover);
}

.channel-avatar-link {
    padding: 8px 0 8px 16px;
}

.channel-name-link {
    flex: 1;
    padding: 8px 16px 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
}

.channel-name-link:hover {
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.user-info:hover {
    text-decoration: none;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-muted);
    transition: color 0.1s, background-color 0.1s;
}

.action-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.logout-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-muted);
    transition: color 0.1s, background-color 0.1s;
}

.logout-btn:hover {
    color: var(--danger);
    background-color: rgba(237, 66, 69, 0.1);
}

.avatar-placeholder.large {
    width: 80px;
    height: 80px;
    font-size: 32px;
    border-radius: 50%;
}

.avatar-placeholder.xlarge {
    width: 100px;
    height: 100px;
    font-size: 40px;
    border-radius: 50%;
}

.settings-sidebar {
    width: 218px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    padding: 60px 6px 60px 20px;
    position: relative;
}

.settings-sidebar h2 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 10px;
    margin-bottom: 8px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-nav-item {
    padding: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.settings-nav-item:hover {
    background-color: var(--bg-hover);
    text-decoration: none;
}

.settings-nav-item.active {
    background-color: var(--bg-active);
    color: var(--text-primary);
}

.settings-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    text-decoration: none;
}

.settings-close-btn:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.settings-content {
    flex: 1;
    background-color: var(--bg-primary);
    overflow-y: auto;
    padding: 60px 40px 80px;
}

.settings-tab {
    display: none;
    max-width: 660px;
}

.settings-tab.active {
    display: block;
}

.settings-header {
    margin-bottom: 32px;
}

.settings-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
}

.form-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.form-section input,
.form-section textarea {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-input);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-section input:focus,
.form-section textarea:focus {
    border-color: var(--accent);
}

.form-section textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.profile-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-banner {
    height: 60px;
    background-color: var(--accent);
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-upload-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-banner:hover .banner-upload-btn {
    opacity: 1;
}

.banner-upload-btn input {
    display: none;
}

.profile-avatar-section {
    padding: 0 16px;
    margin-top: -38px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: block;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--bg-secondary);
    background-color: var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    background-color: var(--accent);
    border-radius: 50%;
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    background-color: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 50%;
    z-index: 1;
}

.profile-avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.profile-info {
    padding: 12px 16px 16px;
}

.profile-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-heading);
}

.profile-status {
    font-size: 14px;
    color: var(--text-muted);
}

.danger-zone {
    border: 1px solid var(--danger);
}

.danger-zone h3 {
    color: var(--danger);
}

.danger-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.btn-danger-outline {
    background-color: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-danger-outline:hover {
    background-color: var(--danger);
    color: white;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 24px;
    max-width: 440px;
    width: 90%;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.profile-page {
    display: flex;
    justify-content: center;
    padding: 60px 40px;
}

.profile-card-full {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
}

.profile-banner-full {
    height: 60px;
    background-color: var(--accent);
    background-size: cover;
    background-position: center;
}

.default-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #7289da 100%);
}

.profile-avatar-large-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -38px;
}

.profile-avatar-large {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--bg-secondary);
    background-color: var(--bg-primary);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator-large {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
}

.status-indicator-large.online {
    background-color: var(--online);
}

.status-indicator-large.offline {
    background-color: var(--offline);
}

.profile-body {
    padding: 16px;
}

.profile-header-info {
    text-align: center;
    margin-bottom: 16px;
}

.profile-username-display {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
}

.profile-status-display {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-section {
    margin-bottom: 16px;
}

.profile-section h3 {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.profile-meta {
    font-size: 14px;
    color: var(--text-primary);
}

.profile-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-tertiary);
}

/* Server Create Page */
.server-create-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.server-create-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.server-create-card h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
    text-align: center;
}

.server-create-card .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.server-create-card .form-group {
    margin-bottom: 20px;
}

.server-create-card .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.server-create-card .form-group input[type="text"],
.server-create-card .form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-input);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.server-create-card .form-group input[type="text"]:focus,
.server-create-card .form-group textarea:focus {
    border-color: var(--accent);
}

.server-create-card .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    background-color: var(--bg-primary);
    padding: 12px;
    border-radius: 4px;
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    color: var(--text-primary);
    font-weight: 500;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-left: 32px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
}

.form-actions .btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
}

.form-actions .btn-secondary:hover {
    text-decoration: underline;
}

.form-actions .btn-primary {
    background-color: var(--accent);
    color: white;
}

.form-actions .btn-primary:hover {
    background-color: var(--accent-hover);
}
