/* Modern Nostr DM Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-VariableFont_opsz\,wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Italic-VariableFont_opsz\,wght.ttf') format('woff2-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

.inter-700 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: bold;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #26222d;
    color: #ffffff;
    line-height: 1.6;
    overflow: hidden;
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    background: #26222d;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #26222d;
}

/* Chat Content */
.chat-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Connection Status Bar */
.connection-status-bar {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-status-bar .connection-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.connection-status-bar .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    transition: all 0.2s ease;
}

.connection-status-bar .status-dot.connected {
    background: #10b981;
}

/* Chat Header (inside chat area) */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    height: 60px;
}

.chat-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    cursor: default;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-actions .settings-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.chat-actions .settings-toggle:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.chat-actions .settings-toggle .material-symbols-rounded {
    font-size: 20px;
}

/* Settings Panel */
.settings-panel {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: none;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header i {
    font-size: 24px;
    color: #3b82f6;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.info-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #1e3a8a;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-box i {
    font-size: 20px;
    color: #3b82f6;
    margin-top: 2px;
}

.info-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.info-box p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.info-box ul {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 4px;
}

.section-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-card p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #374151;
    color: #d1d5db;
}

.btn-secondary:hover {
    background: #4b5563;
    color: #ffffff;
}

.key-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.key-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-item label {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
}

.key-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.75px;
    color: #9ca3af;
}

/* Key value layout tweak for multiple buttons */
.key-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-value span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: 0.75px;
}

.copy-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: #3b82f6;
    background: #1e3a8a;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: #1e3a8a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon i {
    font-size: 20px;
    color: #3b82f6;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.status-info .status-value {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

.status-info .status-value.error {
    color: #ef4444;
}

.no-messages {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-messages i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #4b5563;
}

.no-messages p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #9ca3af;
}

.no-messages span {
    font-size: 14px;
    color: #6b7280;
}

/* Chat Interface */
.chat-interface {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Conversations Sidebar */
.conversations-sidebar {
    width: 300px;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.new-chat-btn {
    background: #3b82f6;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    cursor: default;
}

.conversation-item:hover {
    background: #2a2a2a;
}

.conversation-item.active {
    background: #ffffff17;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: default;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: 0.5px;
    max-width: 200px;
    cursor: default;
}

.conversation-preview {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.conversation-time {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.no-conversations {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-conversations i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #4b5563;
}

.no-conversations p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #9ca3af;
}

.no-conversations span {
    font-size: 12px;
    color: #6b7280;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mini Profile */
.mini-profile {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.mini-profile:hover {
    background: #2a2a2a;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    cursor: default;
}

.profile-npub {
    font-size: 11px;
    color: #6b7280;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    cursor: default;
}

.profile-settings-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-settings-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
}



.chat-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #6b7280;
}

.placeholder-content i {
    font-size: 64px;
    margin-bottom: 24px;
    color: #4b5563;
}

.placeholder-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 12px;
}

.placeholder-content p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Messages */
.messages-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    width: 100%;
}

.message:last-child {
    border-bottom: none;
}

.message:hover {
    background: #ffffff08;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.message.sent .message-avatar {
    background: #3b82f6;
}

.message.received .message-avatar {
    background: #6b7280;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}
/*
.message.sent .message-header {
    justify-content: flex-end;
}
*/
.message-author {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #d1d5db;
    letter-spacing: 0.3px;
    line-height: 1;
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.message-time {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    line-height: 1;
    cursor: default;
}

.message-bubble {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 100%;
    color: #d1d5db;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.message-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
}
/*
.message.sent .message-footer {
    justify-content: flex-end;
}
*/
.incognito-tag {
    background: #a126dc2b;
    color: #9357ea;
    box-shadow: inset 0 0 0 1px #9358ea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Message Input */
.message-input-container {
    padding: 12px 12px;
    border-top: 1px solid #2a2a2a;
    background: #1a1a1a;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2a2a2a;
    box-shadow: 0 0 0 1px #404040;
    border-radius: 8px;
    padding: 12px 6px;
    height: 48px;
}

.input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#messageInput {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 14px;
    padding-inline: 20px;
    padding-top: 14px;
    padding-bottom: 12px;
    line-height: 1.5;
    resize: none;
    min-height: 10px;
    height: 48px;
    max-height: 120px;
    outline: none;
    font-family: inherit;
}

#messageInput::placeholder {
    color: #6b7280;
}

.send-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 24px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover {
    color: #3b82f6;
}

.send-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.modal-content {
        padding: 24px;
    }

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Content Sections */
.content-section {
    display: none;
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
    color: #ffffff;
}

.notification.error {
    background: #ef4444;
    color: #ffffff;
}

.notification.info {
    background: #3b82f6;
    color: #ffffff;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
    background-clip: content-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container.settings-active {
        margin-left: 0;
    }
    
    .conversations-sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .chat-area {
        flex: 1;
    }
    
    .modal {
        width: 90%;
        max-width: 400px;
    }
    
    .notification {
        width: 90%;
        left: 5%;
    }
    
    .conversation-name,
    .conversation-preview {
        font-size: 12px;
    }
    
    /* Adjust mini profile for mobile */
    .mini-profile {
        padding: 12px 16px;
    }
    
    .profile-npub {
        max-width: 100px;
        font-size: 10px;
    }
    
    .profile-info {
        min-width: 80px;
    }
    
    /* Settings modal responsive */
    .settings-modal {
        width: 95%;
        height: 90vh;
        max-height: none;
    }
    
    .settings-modal-content {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }
    
    .settings-content {
        flex: 1;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .conversation-name,
    .conversation-preview {
        font-size: 11px;
    }
    
    .messages-container {
        padding: 12px;
    }
    
    /* Further adjust mini profile for very small screens */
    .mini-profile {
        padding: 10px 12px;
    }
    
    .profile-npub {
        max-width: 80px;
        font-size: 9px;
    }
    
    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .profile-name {
        font-size: 10px;
    }
    
    /* Settings modal for very small screens */
    .settings-modal {
        width: 98%;
        height: 95vh;
    }
    
    .settings-modal-header {
        padding: 16px;
    }
    
    .settings-content {
        padding: 12px;
    }
    
    .section-card {
        padding: 16px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
} 

/* Welcome Screen */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #6b7280;
}

.welcome-content {
    max-width: 300px;
}

.welcome-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #4b5563;
}

.welcome-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}

.welcome-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
} 

/* Settings Modal */
.settings-modal {
    background: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.settings-modal-header {
    padding: 24px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

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

.modal-brand i {
    font-size: 24px;
    color: #3b82f6;
}

.modal-brand .brand-text h1 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.modal-brand .brand-text span {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.settings-modal-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Settings Sidebar (inside modal) */
.settings-sidebar {
    width: 250px;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d1d5db;
    font-weight: 500;
}

.nav-item:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.nav-item.active {
    background: #3b82f6;
    color: #ffffff;
}

.nav-item i {
    width: 16px;
    text-align: center;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    font-size: 14px;
    color: #9ca3af;
}

.status-value {
    font-weight: 600;
    color: #10b981;
}

.status-value.error {
    color: #ef4444;
}

/* Settings Content */
.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #26222d;
}

.content-section {
    display: none;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header i {
    font-size: 24px;
    color: #3b82f6;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.info-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.info-box i {
    color: #3b82f6;
    font-size: 18px;
    margin-top: 2px;
}

.info-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.info-box p {
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 12px;
}

.info-box ul {
    color: #9ca3af;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 4px;
}

.section-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-card p {
    color: #9ca3af;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #26222d;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #374151;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #4b5563;
}

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

.key-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-item label {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
}

.key-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #26222d;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #9ca3af;
}

.copy-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #26222d;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon i {
    color: #3b82f6;
    font-size: 18px;
}

.status-info {
    flex: 1;
}

.status-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.status-info .status-value {
    font-size: 14px;
    font-weight: 600;
}

.status-info .status-value.error {
    color: #ef4444;
}

.no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.no-messages i {
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 16px;
}

.no-messages p {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 8px;
}

.no-messages span {
    font-size: 14px;
    color: #9ca3af;
} 

/* Material Symbols Rounded Icons */
.material-symbols-rounded {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Icon sizing variations */
.material-symbols-rounded.small {
    font-size: 18px;
}

.material-symbols-rounded.medium {
    font-size: 24px;
}

.material-symbols-rounded.large {
    font-size: 32px;
}

/* Icon in buttons */
.btn .material-symbols-rounded {
    font-size: 18px;
}

/* Icon in nav items */
.nav-item .material-symbols-rounded {
    font-size: 20px;
    width: 20px;
    text-align: center;
}

/* Icon in section headers */
.section-header .material-symbols-rounded {
    font-size: 24px;
}

/* Icon in info boxes */
.info-box .material-symbols-rounded {
    font-size: 20px;
    margin-top: 2px;
}

/* Icon in status icons */
.status-icon .material-symbols-rounded {
    font-size: 20px;
}

/* Icon in profile avatar */
.profile-avatar .material-symbols-rounded {
    font-size: 16px;
}

/* Icon in send button */
.send-btn .material-symbols-rounded {
    font-size: 24px;
}

/* Icon in new chat button */
.new-chat-btn .material-symbols-rounded {
    font-size: 18px;
}

/* Icon in settings toggle */
.settings-toggle .material-symbols-rounded {
    font-size: 20px;
}

/* Icon in close buttons */
.close-settings-btn .material-symbols-rounded,
.close-btn .material-symbols-rounded {
    font-size: 20px;
}

/* Icon in copy buttons */
.copy-btn .material-symbols-rounded {
    font-size: 16px;
}

/* Icon in profile settings button */
.profile-settings-btn .material-symbols-rounded {
    font-size: 16px;
} 

/* Message status indicators */
.message-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.message-status.pending {
    color: #ffa726;
}

.message-status.sent {
    color: #66bb6a;
}

.message-status.failed {
    color: #ef5350;
}

.message-status .material-symbols-rounded {
    font-size: 14px;
}

/* Failed message styling */
.message.status-failed {
    box-shadow: inset 0 0 0 1px #ef535070;
    background: linear-gradient(0deg, transparent, #ef53500a);
}
/*
.message.status-failed .message-bubble {
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.message.status-pending .message-bubble {
    opacity: 0.7;
    background-color: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
}
*/

/* Retry button */
.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 2px 6px;
    background-color: #ef5350;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background-color: #d32f2f;
}

.retry-btn .material-symbols-rounded {
    font-size: 14px;
}

/* Error info */
.error-info {
    padding: 2px 6px;
    background-color: rgba(239, 83, 80, 0.1);
    box-shadow: inset 0 0 0 1px #ef5350;
    border-radius: 4px;
    font-size: 10px;
    color: #ef5350;
    text-transform: capitalize;
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 4px;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.context-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.context-menu-item:hover {
    background: #2a2a2a;
}

.context-menu-item:active {
    background: #3a3a3a;
}

.context-menu-item.disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.context-menu-item .material-symbols-rounded {
    font-size: 16px;
    color: #9ca3af;
}

.context-menu-separator {
    height: 1px;
    background: #2a2a2a;
    margin: 4px 10px;
}

.context-menu-item-red, .context-menu-item-red>.material-symbols-rounded {
    color: #ef5350;
}

.context-menu-item-red:hover {
    background: #ef53501a;
}

.context-menu-item-green, .context-menu-item-green>.material-symbols-rounded {
    color: #66bb6a;
}

.context-menu-item-green:hover {
    background: #66bb6a1a;
}

/* Event Inspector Modal */
.event-inspector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.event-inspector-modal.show {
    opacity: 1;
    visibility: visible;
}

.event-inspector-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.event-inspector-modal.show .event-inspector-content {
    transform: scale(1);
}

.event-inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
    background: #26222d;
}

.event-inspector-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.event-inspector-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.event-inspector-close:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.event-inspector-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.event-inspector-section {
    margin-bottom: 24px;
}

.event-inspector-section:last-child {
    margin-bottom: 0;
}

.event-inspector-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-inspector-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.event-inspector-field:last-child {
    margin-bottom: 0;
}

.event-inspector-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.event-inspector-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #ffffff;
    background: #2a2a2a;
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.4;
    border: 1px solid #3a3a3a;
}

.event-inspector-value.json {
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.event-inspector-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #2a2a2a;
    background: #26222d;
}

.event-inspector-actions .btn {
    flex: 1;
}