/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0b141a;
    color: #e9edef;
    height: 100vh;
    overflow: hidden;
}

/* Tela de Login */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    padding: 20px;
}

.login-container {
    background: #1f2937;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.login-logo i {
    font-size: 3rem;
    color: white;
}

.login-logo .business-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-header h1 {
    color: #e9edef;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.business-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #2a3942;
    border-radius: 10px;
    border-left: 4px solid #25d366;
}

.business-name {
    color: #e9edef;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.business-phone {
    color: #8696a0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.business-phone i {
    color: #25d366;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #2a3942;
    border: 2px solid #3b4a54;
    border-radius: 10px;
    color: #e9edef;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #25d366;
    background: #2f3d47;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-group .input-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #8696a0 !important;
    transition: color 0.3s;
    pointer-events: none !important;
    z-index: 10 !important;
}

.form-group input:focus + .input-icon,
.form-group input:focus ~ .input-icon {
    color: #25d366;
}

.login-btn {
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-top: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

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

.error-message {
    background: #dc3545;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #3b4a54;
}

.login-footer p {
    color: #8696a0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.login-footer small {
    color: #6b7a84;
    font-size: 0.8rem;
    font-size: 0.9rem;
}

/* Interface Principal */
.main-app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 400px;
    background: #111b21;
    border-right: 1px solid #2a3942;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1rem;
    background: #202c33;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a3942;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.user-avatar .sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details span {
    display: block;
    font-weight: 600;
}

.user-details small {
    color: #8696a0;
    font-size: 0.8rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: #8696a0;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background: #2a3942;
    color: #e9edef;
}

/* Search */
.search-container {
    padding: 1rem;
    background: #111b21;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #8696a0;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: #2a3942;
    border: none;
    border-radius: 8px;
    color: #e9edef;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    background: #3b4a54;
}

/* Tabs */
.sidebar-tabs {
    display: flex;
    background: #111b21;
    border-bottom: 1px solid #2a3942;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #8696a0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #25d366;
    border-bottom-color: #25d366;
}

.tab-btn:hover {
    background: #2a3942;
}

/* Conversations List */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    background: #111b21;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid #2a3942;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.conversation-item.active {
    background: #2a3942;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.conversation-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-avatar .avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

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

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-name {
    font-weight: 600;
    color: #e9edef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.75rem;
    color: #8696a0;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-message {
    color: #8696a0;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.unread-count {
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0b141a;
}

.chat-header {
    padding: 1rem;
    background: #202c33;
    border-bottom: 1px solid #2a3942;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-details h3 {
    color: #e9edef;
    margin-bottom: 0.25rem;
}

.contact-details span {
    color: #8696a0;
    font-size: 0.8rem;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

/* Messages */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
}

.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

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

.welcome-content i {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 1rem;
}

.welcome-content h2 {
    color: #e9edef;
    margin-bottom: 1rem;
}

.welcome-content p {
    color: #8696a0;
    margin-bottom: 0.5rem;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
}

.message.sent .message-bubble {
    background: #005c4b;
    color: #e9edef;
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background: #202c33;
    color: #e9edef;
    border-bottom-left-radius: 4px;
}

.message-content {
    margin-bottom: 0.25rem;
}

/* Media Preview */
.media-preview {
    position: relative;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.media-preview:hover {
    transform: scale(1.02);
}

.media-preview:hover .media-overlay {
    opacity: 1;
}

.media-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-overlay i {
    color: white;
    font-size: 2rem;
}

.media-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #e9edef;
}

/* GIF Badge */
.gif-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.gif-image {
    /* GIFs animam automaticamente */
}

/* Sticker Message */
.sticker-message {
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer;
    display: inline-block;
}

.sticker-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Document Message - WhatsApp Style */
.document-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    max-width: 350px;
}

.document-message:hover {
    background: rgba(255, 255, 255, 0.08);
}

.document-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.document-icon i {
    font-size: 24px;
    color: white;
}

.document-ext {
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-top: 2px;
}

.doc-pdf {
    background: #E53935;
}

.doc-word {
    background: #2196F3;
}

.doc-excel {
    background: #4CAF50;
}

.doc-powerpoint {
    background: #FF6F00;
}

.doc-archive {
    background: #9C27B0;
}

.doc-default {
    background: #607D8B;
}

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

.document-name {
    color: #e9edef;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    margin-bottom: 4px;
    max-width: 100%;
    display: block;
}

.document-size {
    color: #8696a0;
    font-size: 0.8rem;
}

.document-download {
    flex-shrink: 0;
}

.document-download a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8696a0;
    transition: all 0.2s;
    text-decoration: none;
}

.document-download a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #25d366;
}

/* Media View Modal */
.media-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.media-view-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10001;
}

.media-view-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.media-view-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.media-view-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.media-view-download {
    background: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.media-view-download:hover {
    background: #20b358;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #8696a0;
}

.message-time {
    color: #8696a0;
}

.message-status {
    color: #8696a0;
}

.message-status.delivered {
    color: #8696a0;
}

.message-status.read {
    color: #53bdeb;
}

/* Message Input */
.message-input-container {
    padding: 1rem;
    background: #202c33;
    border-top: 1px solid #2a3942;
}

.message-input {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: #2a3942;
    border-radius: 24px;
    padding: 0.5rem;
}

.attach-menu-container {
    position: relative;
}

.input-btn {
    background: none;
    border: none;
    color: #8696a0;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.input-btn:hover {
    background: #3b4a54;
    color: #e9edef;
}

#attachBtn {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

#attachBtn.active {
    transform: rotate(45deg);
    color: #25d366;
}

.attach-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: #2a3942;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 8px;
    min-width: 200px;
    z-index: 100;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attach-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #e9edef;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;
    font-size: 0.95rem;
}

.attach-menu-item:hover {
    background: #3b4a54;
}

.attach-menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.attach-menu-item span {
    flex: 1;
}

.text-input-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: #2a3942;
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.text-input-container textarea {
    flex: 1;
    background: none;
    border: none;
    color: #e9edef;
    font-size: 1rem;
    resize: none;
    max-height: 120px;
    min-height: 20px;
    line-height: 1.4;
}

.text-input-container textarea:focus {
    outline: none;
}

.send-btn {
    background: #25d366;
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-btn:hover {
    background: #20b358;
}

.send-btn:disabled {
    background: #8696a0;
    cursor: not-allowed;
}

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

.modal-content {
    background: #1f2937;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: #e9edef;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #8696a0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: #2a3942;
    color: #e9edef;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #e9edef;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 6px;
    color: #e9edef;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25d366;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #25d366;
    color: white;
}

.btn-primary:hover {
    background: #20b358;
}

.btn-primary:disabled {
    background: #8696a0;
    cursor: not-allowed;
}

.btn-secondary {
    background: #2a3942;
    color: #e9edef;
}

.btn-secondary:hover {
    background: #3b4a54;
}

/* File Upload */
.file-drop-zone {
    border: 2px dashed #3b4a54;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-bottom: 1rem;
}

.file-drop-zone:hover {
    border-color: #25d366;
}

.file-drop-zone.dragover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.file-drop-zone i {
    font-size: 2rem;
    color: #8696a0;
    margin-bottom: 1rem;
}

.file-drop-zone p {
    color: #8696a0;
}

.file-preview {
    background: #2a3942;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info i {
    font-size: 1.5rem;
    color: #25d366;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    text-align: center;
    color: #e9edef;
}

.loading-spinner i {
    font-size: 2rem;
    color: #25d366;
    margin-bottom: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
}

.toast {
    background: #2a3942;
    color: #e9edef;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #25d366;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

.toast.info {
    border-left: 4px solid #17a2b8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: absolute;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .chat-area {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111b21;
}

::-webkit-scrollbar-thumb {
    background: #3b4a54;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5a64;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    color: #e9edef;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-description {
    color: #8696a0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.favicon-upload {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.favicon-preview {
    width: 64px;
    height: 64px;
    border: 2px solid #3b4a54;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #202c33;
    flex-shrink: 0;
}

.favicon-preview img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.favicon-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.favicon-controls small {
    color: #8696a0;
    font-size: 0.8rem;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: #2a3942;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    z-index: 10000;
    min-width: 180px;
}

.context-menu-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #e9edef;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: #3b4a54;
}

.context-menu-item i {
    width: 20px;
    color: #8696a0;
}

.context-menu-item:hover i {
    color: #e9edef;
}

/* Emoji Picker */
.emoji-picker {
    position: fixed;
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 320px;
    max-height: 400px;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.emoji-picker-header {
    padding: 12px 16px;
    background: #2a3942;
    border-bottom: 1px solid #3b4a54;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.emoji-close {
    background: none;
    border: none;
    color: #8696a0;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.emoji-close:hover {
    background: #3b4a54;
    color: #e9edef;
}

.emoji-picker-body {
    padding: 12px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 340px;
}

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

.emoji-item:hover {
    background: #2a3942;
    transform: scale(1.2);
}
