body {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('imagenes/12_logo.png') center/cover no-repeat fixed;
    color: white;
    margin: 0 2px;
    padding-bottom: 100px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.message-box {
    margin-top: 10px;
    max-height: 340px;
    padding: 4px;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    overflow-y: auto;
}

.message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    width: 100%;
    box-sizing: border-box;
}

.message.fixed {
    color: gold;
    border-left: 3px solid #28a745;
}

.message-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.message-content {
    flex-grow: 1;
    padding-right: 10px;
    word-break: break-word;
    font-size: 0.9em;
}

.message-content strong {
    color: #ffffff;
    margin-right: 8px;
}

.message-content a {
    color: #1e90ff;
    text-decoration: underline;
    word-break: break-all;
}

.message-content a:hover {
    color: #63b8ff;
}

.message-content.date-message {
    color: #1e90ff; /* Azul para la fecha */
    font-weight: bold;
    text-align: right; /* Alinea la fecha a la derecha */
    width: 100%; /* Asegura que ocupe todo el ancho */
    font-size: 0.7em; /* Tamaño reducido, igual que la hora */
}

.message .message-time {
    font-size: 0.7em; /* Tamaño reducido para la hora */
    color: #1e90ff; /* Azul para la hora */
    margin-right: 5px;
}

.fix-button, 
.delete-button {
    padding: 2px 6px;
    font-size: 0.7em;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    min-width: auto;
    margin: 0;
    display: inline-block;
    height: 18px;
    line-height: 14px;
    box-sizing: border-box;
}

.fix-button {
    background-color: #28a745;
    color: white;
}

.delete-button {
    background-color: #dc3545;
    color: white;
}

.groups-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tab {
    padding: 3px 6px;
    background: #2a2a2a;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7em;
    transition: background 0.3s ease;
    color: white;
}

.tab.active {
    background: #28a745 !important;
}

.tab.event {
    background: #2a2a2a !important;
}

.tab.event.active {
    background: #fe5016 !important;
    color: white;
}

.tab.personal {
    background: #b3e5fc;
}

.tab.personal.active {
    background: #81d4fa !important;
    color: #1b1919 !important;
}

.input-container {
    position: fixed;
    bottom: 0px;
    left: 2px;
    right: 2px;
    display: flex;
    gap: 2px;
    background: #1b1919;
    padding: 5px 2px;
    border-radius: 5px;
    align-items: center;
}

textarea {
    flex-grow: 1;
    background-color: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    padding: 8px;
    resize: none;
    height: 40px;
    margin-right: 2px;
}

button {
    background-color: #28a745;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    min-width: 60px;
    font-size: 0.9em;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-rating {
    background-color: #1c3237;
    padding: 2px;
    border-radius: 5px;
    display: none;
    gap: 1px;
    flex-direction: column;
    align-items: flex-start;
    max-width: 120px !important;
    flex-shrink: 0;
    margin-left: 0 !important;
    height: 60px;
    box-sizing: border-box;
}

.input-container button {
    min-width: 40px;
    width: 40px;
    padding: 0;
}

.event-rating.visible {
    display: flex !important;
}

.rating-label {
    font-size: 0.7em;
    color: #aaa;
    white-space: nowrap;
}

.rating-buttons {
    display: flex;
    flex-direction: row;
    gap: 2px;
    width: 100%;
    justify-content: center;
}

.rating-button {
    display: flex;
    align-items: center;
    gap: 1px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    padding: 1px 2px;
    flex: 1;
    justify-content: center;
    box-sizing: border-box;
}

.rating-button.active-like {
    color: #28a745 !important;
}

.rating-button.active-dislike {
    color: #dc3545 !important;
}

.rating-button:hover {
    color: #888;
}

.own-username {
    color: #ff4444 !important;
    text-shadow: 0 0 3px rgba(255, 68, 68, 0.3);
}

.event-logo {
    width: 100%;
    max-width: 80px;
    height: auto;
    max-height: 100%;
    margin-left: 0;
    border-radius: 5px;
    display: none;
    object-fit: contain;
}

@media (max-width: 480px) {
    .tab {
        font-size: 0.65em;
        padding: 2px 4px;
    }
}