

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input,
textarea,
[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

html {
    background: #0e0e0e;
    transition: background-color 0.2s;
}

html.nav-hovered {
    background-color: white;
}

html.light-theme.nav-hovered {
    background-color: #0e0e0e;
}


html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}


html {
    scrollbar-width: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0e0e0e;
    min-height: 100vh;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.2s;
    -ms-overflow-style: none;
}

.mobile-only-message {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-only-message {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: #0e0e0e;
        padding: 2rem;
    }
    
    .mobile-message-content {
        text-align: center;
        max-width: 500px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    .error-code {
        font-size: 120px;
        font-weight: bold;
        color: #fff;
        line-height: 1;
        margin-bottom: 1rem;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    .mobile-title {
        font-size: 32px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 1rem;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    .mobile-description {
        font-size: 18px;
        color: #aaa;
        line-height: 1.6;
        max-width: 300px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    body > *:not(.mobile-only-message) {
        display: none !important;
    }
}

body.nav-hovered {
    background-color: white;
}

body.light-theme.nav-hovered {
    background-color: #0e0e0e;
    color: #fff;
}


.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e0e0e;
    transition: background 0.2s;
}


.landing-page:has(#sign-up-btn:hover),
.landing-page:has(.landing-content h1:hover),
.landing-page:has(#landing-import-seed-btn:hover) {
    background: white;
}


body.light-theme.nav-hovered .landing-page,
body.light-theme.nav-hovered .landing-page:has(#sign-up-btn:hover),
body.light-theme.nav-hovered .landing-page:has(.landing-content h1:hover),
body.light-theme.nav-hovered .landing-page:has(#landing-import-seed-btn:hover) {
    background: #0e0e0e;
}


.hidden {
    display: none !important;
}

.landing-page.hidden {
    display: none;
}

.landing-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: -30px;
    align-items: center;
}

.title-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#title-hover-text {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    white-space: pre-line;
    max-width: 48%;
}

#third-hover-text {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    white-space: normal;
    max-width: 48%;
    word-wrap: break-word;
    text-align: right;
}

.landing-content .button-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
}

.hover-text {
    min-height: 20px;
    color: white;
    font-size: 0.9em;
    text-align: left;
    opacity: 1;
    transition: color 0.2s;
    white-space: nowrap;
}

.hover-text.visible {
    opacity: 1;
}

.btn-large {
    min-width: 200px;
    padding: 16px 32px;
    font-size: 1.1em;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    
    overflow: hidden;
}

.container:has(#has-account) {
    max-width: none;
    width: 100%;
    border-radius: 0;
}

.container.hidden {
    display: none;
}

.view {
    padding: 0;
    min-height: 500px;
    color: #fff;
}

#has-account {
    box-sizing: border-box;
    width: 100%;
}

.main-content {
    padding-top: 30px;
}


.hero-section {
    margin-bottom: 40px;
    height: 49vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    color: #fff;
    font-size: 4.5em;
    font-weight: 600;
    transition: color 0.2s;
}

.hero-description {
    color: #ccc;
    font-size: 1.5em;
    margin: 0;
    transition: color 0.2s;
}

body.nav-hovered .hero-title {
    color: #000;
}

body.nav-hovered .hero-description {
    color: #666;
}

body.light-theme.nav-hovered .hero-title {
    color: #fff;
}

body.light-theme.nav-hovered .hero-description {
    color: #ccc;
}


.boxes-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.box {
    flex: 1;
    min-height: 150px;
    background: #0a0a0a;
    border: 1px solid #333;
    transition: background-color 0.2s, border-color 0.2s;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}


.contacts-boxes-section .box:nth-child(3) {
    max-height: 750px;
    min-height: 750px;
}

body.nav-hovered .box {
    background: white;
    border-color: #ccc;
}

body.light-theme.nav-hovered .box {
    background: #0e0e0e;
    border-color: #333;
}

.box-title {
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s;
}

body.nav-hovered .box-title {
    color: #000;
}

body.light-theme.nav-hovered .box-title {
    color: #fff;
}

.box-description {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
    transition: color 0.2s;
}

body.nav-hovered .box-description {
    color: #666;
}

body.light-theme.nav-hovered .box-description {
    color: #ccc;
}

.box-button {
    background: #0e0e0e;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 20px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    width: 100%;
    margin-top: auto;
    position: relative;
    overflow: visible;
}

.box-button > *:not(.feh-border-mask) {
    position: relative;
    z-index: 2;
}

.box-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    
    overflow: visible;
}

.box-buttons-container .box-button {
    width: auto;
    flex: 1;
}

.box-content-view {
    padding: 20px;
    background: #0e0e0e;
    border: 1px solid #333;
    min-height: 200px;
    transition: background-color 0.2s, border-color 0.2s;
}


#inbox-view,
#contact-requests-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.nav-hovered .box-content-view {
    background: #f5f5f5;
    border-color: #ccc;
}

body.light-theme.nav-hovered .box-content-view {
    background: #0a0a0a;
    border-color: #333;
}

.box-content-view.hidden {
    display: none;
}


.inbox-container {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
}


.inbox-chats-box {
    flex: 0 0 300px;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

body.nav-hovered .inbox-chats-box {
    background: white;
    border-color: #ccc;
}

body.light-theme.nav-hovered .inbox-chats-box {
    background: #0e0e0e;
    border-color: #333;
}


.inbox-chats-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    min-width: 0;
}


.inbox-chat-display {
    flex: 1;
    min-height: 400px;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 20px;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

body.nav-hovered .inbox-chat-display {
    background: white;
    border-color: #ccc;
}

body.light-theme.nav-hovered .inbox-chat-display {
    background: #0e0e0e;
    border-color: #333;
}

.inbox-chat-box {
    position: relative;
    padding: 15px 20px;
    background: #0e0e0e;
    border: 1px solid #333;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
    overflow: visible;
}

.inbox-chat-box:hover {
    border-color: #555;
}

body.nav-hovered .inbox-chat-box {
    background: white;
    border-color: #ccc;
}

body.nav-hovered .inbox-chat-box:hover {
    border-color: #999;
}

.inbox-chat-box.selected {
    border: 1px solid #fff;
}

body.nav-hovered .inbox-chat-box.selected {
    border: 1px solid #000;
}

body.light-theme.nav-hovered .inbox-chat-box {
    background: #0a0a0a;
    border-color: #333;
}

body.light-theme.nav-hovered .inbox-chat-box:hover {
    border-color: #555;
}

body.light-theme.nav-hovered .inbox-chat-box.selected {
    border: 1px solid #fff;
}

.inbox-chat-user {
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    margin: 0;
    transition: color 0.2s;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.nav-hovered .inbox-chat-user {
    color: #000;
}

body.light-theme.nav-hovered .inbox-chat-user {
    color: #fff;
}

.inbox-chat-empty {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    transition: color 0.2s;
}

body.nav-hovered .inbox-chat-empty {
    color: #999;
}

body.light-theme.nav-hovered .inbox-chat-empty {
    color: #666;
}


.inbox-chat-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.inbox-chat-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.nav-hovered .inbox-chat-loading-spinner {
    border-color: #ccc;
    border-top-color: #000;
}

.inbox-chat-loading-text {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    transition: color 0.2s;
}

body.nav-hovered .inbox-chat-loading-text {
    color: #999;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.inbox-chat-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    transition: border-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.inbox-chat-header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

body.nav-hovered .inbox-chat-header {
    border-color: #ccc;
}

body.light-theme.nav-hovered .inbox-chat-header {
    border-color: #333;
}

.inbox-chat-header .inbox-chat-user {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s;
    font-family: 'Courier New', monospace;
}

body.nav-hovered .inbox-chat-header .inbox-chat-user {
    color: #000;
}

body.light-theme.nav-hovered .inbox-chat-header .inbox-chat-user {
    color: #fff;
}

.inbox-chat-user-small {
    color: #999;
    font-size: 0.9em;
    font-weight: 400;
    margin: 0;
    transition: color 0.2s;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

body.nav-hovered .inbox-chat-user-small {
    color: #666;
}

body.light-theme.nav-hovered .inbox-chat-user-small {
    color: #999;
}

.inbox-chat-reload-btn,
.inbox-chat-delete-btn {
    background: #0e0e0e;
    border: 1px solid #333;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.inbox-chat-reload-btn:hover,
.inbox-chat-delete-btn:hover {
    background: #1a1a1a;
    border-color: #555;
}

body.nav-hovered .inbox-chat-reload-btn,
body.nav-hovered .inbox-chat-delete-btn {
    background: transparent;
    border-color: #ccc;
}

body.nav-hovered .inbox-chat-reload-btn:hover,
body.nav-hovered .inbox-chat-delete-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

body.light-theme.nav-hovered .inbox-chat-reload-btn,
body.light-theme.nav-hovered .inbox-chat-delete-btn {
    background: #0e0e0e;
    border-color: #333;
}

body.light-theme.nav-hovered .inbox-chat-reload-btn:hover,
body.light-theme.nav-hovered .inbox-chat-delete-btn:hover {
    background: #1a1a1a;
    border-color: #555;
}

.inbox-chat-reload-btn .reload-icon,
.inbox-chat-delete-btn .delete-icon {
    width: 16px;
    height: 16px;
    fill: #999;
    transition: fill 0.2s;
}

.inbox-chat-reload-btn:hover .reload-icon,
.inbox-chat-delete-btn:hover .delete-icon {
    fill: #fff;
}

body.nav-hovered .inbox-chat-reload-btn .reload-icon,
body.nav-hovered .inbox-chat-delete-btn .delete-icon {
    fill: #666;
}

body.nav-hovered .inbox-chat-reload-btn:hover .reload-icon,
body.nav-hovered .inbox-chat-delete-btn:hover .delete-icon {
    fill: #000;
}

body.light-theme.nav-hovered .inbox-chat-reload-btn .reload-icon,
body.light-theme.nav-hovered .inbox-chat-delete-btn .delete-icon {
    fill: #999;
}

body.light-theme.nav-hovered .inbox-chat-reload-btn:hover .reload-icon,
body.light-theme.nav-hovered .inbox-chat-delete-btn:hover .delete-icon {
    fill: #fff;
}

.inbox-chat-messages-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    background: transparent;
    transition: background-color 0.2s;
}

body.light-theme.nav-hovered .inbox-chat-messages-container {
    background: #0a0a0a;
}

.inbox-chat-messages-container.hidden {
    display: none;
}

.inbox-chat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0px 0px 15px 0px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    transition: background-color 0.2s;
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

body.light-theme.nav-hovered .inbox-chat-messages {
    background: #0a0a0a;
}

.inbox-chat-messages::-webkit-scrollbar {
    display: none; 
}

.inbox-chat-message {
    padding: 16px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    
    max-width: 70%;
    word-wrap: break-word;
    transition: background-color 0.2s, border-color 0.2s;
}

body.nav-hovered .inbox-chat-message {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}

.inbox-chat-message.sent {
    align-self: flex-end;
    background: #0a0a0a;
}

body.nav-hovered .inbox-chat-message.sent {
    background: #e0e0e0;
}

body.light-theme.nav-hovered .inbox-chat-message {
    background: #0a0a0a;
    border-color: #333;
    color: #fff;
}

body.light-theme.nav-hovered .inbox-chat-message.sent {
    background: #1a1a1a;
}

.inbox-chat-message.received {
    align-self: flex-start;
}

.inbox-chat-file-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inbox-chat-file-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 0;
    object-fit: contain;
}

.inbox-chat-file-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inbox-chat-file-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}

.inbox-chat-file-name {
    font-size: 0.9em;
    font-weight: 500;
    word-break: break-word;
}

.inbox-chat-file-size {
    font-size: 0.85em;
    color: #999;
    transition: color 0.2s;
}

body.nav-hovered .inbox-chat-file-size {
    color: #666;
}

.inbox-chat-file-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #0e0e0e;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.inbox-chat-file-download .download-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    pointer-events: none;
}

.inbox-chat-file-download:hover {
    background: #1a1a1a;
    border-color: #444;
}

body.nav-hovered .inbox-chat-file-download {
    background: #e0e0e0;
    border-color: #ccc;
    color: #000;
}

body.nav-hovered .inbox-chat-file-download:hover {
    background: #d0d0d0;
    border-color: #999;
}

.inbox-chat-typing-indicator {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #333;
    max-width: 70px;
    border-radius: 0;
    transition: background-color 0.2s, border-color 0.2s;
    margin-top: auto;
}

body.nav-hovered .inbox-chat-typing-indicator {
    background: #f5f5f5;
    border-color: #ccc;
}

.inbox-chat-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

body.nav-hovered .inbox-chat-typing-indicator span {
    background: #999;
}

.inbox-chat-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.inbox-chat-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.inbox-chat-typing-indicator span:nth-child(3) {
    animation-delay: 0;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.inbox-chat-input-container {
    display: flex;
    gap: 8px;
    padding: 16px 0px 0px 0px;
    border-top: 1px solid #333;
    transition: border-color 0.2s;
}

body.nav-hovered .inbox-chat-input-container {
    border-color: #ccc;
}

body.light-theme.nav-hovered .inbox-chat-input-container {
    border-color: #333;
}

.inbox-chat-upload-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    background: #0e0e0e;
    border: 1px solid #333;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.inbox-chat-upload-btn:hover {
    border-color: #444;
    border-radius: 0;
    outline: none;
}

.inbox-chat-upload-btn:focus {
    outline: none;
    border-radius: 0;
}

body.nav-hovered .inbox-chat-upload-btn {
    background: #f5f5f5;
    border-color: #ccc;
}

body.nav-hovered .inbox-chat-upload-btn:hover {
    border-color: #999;
    border-radius: 0;
    outline: none;
}

body.nav-hovered .inbox-chat-upload-btn:focus {
    outline: none;
    border-radius: 0;
}

.inbox-chat-upload-btn .plus-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: fill 0.2s;
    pointer-events: none;
}

body.nav-hovered .inbox-chat-upload-btn .plus-icon {
    fill: #000;
}

.inbox-chat-upload-btn:hover .plus-icon {
    fill: #ccc;
}

body.nav-hovered .inbox-chat-upload-btn:hover .plus-icon {
    fill: #333;
}

body.light-theme.nav-hovered .inbox-chat-upload-btn {
    background: #0e0e0e;
    border-color: #333;
}

body.light-theme.nav-hovered .inbox-chat-upload-btn:hover {
    border-color: #555;
}

body.light-theme.nav-hovered .inbox-chat-upload-btn .plus-icon {
    fill: #fff;
}

body.light-theme.nav-hovered .inbox-chat-upload-btn:hover .plus-icon {
    fill: #ccc;
}

.inbox-chat-input {
    flex: 1;
    padding: 12px 16px;
    background: #0e0e0e;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    border-radius: 0;
    color: #fff;
    font-size: 0.95rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.inbox-chat-input:hover {
    border-color: #555;
    border-radius: 0;
    outline: none;
}

.inbox-chat-input:focus {
    outline: none;
    border-color: #555;
    border-radius: 0;
}

.inbox-chat-input::placeholder {
    color: #666;
    font-style: italic;
}

body.nav-hovered .inbox-chat-input {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}

body.nav-hovered .inbox-chat-input:hover {
    border-color: #999;
    border-radius: 0;
    outline: none;
}

body.nav-hovered .inbox-chat-input:focus {
    outline: none;
    border-color: #999;
    border-radius: 0;
}

body.nav-hovered .inbox-chat-input::placeholder {
    color: #999;
    font-style: italic;
}

body.light-theme.nav-hovered .inbox-chat-input {
    background: #0e0e0e;
    border-color: #333;
    color: #fff;
}

body.light-theme.nav-hovered .inbox-chat-input:hover {
    border-color: #555;
}

body.light-theme.nav-hovered .inbox-chat-input:focus {
    border-color: #555;
}

body.light-theme.nav-hovered .inbox-chat-input::placeholder {
    color: #666;
}

.inbox-chat-send-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    background: #0e0e0e;
    border: 1px solid #333;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.inbox-chat-send-btn:hover {
    border-color: #444;
    border-radius: 0;
    outline: none;
}

.inbox-chat-send-btn:focus {
    outline: none;
    border-radius: 0;
}

body.nav-hovered .inbox-chat-send-btn {
    background: #f5f5f5;
    border-color: #ccc;
}

body.nav-hovered .inbox-chat-send-btn:hover {
    border-color: #999;
    border-radius: 0;
    outline: none;
}

body.nav-hovered .inbox-chat-send-btn:focus {
    outline: none;
    border-radius: 0;
}

.inbox-chat-send-btn .arrow-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: fill 0.2s;
    pointer-events: none; 
}

body.nav-hovered .inbox-chat-send-btn .arrow-icon {
    fill: #000;
}

.inbox-chat-send-btn:hover .arrow-icon {
    fill: #ccc;
}

body.nav-hovered .inbox-chat-send-btn:hover .arrow-icon {
    fill: #333;
}

body.light-theme.nav-hovered .inbox-chat-send-btn {
    background: #0e0e0e;
    border-color: #333;
}

body.light-theme.nav-hovered .inbox-chat-send-btn:hover {
    border-color: #555;
}

body.light-theme.nav-hovered .inbox-chat-send-btn .arrow-icon {
    fill: #fff;
}

body.light-theme.nav-hovered .inbox-chat-send-btn:hover .arrow-icon {
    fill: #ccc;
}


.connection-lost-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.connection-lost-overlay.hidden {
    display: none;
}

.connection-lost-overlay .box {
    max-width: 500px;
    width: 90%;
    padding: 40px;
    text-align: center;
}

.connection-lost-overlay .box-title {
    text-align: center;
    margin-bottom: 20px;
}

.connection-lost-overlay .box-description {
    text-align: center;
}

.inbox-chat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.contact-requests-container {
    display: flex;
    gap: 20px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.contact-request-box {
    flex: 1;
    min-height: 150px;
    background: #0a0a0a;
    border: 1px solid #333;
    transition: background-color 0.2s, border-color 0.2s;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; 
    overflow: hidden; 
    height: 100%;
}

body.nav-hovered .contact-request-box {
    background: white;
    border-color: #ccc;
}

body.light-theme.nav-hovered .contact-request-box {
    background: #0e0e0e;
    border-color: #333;
}

.contact-request-title {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s;
}

body.nav-hovered .contact-request-title {
    color: #000;
}

body.light-theme.nav-hovered .contact-request-title {
    color: #fff;
}

.contact-request-description {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    transition: color 0.2s;
}

body.nav-hovered .contact-request-description {
    color: #666;
}

body.light-theme.nav-hovered .contact-request-description {
    color: #ccc;
}

.contact-requests-list-box {
    flex: 1;
    min-height: 0;
    background: #0e0e0e;
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.2s, border-color 0.2s;
}

body.nav-hovered .contact-requests-list-box {
    background: #f5f5f5;
    border-color: #ccc;
}

body.light-theme.nav-hovered .contact-requests-list-box {
    background: #0a0a0a;
    border-color: #333;
}

.contact-requests-list {
    flex: 1;
    display: flex;
    gap: 12px;
    min-width: 0; 
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    min-height: 0;
}


.contact-requests-list:has(.contact-request-empty:only-child) {
    justify-content: center;
    align-items: center;
}

.contact-request-empty {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    transition: color 0.2s;
}

body.nav-hovered .contact-request-empty {
    color: #999;
}

body.light-theme.nav-hovered .contact-request-empty {
    color: #666;
}

.contact-request-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; 
    max-width: 100%; 
}

.contact-request-item > .contact-request-string,
.contact-request-item > .contact-request-buttons {
    display: flex;
    align-items: center;
}

.contact-request-item > .contact-request-string {
    flex: 1;
}

.contact-request-item > .contact-request-buttons {
    flex-shrink: 0;
}

.contact-request-item > .contact-request-error {
    width: 100%;
    margin-top: 0;
}

body.nav-hovered .contact-request-item {
    background: #f5f5f5;
    border-color: #ccc;
}

body.light-theme.nav-hovered .contact-request-item {
    background: #0a0a0a;
    border-color: #333;
}

.contact-request-string {
    flex: 1;
    color: #fff;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; 
    transition: color 0.2s;
}

body.nav-hovered .contact-request-string {
    color: #000;
}

body.light-theme.nav-hovered .contact-request-string {
    color: #fff;
}

.contact-request-error {
    width: 100%;
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.nav-hovered .contact-request-error {
    color: #cc0000;
    background: rgba(204, 0, 0, 0.1);
    border-color: rgba(204, 0, 0, 0.3);
}

.contact-request-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.contact-request-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.contact-request-btn:hover {
    color: #ccc;
}

.contact-request-btn:active {
    transform: scale(0.9);
}

body.nav-hovered .contact-request-btn {
    color: #000;
}

body.nav-hovered .contact-request-btn:hover {
    color: #333;
}

body.light-theme.nav-hovered .contact-request-btn {
    color: #fff;
}

body.light-theme.nav-hovered .contact-request-btn:hover {
    color: #ccc;
}

.contact-request-btn .check-icon,
.contact-request-btn .x-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.contact-request-status {
    color: #999;
    font-size: 0.85em;
    font-style: italic;
    transition: color 0.2s;
}

body.nav-hovered .contact-request-status {
    color: #666;
}

body.light-theme.nav-hovered .contact-request-status {
    color: #ccc;
}

.box-button:hover:not(.selected) {
    border-color: #555;
}

.box-button.selected {
    cursor: default;
    pointer-events: auto; 
}

body.nav-hovered .box-button {
    background: white;
    color: #000;
    border-color: #ccc;
}

body.nav-hovered .box-button:hover:not(.selected) {
    border-color: #999;
}

body.light-theme.nav-hovered .box-button {
    background: #0e0e0e;
    color: #fff;
    border-color: #333;
}

body.light-theme.nav-hovered .box-button:hover:not(.selected) {
    border-color: #555;
}


.feh-border-mask {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    padding: 1px;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) border-box;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 0;
    overflow: visible;
}

.box-button.selected .feh-border-mask {
    opacity: 1;
}

.feh-border-glow {
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #fff 8%,
        #fff 12%,
        transparent 22%
    );
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    transform-origin: 0 0;
    animation: rotateShine 3s linear infinite;
}

@keyframes rotateShine {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }
    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

body.nav-hovered .feh-border-glow {
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #000 10%,
        transparent 20%
    );
}

.light-theme .feh-border-glow {
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #000 8%,
        #000 12%,
        transparent 22%
    );
}

body.light-theme.nav-hovered .feh-border-glow {
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #fff 8%,
        #fff 12%,
        transparent 22%
    );
}


.main-nav {
    margin-bottom: 30px;
    box-sizing: border-box;
    padding: 25px 0 30px 0;
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.nav-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-title {
    font-weight: bold;
    font-size: 50px;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: #fff;
    margin-bottom: -3px;
    white-space: nowrap;
    transition: color 0.2s;
    cursor: default;
}

body.nav-hovered .nav-title {
    color: #000;
}

body.light-theme.nav-hovered .nav-title {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-left: auto;
    padding-bottom: 3px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: color 0.2s;
    cursor: pointer;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease-out;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.7;
}

#logout-link {
    position: relative; 
}

#logout-link:hover {
    opacity: 1;
}

body.nav-hovered .nav-link {
    color: #000;
}

body.light-theme.nav-hovered .nav-link {
    color: #fff;
}

.logout-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 20px;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    font-size: 0.85em;
    line-height: 1.4;
    white-space: normal;
    max-width: min(272px, calc(1000px - 40px));
    width: 272px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
    z-index: 1000;
    
    word-wrap: break-word;
    box-sizing: border-box;
    cursor: default;
}

.logout-tooltip * {
    cursor: default;
}

.tooltip-info {
    margin: 12px 0 0 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #aaa;
}

body.nav-hovered .tooltip-info {
    color: #666;
}

@media (max-width: 1000px) {
    .logout-tooltip {
        max-width: calc(100vw - 40px);
        width: auto;
    }
}

.logout-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border: 7px solid transparent;
    border-bottom-color: #333;
    transition: border-bottom-color 0.2s;
}

.logout-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    transform: translateY(1px);
    border: 6px solid transparent;
    border-bottom-color: #0a0a0a;
    transition: border-bottom-color 0.2s;
}

body.nav-hovered .logout-tooltip {
    background: #f5f5f5;
    color: #000;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.nav-hovered .logout-tooltip::before {
    border-bottom-color: #ccc;
}

body.nav-hovered .logout-tooltip::after {
    border-bottom-color: #f5f5f5;
}

.light-theme .logout-tooltip {
    background: white;
    color: #000;
    border-color: #ccc;
}

.light-theme .logout-tooltip::before {
    border-bottom-color: #ccc;
}

.light-theme .logout-tooltip::after {
    border-bottom-color: white;
}

.light-theme .tooltip-info {
    color: #666;
}

.light-theme .export-seed-btn {
    background: white;
    color: #000;
    border-color: #ccc;
}

.light-theme .export-seed-btn:hover:not(:disabled) {
    border-color: #999;
}

.logout-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

.export-seed-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    background: #0e0e0e;
    color: white;
    border: 1px solid #333;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer !important;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
    text-align: center;
}

.export-seed-btn:hover:not(:disabled) {
    border-color: #555;
}

.export-seed-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.nav-hovered .export-seed-btn {
    background: white;
    color: #000;
    border-color: #ccc;
}

body.nav-hovered .export-seed-btn:hover:not(:disabled) {
    border-color: #999;
}

body.nav-hovered .export-seed-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-hover-text {
    color: #fff;
    font-size: 1em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    margin-top: 5px;
    margin-left: 2px;
}

.nav-hover-text.visible {
    opacity: 1;
    color: #fff;
}

body.nav-hovered .nav-hover-text {
    opacity: 1;
    color: #000;
}

body.light-theme.nav-hovered .nav-hover-text {
    color: #fff;
}

.nav-separator {
    height: 1px;
    background: #444;
    width: 100%;
}

.view.hidden {
    display: none;
}



.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
}

.view-header h1 {
    color: #667eea;
    font-size: 2em;
}


.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}


#sign-up-btn {
    border-radius: 0;
    background: white;
    color: black;
    border: 1px solid #333;
    font-style: normal;
}

#landing-import-seed-btn {
    font-style: italic;
}

body.light-theme.nav-hovered #landing-import-seed-btn {
    background: #0e0e0e;
    color: #fff;
    border-color: #333;
}

body.light-theme.nav-hovered #landing-import-seed-btn:hover {
    background: #1a1a1a;
    border-color: #555;
}

#sign-up-btn:hover,
.landing-content:has(h1:hover) #sign-up-btn,
.landing-page:has(#landing-import-seed-btn:hover) #sign-up-btn {
    background: black;
    color: white;
    transform: none;
    box-shadow: none;
}


body.light-theme.nav-hovered #sign-up-btn:hover,
body.light-theme.nav-hovered .landing-content:has(h1:hover) #sign-up-btn,
body.light-theme.nav-hovered .landing-page:has(#landing-import-seed-btn:hover) #sign-up-btn {
    background: white !important;
    background-image: none !important;
    color: black !important;
}

#sign-up-btn:active {
    transform: none;
}


.landing-page:has(#sign-up-btn:hover) .landing-content h1,
.landing-page:has(#landing-import-seed-btn:hover) .landing-content h1,
.landing-content h1:hover {
    color: black;
}


body.light-theme.nav-hovered .landing-page:has(#sign-up-btn:hover) .landing-content h1,
body.light-theme.nav-hovered .landing-page:has(#landing-import-seed-btn:hover) .landing-content h1,
body.light-theme.nav-hovered .landing-content h1:hover {
    color: #fff;
}

body.light-theme.nav-hovered .landing-content h1 {
    color: #fff;
}

.landing-content h1 {
    transition: color 0.2s;
    user-select: none;
    cursor: default;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #444;
    color: #fff;
}

.btn-secondary:hover {
    background: #555;
}

.btn-success {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn-danger {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    font-size: 0.9em;
}


.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacts-boxes-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.contacts-boxes-section .box:nth-child(3) {
    grid-column: 1 / -1;
}

.settings-boxes-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.settings-buttons-container {
    display: flex;
    
    gap: 12px;
    margin-top: 20px;
}

.settings-buttons-container .box-button {
    width: 100%;
}

.settings-auto-delete-container {
    
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.settings-auto-delete-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-auto-delete-buttons .auto-delete-btn {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    width: auto;
}

.settings-auto-delete-buttons .auto-delete-btn.selected {
    border-color: #555;
}

.settings-auto-delete-buttons .auto-delete-btn.selected .feh-border-mask {
    opacity: 0;
}

body.nav-hovered .settings-auto-delete-buttons .auto-delete-btn.selected {
    border-color: #999;
}

.settings-theme-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.settings-theme-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-theme-buttons .theme-btn {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    width: auto;
}

.settings-theme-buttons .theme-btn.selected {
    border-color: #555;
}

.settings-theme-buttons .theme-btn.selected .feh-border-mask {
    opacity: 0;
}

body.nav-hovered .settings-theme-buttons .theme-btn.selected {
    border-color: #999;
}


html.light-theme,
body.light-theme {
    background: white;
    color: #000;
}

.light-theme .landing-page {
    background: white;
}

.light-theme .landing-content h1 {
    color: #000;
}

.light-theme .hero-title {
    color: #000;
}

.light-theme .hero-description {
    color: #666;
}

.light-theme #sign-up-btn {
    background: black;
    color: white;
    border-color: #333;
}

.light-theme #sign-up-btn:hover {
    background: white;
    color: black;
}




html.light-theme.nav-hovered body #sign-up-btn:hover,
body.light-theme.nav-hovered #sign-up-btn:hover,
body.light-theme.nav-hovered .btn-primary#sign-up-btn:hover {
    background: white !important;
    background-image: none !important;
    color: black !important;
    border-color: #333 !important;
}

body.light-theme.nav-hovered #sign-up-btn {
    background: white;
    color: black;
    border-color: #333;
}




body.light-theme.nav-hovered #sign-up-btn:hover,
body.light-theme.nav-hovered .landing-page:has(#sign-up-btn:hover) #sign-up-btn,
.light-theme body.nav-hovered #sign-up-btn:hover,
body.light-theme.nav-hovered .landing-content:has(h1:hover) #sign-up-btn {
    background: white !important;
    background-image: none !important;
    color: black !important;
    border-color: #333 !important;
}

.light-theme .box {
    background: white;
    border-color: #ccc;
}

.light-theme .box-title {
    color: #000;
}

.light-theme .box-description {
    color: #666;
}

.light-theme .box-button {
    background: white;
    color: #000;
    border-color: #ccc;
}

.light-theme .box-button:hover:not(.selected) {
    border-color: #999;
}

.light-theme .nav-title {
    color: #000;
}

.light-theme .nav-link {
    color: #000;
}

.light-theme .nav-link.active {
    border-bottom-color: #000;
}

.light-theme .nav-hover-text {
    color: #000;
}

.light-theme .nav-hover-text.visible {
    color: #000;
}

.light-theme .inbox-chat-message {
    background: white;
    border-color: #ccc;
    color: #000;
}

.light-theme .inbox-chat-message.sent {
    background: #e0e0e0;
}

.light-theme .inbox-chat-input {
    background: white;
    border-color: #ccc;
    color: #000;
}

.light-theme .inbox-chat-input::placeholder {
    color: #999;
}

.light-theme .box-content-view {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chats-box {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chat-display {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chat-box {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chat-box:hover {
    border-color: #999;
}

.light-theme .inbox-chat-box.selected {
    border-color: #000;
}

.light-theme .inbox-chat-user {
    color: #000;
}

.light-theme .inbox-chat-empty {
    color: #999;
}

.light-theme .inbox-chat-header {
    border-color: #ccc;
}

.light-theme .inbox-chat-header .inbox-chat-user {
    color: #000;
}

.light-theme .inbox-chat-user-small {
    color: #666;
}

.light-theme .contact-request-box {
    background: white;
    border-color: #ccc;
}

.light-theme .contact-request-title {
    color: #000;
}

.light-theme .contact-request-description {
    color: #666;
}

.light-theme .contact-requests-list-box {
    background: white;
    border-color: #ccc;
}

.light-theme .contact-request-empty {
    color: #999;
}

.light-theme .contact-request-item {
    background: white;
    border-color: #ccc;
}

.light-theme .contact-request-string {
    color: #000;
}

.light-theme .contact-request-btn {
    color: #000;
}

.light-theme .contact-request-btn:hover {
    color: #333;
}

.light-theme .contacts-identifier-input {
    background: white;
    color: #999;
    border-color: #ccc;
}

.light-theme .contacts-identifier-input:focus {
    background: white;
    border-color: #999;
}

.light-theme .contacts-copy-btn {
    color: #000;
}

.light-theme .contacts-copy-btn:hover {
    color: #333;
}

.light-theme .contacts-contact-input {
    background: white;
    color: #999;
    border-color: #ccc;
}

.light-theme .contacts-contact-input:focus {
    background: white;
    border-color: #999;
}

.light-theme .contacts-contact-input::placeholder {
    color: #999;
}

.light-theme .contacts-send-arrow {
    color: #000;
}

.light-theme .contacts-send-arrow:hover {
    color: #333;
}

.light-theme .inbox-chat-messages-container {
    background: white;
}

.light-theme .inbox-chat-input-container {
    border-color: #ccc;
}

.light-theme .inbox-chat-upload-btn {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chat-upload-btn:hover {
    border-color: #999;
}

.light-theme .inbox-chat-upload-btn .plus-icon {
    fill: #000;
}

.light-theme .inbox-chat-upload-btn:hover .plus-icon {
    fill: #333;
}

.light-theme .inbox-chat-send-btn {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chat-send-btn:hover {
    border-color: #999;
}

.light-theme .inbox-chat-send-btn .arrow-icon {
    fill: #000;
}

.light-theme .inbox-chat-send-btn:hover .arrow-icon {
    fill: #333;
}

.light-theme .inbox-chat-file-download {
    background: #e0e0e0;
    border-color: #ccc;
    color: #000;
}

.light-theme .inbox-chat-file-download:hover {
    background: #d0d0d0;
    border-color: #999;
}

.light-theme .inbox-chat-file-size {
    color: #666;
}

.light-theme .inbox-chat-typing-indicator {
    background: white;
    border-color: #ccc;
}

.light-theme .inbox-chat-typing-indicator span {
    background: #999;
}

.light-theme .inbox-chat-loading-spinner {
    border-color: #ccc;
    border-top-color: #000;
}

.light-theme .inbox-chat-loading-text {
    color: #999;
}

.light-theme .inbox-chat-reload-btn,
.light-theme .inbox-chat-delete-btn {
    background: transparent;
    border-color: #ccc;
}

.light-theme .inbox-chat-reload-btn:hover,
.light-theme .inbox-chat-delete-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.light-theme .inbox-chat-reload-btn .reload-icon,
.light-theme .inbox-chat-delete-btn .delete-icon {
    fill: #666;
}

.light-theme .inbox-chat-reload-btn:hover .reload-icon,
.light-theme .inbox-chat-delete-btn:hover .delete-icon {
    fill: #000;
}

.identifier-display {
    margin-top: auto;
    padding-top: 12px;
}

.contacts-identifier-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contacts-identifier-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #333;
    font-size: 0.95em;
    font-family: 'Courier New', monospace;
    font-style: italic;
    background: #0e0e0e;
    color: #666;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.contacts-identifier-input:focus {
    outline: none;
    border-color: #555;
    background: #0e0e0e;
}

.contacts-copy-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.contacts-copy-btn:hover {
    color: #ccc;
}

.contacts-copy-btn:active {
    transform: scale(0.9);
}

.contacts-copy-btn .copy-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

body.nav-hovered .contacts-identifier-input {
    background: white;
    color: #999;
    border-color: #ccc;
}

body.nav-hovered .contacts-identifier-input:focus {
    background: white;
    border-color: #999;
}

body.nav-hovered .contacts-copy-btn {
    color: #000;
}

body.nav-hovered .contacts-copy-btn:hover {
    color: #333;
}

body.light-theme.nav-hovered .contacts-identifier-input {
    background: #0e0e0e;
    color: #666;
    border-color: #333;
}

body.light-theme.nav-hovered .contacts-identifier-input:focus {
    background: #0e0e0e;
    border-color: #555;
}

body.light-theme.nav-hovered .contacts-copy-btn {
    color: #fff;
}

body.light-theme.nav-hovered .contacts-copy-btn:hover {
    color: #ccc;
}

.add-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.contacts-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contacts-contact-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #333;
    
    font-size: 0.95em;
    font-family: 'Courier New', monospace;
    background: #0e0e0e;
    color: #666;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.contacts-send-arrow {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.contacts-send-arrow:hover {
    color: #ccc;
    transform: translateX(1px);
}

.contacts-send-arrow:active {
    transform: translateX(2px);
}

.contacts-send-arrow .arrow-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

body.nav-hovered .contacts-send-arrow {
    color: #000;
}

body.nav-hovered .contacts-send-arrow:hover {
    color: #333;
}

body.light-theme.nav-hovered .contacts-send-arrow {
    color: #fff;
}

body.light-theme.nav-hovered .contacts-send-arrow:hover {
    color: #ccc;
}

.contacts-contact-input:focus {
    outline: none;
    border-color: #555;
    background: #0e0e0e;
}

.contacts-contact-input::placeholder {
    color: #666;
    font-style: italic;
}

body.nav-hovered .contacts-contact-input {
    background: white;
    color: #999;
    border-color: #ccc;
}

body.nav-hovered .contacts-contact-input:focus {
    background: white;
    border-color: #999;
}

body.nav-hovered .contacts-contact-input::placeholder {
    color: #999;
}

body.light-theme.nav-hovered .contacts-contact-input {
    background: #0e0e0e;
    color: #666;
    border-color: #333;
}

body.light-theme.nav-hovered .contacts-contact-input:focus {
    background: #0e0e0e;
    border-color: #555;
}

body.light-theme.nav-hovered .contacts-contact-input::placeholder {
    color: #666;
}



.chat-content {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.messages-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #1a1a1a;
}





@media (max-width: 600px) {
    body {
        max-width: none;
        padding: 10px;
    }
    
    .view {
        padding: 20px;
    }
    
    
    .chat-content {
        height: 500px;
    }
}

