/* messages.css */

.messages-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.messages-header {
    background-color: var(--second-bg);
    padding: 15px;
    border-bottom: 1px solid var(--linecolor);
}

.messages-header h2 {
    margin: 0;
    color: var(--color-black);
}

.conversations-list {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--linecolor);
    text-decoration: none;
    color: var(--color-black);
    transition: background-color 0.3s;
}

.conversation-item:hover {
    background-color: var(--second-bg);
}

.conversation-profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.conversation-details {
    flex: 1;
}

.conversation-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.conversation-last-message {
    font-size: 0.9em;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.conversation-time {
    font-size: 0.8em;
    color: #888;
    white-space: nowrap;
}

.lock-container {
    display: flex; /* Flexbox elrendezés */
    align-items: center; /* Vertikális középre igazítás */
    justify-content: center; /* Horizontális középre igazítás */
    margin: 15px 0; /* Margó a zár gomb körül */
}

.lock-label {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(80, 80, 80);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.lock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
}

.shackle {
    background-color: transparent;
    height: 9px;
    width: 14px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    border-right: 3px solid white;
    transition: all 0.3s;
}

.lock-body {
    width: 15px;
}

#lock {
    display: none;
}

#lock:checked + .lock-label .lock-wrapper .shackle {
    transform: rotateY(150deg) translateX(3px);
    transform-origin: right;
}

#lock:checked + .lock-label {
    background-color: rgb(167, 71, 245);
}

.lock-label:active {
    transform: scale(0.9);
}


