/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-image: url(../assets/background.png);
    background-size: cover; /* face imaginea să acopere tot ecranul */
    background-position: center; /* centrează imaginea */
    background-repeat: no-repeat; /* previne repetarea imaginii */
    background-attachment: fixed; /* face imaginea fixă la scroll */
    color: white;
    min-height: 100vh;
}

/* Open image layout */
.open-img-layout {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.img-layout-container {
    position: relative;
}

.img-layout-container button {
    position: absolute;
    top: -8px;
    right: -44px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.4);
    transition: all 0.2s ease;
}

.img-layout-container button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.5);
}

.img-layout-container img {
    max-width: 700px;
    max-height: 500px;
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Container Layout */
.container {
    display: flex;
    gap: 0;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

/* Left Sidebar Styles */
.sidebar {
    width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 180px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #e91e63;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #333;
}

.nav-item i {
    margin-right: 15px;
    width: 20px;
}

.nav-item.active {
    background-color: #333;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    .main-content {
        max-width: calc(100% - 250px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .nav-item span {
        display: none;
    }
    .main-content {
        margin-left: 70px;
        max-width: calc(100% - 70px);
    }
    .logo img {
        max-width: 40px;
    }
}
/* Messages Interface Styles */
.avatar-initial {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c1f26 0%, #2a1a2e 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: 2px solid #e91e63;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.3), 0 0 0 2px #0d0f12;
    margin-right: 0;
    transition: box-shadow 0.3s ease;
}

.avatar-initial:hover {
    box-shadow: 0 0 14px rgba(233, 30, 99, 0.5), 0 0 0 2px #0d0f12;
}

.messages-container {
    flex: 1;
    margin-top: 20px;
    margin-left: 250px;
    margin-bottom: 20px;
    display: flex;
    height: calc(100vh - 40px);
    background: rgba(12, 12, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(233, 30, 99, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(233, 30, 99, 0.05);
}

.chat-info {
    display: none;
    position: absolute;
    transform: translateX(-100%);
    width: 160px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgba(20, 20, 28, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 30, 99, 0.15);
    border-radius: 10px;
    padding: 8px;
    z-index: 1000;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.chat-info p {
    color: #ff4d6d;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chat-info p:hover {
    background-color: rgba(233, 30, 99, 0.15);
    color: #ff6b8a;
}

/* Conversations List */
.conversations-list {
    width: 320px;
    border-right: 1px solid rgba(233, 30, 99, 0.1);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

.conversations-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    background: rgba(233, 30, 99, 0.03);
}

.conversations-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.new-message-btn {
    background: none;
    border: none;
    color: #e91e63;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.new-message-btn:hover {
    background: rgba(233, 30, 99, 0.15);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
}

/* Conversations */
.conversations {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 99, 0.3) transparent;
}

.conversations::-webkit-scrollbar {
    width: 4px;
}

.conversations::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.3);
    border-radius: 4px;
}

.conversations::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-item {
    position: relative;
    display: flex;
    padding: 14px 20px;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid transparent;
}

.conversation-item:hover {
    background: rgba(233, 30, 99, 0.08);
    border-left-color: rgba(233, 30, 99, 0.4);
}

.conversation-item.active {
    background: linear-gradient(90deg, rgba(233, 30, 99, 0.15) 0%, rgba(233, 30, 99, 0.05) 100%);
    border-left-color: #e91e63;
}

.conversation-item.unread .last-message {
    color: white;
    font-weight: 600;
}

.conversation-item.unread {
    background: rgba(233, 30, 99, 0.05);
}

.conversation-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.conversation-avatar img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(233, 30, 99, 0.2);
    transition: border-color 0.3s ease;
}

.conversation-item:hover .conversation-avatar img {
    border-color: rgba(233, 30, 99, 0.5);
}

.online-status {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #00e676;
    border-radius: 50%;
    border: 2px solid rgba(12, 12, 18, 0.9);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.4);
}

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

.conversation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-info h3 a {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.conversation-info h3 a:hover {
    color: #e91e63;
}

.last-time {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.last-message {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.last-message span {
    color: #8aff00;
}

.unread-conv {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

#newConversationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.new-conversation-box {
    background: rgba(18, 18, 24, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 30, 99, 0.15);
    padding: 16px;
    border-radius: 16px;
    min-width: 360px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(233, 30, 99, 0.05);
}

#search-results {
    margin-top: 10px;
}

.search-bar {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(233, 30, 99, 0.25);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus-within {
    border-color: rgba(233, 30, 99, 0.5);
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.15);
}

.search-bar i {
    color: #e91e63;
}

.search-bar input {
    padding-left: 8px;
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: #666;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 320px);
    background: rgba(255, 255, 255, 0.01);
}

#back-btn {
    display: none;
}

/* Chat Header */
.chat-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    background: rgba(233, 30, 99, 0.03);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
}

.chat-user-info h3 a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.2s ease;
}

.chat-user-info h3 a:hover {
    color: #e91e63;
}

.chat-user-info div:nth-child(2) {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-user-info img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(233, 30, 99, 0.25);
    object-fit: cover;
}

.user-details h3 {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.typing-indicator.active {
    display: flex;
    height: auto;
    opacity: 1;
}

.typing-text {
    font-size: 12px;
    color: #e91e63;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e91e63;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-actions {
    position: relative;
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: rgba(233, 30, 99, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: rgba(233, 30, 99, 0.12);
    color: #e91e63;
    transform: scale(1.1);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 99, 0.25) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.3);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.5);
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.message-date-header {
    text-align: center;
    margin: 20px 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-date-header::before,
.message-date-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.2), transparent);
}

.message-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.message-group.own {
    align-items: flex-end;
}

.message {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.message:hover {
    transform: translateY(-1px);
}

.message img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.more-btn {
    display: none;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: -38px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.more-btn:hover {
    background-color: rgba(233, 30, 99, 0.15);
    color: #e91e63;
}

.more-info {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    width: 155px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgba(20, 20, 28, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 30, 99, 0.15);
    border-radius: 10px;
    padding: 6px;
    z-index: 1000;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.more-info p {
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
    transition: all 0.15s ease;
}

.more-info p:hover {
    background-color: rgba(233, 30, 99, 0.12);
    color: white;
}

.message p {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}

.message.received p {
    color: #e8e8e8;
}

.message.sent p {
    color: #ffffff;
}

.edit-textarea {
    background: transparent;
    color: white;
    font-size: 14px;
    padding: 5px;
}

.message-time {
    color: #666;
    font-size: 10px;
    margin-top: 4px;
    margin-left: 50px;
    display: block;
    text-align: right;
    font-weight: 500;
}

.message.received {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 6px;
}

.message.sent {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.25) 0%, rgba(194, 24, 91, 0.2) 100%);
    border: 1px solid rgba(233, 30, 99, 0.15);
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.08);
}

.message.sent:hover {
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

/* Chat Input */
.chat-input {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(233, 30, 99, 0.1);
    background: rgba(233, 30, 99, 0.02);
    position: relative;
}

/* Voice Recording */
.voice-record-btn {
    position: relative;
}

.voice-record-btn.recording {
    color: #ff4d6d !important;
    animation: pulse-mic 1.2s infinite;
}

@keyframes pulse-mic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.voice-recording-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 0 0 16px 0;
}

.voice-recording-overlay.active {
    display: flex;
}

.voice-recording-ui {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    width: 100%;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
}

.voice-wave span {
    display: block;
    width: 3px;
    height: 8px;
    background: #e91e63;
    border-radius: 2px;
    animation: voice-bar 0.8s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.15s; }
.voice-wave span:nth-child(3) { animation-delay: 0.3s; }
.voice-wave span:nth-child(4) { animation-delay: 0.45s; }
.voice-wave span:nth-child(5) { animation-delay: 0.6s; }

@keyframes voice-bar {
    0%, 100% { height: 8px; opacity: 0.5; }
    50% { height: 24px; opacity: 1; }
}

.voice-timer {
    color: #e91e63;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    flex: 1;
}

.voice-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #aaa;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.voice-cancel-btn:hover {
    background: rgba(255, 77, 109, 0.15);
    color: #ff4d6d;
}

.voice-send-btn {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
    transition: all 0.25s ease;
}

.voice-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.45);
}

/* Voice Message Player in chat */
.voice-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    min-width: 200px;
}

.voice-play-btn {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.voice-play-btn:hover {
    transform: scale(1.1);
}

.voice-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.voice-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #ff4081);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.voice-duration {
    font-size: 11px;
    color: #888;
    font-variant-numeric: tabular-nums;
}

.message.received .voice-play-btn {
    background: rgba(255, 255, 255, 0.15);
}

.message.received .voice-progress-fill {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
}

.input-action {
    background: none;
    border: none;
    color: rgba(233, 30, 99, 0.7);
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.25s ease;
    border-radius: 50%;
}

.input-action:hover {
    color: #e91e63;
    transform: scale(1.15);
    background: rgba(233, 30, 99, 0.08);
}

.input-container {
    position: relative;
    flex: 1;
}

.input-buttons {
    position: absolute;
    top: 0;
    right: 5px;
    display: flex;
    align-items: center;
}

#chatInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: 24px;
    color: white;
    padding: 12px 80px 12px 18px;
    font-size: 14px;
    font-family: "Segoe UI", "Roboto", Arial, sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

#chatInput:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(233, 30, 99, 0.35);
    box-shadow: 0 0 16px rgba(233, 30, 99, 0.1);
}

#img-preview-container {
    position: absolute;
    width: 100%;
    background: rgba(20, 20, 28, 0.95);
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: 16px 16px 0 0;
    color: white;
    padding: 12px;
    font-size: 14px;
    top: 0;
    transform: translateY(-100%);
    display: none;
    flex-flow: row wrap;
    gap: 10px;
    backdrop-filter: blur(8px);
}

.chat-input input::placeholder {
    color: #666;
}

.input-action.send {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
    transition: all 0.25s ease;
}

.input-action.send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.45);
    background: linear-gradient(135deg, #f02b74, #d81b60);
}

#emojiPicker {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 40px;
    background: rgba(20, 20, 28, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 30, 99, 0.15);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.emoji-btn:hover {
    transform: scale(1.4);
}

#block-message {
    display: none;
    color: #ff4d6d;
    font-size: 0.8em;
    font-weight: 500;
}

#unblock-message {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8em;
    display: none;
}

#unblock-message p {
    color: #ff4d6d;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    font-weight: 500;
}

#unblock-message button {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

#unblock-message button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.45);
}

.img-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid rgba(233, 30, 99, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

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

.img-preview-div {
    position: relative;
    width: fit-content;
}

.img-preview-close {
    position: absolute;
    right: -4px;
    top: -4px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    transition: all 0.2s ease;
    border: none;
}

.img-preview-close:hover {
    cursor: pointer;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.5);
}

/* Media Queries */
@media (max-width: 1400px) {
    .messages-container {
        width: calc(100% - 400px);
        left: calc(50% + 60px);
    }
}

@media (max-width: 768px) {
    .messages-container {
        width: calc(100% - 100px);
        left: calc(50% + 20px);
        margin-left: 35px;
        border-radius: 12px;
    }

    .conversations-list {
        width: 250px;
    }

    .chat-area {
        max-width: calc(100% - 250px);
    }

    .message {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .messages-container {
        width: calc(100% - 90px);
        left: 50%;
        margin-left: 35px;
    }

    .message {
        max-width: 88%;
    }
}
/* Search bar */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-start;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 600px;
    background: rgba(16, 16, 22, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 30, 99, 0.12);
    margin-top: 20px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

.search-header i {
    color: #e91e63;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    outline: none;
}

.search-input::placeholder {
    color: #555;
}

.close-search {
    background: none;
    border: none;
    color: rgba(233, 30, 99, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-search:hover {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.search-section {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
}

.search-section h3 {
    color: #e91e63;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.search-item:hover {
    background-color: rgba(233, 30, 99, 0.1);
}

.item-meta {
    color: #e91e63;
    font-size: 13px;
}

/* Modificăm butonul de search din sidebar să fie button în loc de link */
.search-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
    .search-container {
        margin: 0;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }

    .search-results {
        max-height: calc(100vh - 70px);
    }
}

.cancel-btn {
    font-weight: bold;
    border: none;
    background-color: transparent;
    color: #e91e63;
    font-size: 22px;
    text-align: right;
    width: 100%;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.cancel-btn:hover {
    background: none !important;
    color: #ff4081;
}

.cancel-btn i:hover {
    cursor: pointer;
}

.toast-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-message.success {
    background: rgba(40, 167, 69, 0.9);
    border-color: rgba(40, 167, 69, 0.3);
}
.toast-message.error {
    background: rgba(220, 53, 69, 0.9);
    border-color: rgba(220, 53, 69, 0.3);
}

.select-report {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}
