/* Estilos generales */
textarea {
    resize: none;
    width: 200px;  /* Cambiá según necesites */
    height: 050px; /* Cambiá según necesites */
}
    body {
       background-color: #121212;
        color: white;
        margin: 0;
        font-family: Arial, sans-serif;
        font-size: 16px; /* Base font size for "Normal" */
        transition: background-color 0.3s ease, font-size 0.2s ease;
        position: relative;
        overflow-x: hidden;
    }

    @font-face {
        font-family: 'Harlow Solid';
        src: url('../fonts/HARLOWSI.TTF') format('truetype'); /* Ajusta la ruta si es necesario */
        font-weight: normal;
        font-style: normal;
    }
    /* Contenido principal con fondo semitransparente */
    #mainContent > div {
        background-color: rgba(30, 30, 30, 0.85);
        border-radius: 10px;
        padding: 20px;
        margin: 15px;
        backdrop-filter: blur(2px);
    }

    #inicioView {
        width: 50%;
        min-width: 500px; /* Para que no se comprima demasiado en pantallas pequeñas */
        box-sizing: border-box;
    }

    .light-mode #mainContent > div {
        background-color: rgba(255, 255, 255, 0.85);
    }

    /* ---------------------------------- */
    /* ESTILOS EXISTENTES (sin modificar) */
    /* ---------------------------------- */
    .light-mode #logoContainer img {
        filter: invert(1);
    }

    #topHeader {
        text-align: center;
        padding: 20px 0 10px 0;
        position: relative;
    }

    #logoContainer {
        font-family: 'Harlow Solid', cursive; /* Usamos la fuente local con un respaldo */
        font-size: 72px;
        transition: transform 0.3s ease;
        display: inline-block;
        cursor: pointer;
    }

    #logoContainer:hover {
        transform: scale(1.1);
    }

    .logo-star {
        vertical-align: middle;
        margin-left: 2px;  /* Aún más pegado */
        height: 28px; /* Ligeramente más pequeño */
        width: 28px;
    }

    /* Mantener compatibilidad si se vuelve a usar una imagen */
    #logoContainer img { height: 50px; }

    hr {
        width: 50%;
        border: 1px solid #999;
        margin: 10px auto 0 auto;
    }

    #topBar {
        position: absolute;
        top: 30px;
        right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}
    .top-bar-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

.top-bar-btn:hover {
    transform: scale(1.1);

    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.light-mode .top-bar-btn {
    color: black;
    }

    #topLeftBar {
        position: absolute;
        top: 30px;
        left: 30px;
        display: flex;
        align-items: center;
        gap: 35px;
    }

    .notification-wrapper {
        position: relative;
    }

    .notification-dot {
        position: absolute;
        top: 5px;
        right: 0px;
        width: 12px;
        height: 12px;
        background-color: #ff3b30;
        border-radius: 50%;
        border: 2px solid #121212;
    }

    #profileIcon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid white;
        transition: transform 0.2s ease;
    }

    #profileIcon:hover {
        transform: scale(1.05);
    }

    #dropdownMenu {
        display: none;
        position: absolute;
        right: 0;
                top: 100%;
                background-color: #1e1e1e;
        border: 1px solid #333;
        border-radius: 5px;
        padding: 10px;
        z-index: 1;
    }

    #notificationMenu {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        width: 320px;
        max-height: 400px;
        overflow-y: auto;
        background-color: #1e1e1e;
        border: 1px solid #333;
        border-radius: 8px;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
#settingsMenu {
    position: relative;
}

    #dropdownMenu a {
        color: white;
        display: block;
        padding: 5px 10px;
        text-decoration: none;
        cursor: pointer;
    }

    #dropdownMenu a:hover {
        background-color: #333;
    }

    #mainContent {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

#profileView,
#perfilEdit,
#accessibilityView {
        display: none;
        padding: 40px;
        background-color: #181818;
        border-radius: 10px;
        width: 300px;
    }

#profileView {
    width: 100%;
    max-width: 600px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.profile-header h3 {
    margin: 10px 0 0;
}

.profile-header #profileViewImg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.profile-header button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: -15px;
    right: -15px;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.profile-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
}

.profile-tab.active {
    color: white;
    border-bottom-color: #1da1f2;
}

.follow-list-container {
    max-height: 50vh;
    overflow-y: auto;
}

.follow-list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
}
.follow-list-item:hover { background-color: #2a2a2a; }
.follow-list-item img { width: 45px; height: 45px; border-radius: 50%; margin-right: 15px; }
.follow-list-item h4 { margin: 0; font-size: 16px; }
.follow-list-item p { margin: 0; font-size: 14px; color: #999; }

    .twinkle {
        background-color: #1e1e1e;
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 10px;
        width: 100%;
        position: relative; /* CORRECCIÓN: Permite posicionar el botón 'X' dentro de este contenedor */
        text-align: left;
    }

    .twinkle img {
        max-width: 100%;
        border-radius: 10px;
        margin-top: 10px;
    }

    .explicit {
        filter: blur(12px);
        transition: filter 0.3s ease;
    }

    .explicit:hover {
        filter: blur(0);
    }

    textarea, input[type="text"], input[type="date"] {
        width: 100%;
        background-color: #222;
        border: 1px solid #444;
        color: white;
        padding: 5px;
        border-radius: 5px;
    }

    input[type="file"] {
        display: none;
    }

    label {
        display: block;
        margin-top: 10px;
    }

    #customFileIcon {
        font-size: 24px;
        cursor: pointer;
        padding: 4px 10px;
        background-color: #2a2a2a;
        border-radius: 8px;
    }

    #emojiToggleBtn {
        font-size: 24px;
        cursor: pointer;
        background: none;
        border: none;
        color: white;
    }

    #emojiPicker {
        display: none;
        position: absolute;
        background-color: #1e1e1e;
        border: 1px solid #444;
        padding: 10px;
        border-radius: 10px;
        top: 100%;
        z-index: 2;
    }

    #emojiPicker span {
        cursor: pointer;
        font-size: 20px;
        padding: 2px;
    }

    #formControls {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        position: relative;
    }

    #accessibilityOptions {
        display: none;
        margin-top: 5px;
        font-size: 14px;
    }

    .toggle-switch {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .language-selector {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .font-size-selector > label { /* The main "Tamaño de fuente" label */
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .font-options {
        display: flex;
        gap: 20px;
    }

    .font-options label {
        display: flex;
        align-items: center;
        cursor: pointer;
        margin-top: 0; /* Override general label margin */
    }

    .font-options input[type="radio"] {
        margin-right: 5px;
        width: auto; /* Override general input styles */
    }

    body.font-size-small { font-size: 14px; }
    body.font-size-large { font-size: 20px; }

    #changePhotoBtn {
        margin-top: 10px;
        padding: 6px 12px;
        border: none;
        background-color: #2a2a2a;
        color: white;
        cursor: pointer;
        border-radius: 6px;
    }

    #changePhotoBtn:hover {
        background-color: #444;
    }

    /* Modo claro general */
    .light-mode {
        background-color: #f0f0f0;
        color: black;
    }

    /* Twinkles */
    .light-mode .twinkle {
        background-color: #ffffff;
        color: black;
        border: 1px solid #ccc;
    }

    /* Textareas e inputs */
    .light-mode textarea,
    .light-mode input[type="text"],
    .light-mode input[type="date"] {
        background-color: #ffffff;
        color: black;
        border: 1px solid #ccc;
    }

    /* Dropdown de perfil */
    .light-mode #dropdownMenu {
        background-color: #ffffff;
        border-color: #ccc;
    }

    .light-mode #dropdownMenu a {
        color: black;
    }

    .light-mode #dropdownMenu a:hover {
        background-color: #eee;
    }

    /* Contenedor Editar Perfil */
    .light-mode #perfilEdit,
    .light-mode #accessibilityView {
        background-color: #ffffff;
        color: black;
        border: 1px solid #ccc;
    }

    /* Botón Cambiar Foto */
    .light-mode #changePhotoBtn {
        background-color: #e0e0e0;
        color: black;
    }

    .light-mode #changePhotoBtn:hover {
        background-color: #ccc;
    }

    /* Botón de archivo (icono 📁) */
    .light-mode #customFileIcon {
        background-color: #e0e0e0;
        color: black;
    }

    /* Emoji picker */
    .light-mode #emojiPicker {
        background-color: #ffffff;
        border-color: #ccc;
    }

    .delete-twinkle-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: #888;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        padding: 0 5px;
        line-height: 1;
        transition: color 0.2s;
    }

    .delete-twinkle-btn:hover {
        color: #ff4444; /* Rojo al pasar el mouse */
    }

    .light-mode .delete-twinkle-btn { color: #aaa; }
    .light-mode .delete-twinkle-btn:hover { color: #d32f2f; }

    /* Menú contextual para Twinkles */
    #twinkleContextMenu {
        display: none;
        position: absolute;
        background-color: #2a2a2a;
        border: 1px solid #444;
        border-radius: 5px;
        padding: 5px 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        min-width: 150px;
    }

    #twinkleContextMenu button {
        background: none;
        border: none;
        color: #ff4444; /* Color rojo para la acción de eliminar */
        display: block;
        width: 100%;
        padding: 8px 15px;
        text-align: left;
        cursor: pointer;
    }

    #twinkleContextMenu button:hover {
        background-color: #333;
    }

    .light-mode #twinkleContextMenu { background-color: #ffffff; border-color: #ccc; }
    .light-mode #twinkleContextMenu button { color: #d32f2f; }
    .light-mode #twinkleContextMenu button:hover { background-color: #eee; }

    .comment-section {
        margin-top: 15px;
        background-color: #2a2a2a;
        border-radius: 8px;
        padding: 10px;
        font-size: 14px;
    }

    .comment-section h4 {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .comment-list {
        margin-bottom: 10px;
        max-height: 120px;
        overflow-y: auto;
    }

    .comment {
        margin-bottom: 6px;
        padding: 6px;
        background-color: #1e1e1e;
        border-radius: 6px;
    }

    .comment strong {
        color: #fdd835;
    }

    .comment-input {
        display: flex;
        gap: 6px;
    }

    .comment-input input {
        flex: 1;
        background-color: #222;
        border: 1px solid #444;
        padding: 5px;
        border-radius: 5px;
        color: white;
    }

    .comment-input button {
        background-color: #444;
        color: white;
        border: none;
        padding: 6px 10px;
        border-radius: 5px;
        cursor: pointer;
    }

    .comment-input button:hover {
        background-color: #666;
    }

    .light-mode .comment-section {
        background-color: #f0f0f0;
    }

    .light-mode .comment {
        background-color: #fff;
        border: 1px solid #ccc;
        color: black;
    }

    .light-mode .comment-input input {
        background-color: #fff;
        border: 1px solid #ccc;
        color: black;
    }

    .light-mode .comment-input button {
        background-color: #ddd;
        color: black;
    }

    .comment-toggle-btn {
        background-color: #1e1e1e;
        color: white;
        border: 1px solid #444;
        border-radius: 20px;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        margin-top: 10px;
    }

    .comment-toggle-btn:hover {
        background-color: #333;
    }

    .light-mode .comment-toggle-btn {
        background-color: #e0e0e0;
        color: black;
        border: 1px solid #ccc;
    }

    .light-mode .comment-toggle-btn:hover {
        background-color: #ccc;
    }

    .twinkle-footer {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .like-btn {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
    }

    .like-btn.liked {
        color: #ff5252;
    }

    .light-mode .like-btn {
        color: #333;
    }

    .light-mode .like-btn.liked {
        color: #ff5252;
    }

    /* Estilos para enlaces y vistas previas */
    .video-preview, .image-preview {
        margin: 10px 0;
        padding: 10px;
        background-color: #2a2a2a;
        border-radius: 8px;
    }

    .video-preview iframe {
        width: 100%;
        height: 315px;
        border: none;
        border-radius: 8px;
        margin-top: 8px;
    }

    .image-preview img {
        max-width: 100%;
        border-radius: 8px;
        margin-top: 5px;
    }

    .light-mode .video-preview,
    .light-mode .image-preview {
        background-color: #f0f0f0;
        border: 1px solid #ddd;
    }

    a {
        color: #1da1f2;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    .light-mode a {
        color: #1a73e8;
    }

    /* Clases para ocultar/mostrar elementos */
    .hidden {
        display: none !important;
    }

    /* Estilos para el modal de autenticación */
    .auth-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .auth-content {
        background-color: rgba(30, 30, 30, 0.85);
        backdrop-filter: blur(5px); /* Aumentamos el desenfoque para mejor legibilidad */
        border: 1px solid #444;
        padding: 30px;
        border-radius: 10px;
        width: 350px;
        max-width: 90%;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    }

    .auth-content h2 {
        text-align: center;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .auth-input-group {
        margin-bottom: 15px;
    }

    .auth-input-group label {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .auth-input-group input {
        width: 100%;
        padding: 8px;
        background-color: #222;
        border: 1px solid #444;
        color: white;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .auth-button {
        width: 100%;
        padding: 12px;
        background-color: #1da1f2;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin-top: 10px;
    }

    .auth-button:hover {
        background-color: #1a8cd8;
    }

    .auth-switch {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
    }

    .auth-switch a {
        color: #1da1f2;
        cursor: pointer;
        text-decoration: underline;
    }

    .error-message {
        color: #ff4444;
        margin-top: 10px;
        text-align: center;
        font-size: 14px;
    }

    .light-mode .auth-content {
        background-color: rgba(255, 255, 255, 0.85);
        color: black;
        border: 1px solid #ccc;
    }

    .light-mode .auth-input-group input {
        background-color: #ffffff;
        color: black;
        border: 1px solid #ccc;
    }

    .light-mode .auth-button {
        background-color: #1a73e8;
    }

    .light-mode .auth-button:hover {
        background-color: #1765cc;
    }

    .light-mode .error-message {
        color: #d32f2f;
    }

    /* Estilo para el campo de fecha */
    input[type="date"] {
        padding: 7px;
    }

    /* Ajustar el calendario en modo oscuro */
    .dark-mode-calendar::-webkit-calendar-picker-indicator {
        filter: invert(1);
    }

    .light-mode .dark-mode-calendar::-webkit-calendar-picker-indicator {
        filter: invert(0);
    }

    /* Estilos para el modal de shorts */
    .shorts-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    .shorts-container {
        width: 100%;
        max-width: 400px;
        height: 80vh;
        position: relative;
    }

    .shorts-iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 12px;
        overflow: hidden;
    }

    .shorts-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 1002;
    }

    #shortsBtn {
        background-color: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.7);
        padding: 8px 15px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.2s ease;
    }

    #shortsBtn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: white;
        transform: scale(1.05);
    }

    .light-mode #shortsBtn {
        color: black;
        border-color: rgba(0, 0, 0, 0.7);
    }

    .light-mode #shortsBtn:hover {
        background-color: rgba(0, 0, 0, 0.05);
        border-color: black;
    }

    /* Estilos para el mensaje de error de shorts */
    .shorts-error {
        color: white;
        text-align: center;
        padding: 20px;
        background-color: rgba(255, 0, 0, 0.3);
        border-radius: 10px;
        margin: 20px;
    }

    .shorts-error a {
        color: #1da1f2;
        text-decoration: underline;
    }

    /* Estilos para la animación de estrellas */
    .star-burst-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 1px;
        pointer-events: none;
        z-index: 9999;
    }

    .star-particle {
        position: absolute;
        width: 10px;
        height: 10px;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        animation: star-burst-anim 1s ease-out forwards;
    }

    @keyframes star-burst-anim {
        0% {
            transform: translate(0, 0) scale(0.8);
            opacity: 1;
        }
        100% {
            transform: translate(var(--tx), var(--ty)) scale(0);
            opacity: 0;
        }
    }

    /* Preview de imagen */
    #mediaPreviewContainer {
        margin-top: 10px;
        position: relative;
        max-width: 200px;
    }

    #mediaPreviewContainer img {
        max-width: 100%;
        border-radius: 10px;
    }

    #removeMediaBtn {
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: rgba(0,0,0,0.7);
        color: white;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        cursor: pointer;
        font-weight: bold;
        line-height: 24px;
        text-align: center;
    }
    
    .post-header {
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    /* Estilos para la tarjeta de perfil en hover */
    .user-mention {
        position: relative;
        display: inline-block;
        cursor: pointer;
        font-weight: bold;
    }
    
    .post-header-pfp {
        position: relative;
        display: inline-block;
        cursor: pointer;
    }

    .user-info-card {
        display: none;
        position: absolute;
        bottom: 110%; /* Posición inicial arriba del elemento */
        left: 0;
        background-color: #2a2a2a;
        border: 1px solid #444;
        border-radius: 8px;
        padding: 15px;
        width: 250px;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        transition: opacity 0.2s, bottom 0.2s;
        opacity: 0;
        pointer-events: none;
    }

    .user-mention:hover .user-info-card,
    .post-header-pfp:hover .user-info-card {
        display: block;
        opacity: 1;
        pointer-events: auto;
        bottom: calc(100% + 5px); /* Posición final al hacer hover */
    }

    .user-info-header {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .user-info-header img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .user-info-stats { display: flex; justify-content: space-around; text-align: center; font-size: 14px; }
    .user-info-stats div span { display: block; font-weight: bold; font-size: 16px; }
/* Estilos para la vista de mensajes */
    #messagesView {
        width: 100%;
        max-width: 900px; /* Ancho máximo para la vista de chat */
    }

    .messages-container {
        display: flex;
        height: 70vh; /* Altura fija para el contenedor de chat */
        border: 1px solid #444;
        border-radius: 8px;
        overflow: hidden;
    }

    #chatList {
        width: 35%;
        border-right: 1px solid #444;
        overflow-y: auto;
        background-color: #181818;
    }

    .chat-list-item {
        display: flex;
        align-items: center;
        padding: 15px;
        cursor: pointer;
        border-bottom: 1px solid #444;
    }

    .chat-list-item:hover, .chat-list-item.active {
        background-color: #2a2a2a;
    }

    .chat-list-item img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-right: 15px;
    }

    .chat-list-item-info {
        overflow: hidden;
    }

    .chat-list-item-info h4 {
        margin: 0;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chat-list-item-info p {
        margin: 0;
        font-size: 14px;
        color: #999;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #chatWindow {
        width: 65%;
        display: flex;
        flex-direction: column;
    }

    .chat-header {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        background-color: #1e1e1e;
        border-bottom: 1px solid #444;
    }

    .chat-header img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column-reverse; /* Mensajes nuevos abajo */
    }

    .message-bubble {
        max-width: 70%;
        padding: 10px 15px;
        border-radius: 18px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .message-bubble.sent {
        background-color: #1da1f2;
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }

    .message-bubble.received {
        background-color: #2a2a2a;
        color: white;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
    }

    .chat-input {
        display: flex;
        padding: 15px;
        border-top: 1px solid #444;
    }

    .chat-input input {
        flex: 1;
        background-color: #222;
        border: 1px solid #444;
        padding: 10px;
        border-radius: 20px;
        color: white;
        margin-right: 10px;
    }

    .chat-input button {
        background-color: #1da1f2;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
    }

    .chat-input button:hover {
        background-color: #1a8cd8;
    }

    #chatPlaceholder {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        color: #888;
        text-align: center;
    }

    /* Modo claro para mensajes */
    .light-mode #chatList {
        background-color: #f5f5f5;
        border-right-color: #ddd;
    }
    .light-mode .chat-list-item {
        border-bottom-color: #ddd;
    }
    .light-mode .chat-list-item:hover, .light-mode .chat-list-item.active {
        background-color: #e9e9e9;
    }
    .light-mode .chat-list-item-info p {
        color: #555;
    }
    .light-mode .chat-header {
        background-color: #f0f0f0;
        border-bottom-color: #ddd;
    }
    .light-mode .message-bubble.received {
        background-color: #e0e0e0;
        color: black;
    }
    .light-mode .chat-input {
        border-top-color: #ddd;
    }
    .light-mode .chat-input input {
        background-color: #fff;
        border-color: #ccc;
        color: black;
    }
    .light-mode .chat-input button {
        background-color: #1a73e8;
    }
    .light-mode .chat-input button:hover {
        background-color: #1765cc;
    }
    .light-mode .messages-container {
        border-color: #ddd;
    }

    .light-mode .notification-dot {
        border-color: #f0f0f0;
    }

    .chat-list-item.unread h4 {
        font-weight: bold;
        color: white;
    }
    .chat-list-item.unread p {
        color: #ddd;
        font-weight: 500;
    }
    .light-mode .chat-list-item.unread h4 {
        color: black;
    }
    .light-mode .chat-list-item.unread p {
        color: #333;
    }
    /* New Chat Button */
    .messages-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    .new-chat-button {
        background-color: #1da1f2;
        color: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 24px;
        line-height: 36px;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    .new-chat-button:hover {
        background-color: #1a8cd8;
    }

    /* Modal for New Chat */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .modal-content {
        background-color: #1e1e1e;
        border: 1px solid #444;
        padding: 20px;
        border-radius: 10px;
        width: 400px;
        max-width: 90%;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
    }
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #444;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    .modal-header h4 { margin: 0; }
    .close-modal-btn { background: none; border: none; color: #aaa; font-size: 24px; cursor: pointer; }
    .modal-body #userSearchInput { width: 100%; box-sizing: border-box; margin-bottom: 15px; }
    .user-list { overflow-y: auto; max-height: 50vh; }
    .user-list-item { display: flex; align-items: center; padding: 10px; cursor: pointer; border-radius: 8px; }
    .user-list-item:hover { background-color: #2a2a2a; }
    .user-list-item img { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; }

    .light-mode .new-chat-button { background-color: #1a73e8; }
    .light-mode .new-chat-button:hover { background-color: #1765cc; }
    .light-mode .modal-content { background-color: #fff; border-color: #ccc; }
    .light-mode .modal-header { border-bottom-color: #ddd; }
    .light-mode .user-list-item:hover { background-color: #f0f0f0; }

    /* Notification Menu Styles */
    .notification-item {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid #333;
        font-size: 14px;
        cursor: pointer;
    }
    .notification-item:last-child {
        border-bottom: none;
    }
    .notification-item:hover {
        background-color: #333;
    }
    .notification-icon {
        margin-right: 15px;
        font-size: 20px;
    }
    .notification-text strong {
        color: #1da1f2;
    }
    .no-notifications {
        padding: 20px;
        text-align: center;
        color: #888;
    }
    .light-mode .notification-item { border-bottom-color: #eee; }
    .light-mode .notification-item:hover { background-color: #f0f0f0; }
    .light-mode .notification-text strong { color: #1a73e8; }
    .light-mode #notificationMenu {
        background-color: #ffffff;
        border-color: #ccc;
    }