* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: #e9ebee;
}

/* ========================= */
/* FACEBOOK 2014 TOP BAR     */
/* ========================= */

#fb-header {
  background: #3b5998;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  color: #fff;
}

/* LEFT SIDE */

.header-left {
  display: flex;
  align-items: center;
  margin-left: 200px;
}

.fb-logo {
  height: 40px;
  margin-right: 20px;
  cursor: pointer;
}

/* SEARCH BAR */

.search-wrapper {
  position: relative;
}

.search {
  padding: 5px 28px 5px 8px;
  font-size: 12px;
  border: none;
  border-radius: 2px;
  width: 520px;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url('../img/search.png');
  background-size: cover;
  opacity: 0.6;
}

/* RIGHT SIDE */

.header-right {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-right: 300px;
}

/* PROFILE THUMB + NAME */

.profile {
  display: flex;
  align-items: center;
  margin-right: 10px;
  cursor: pointer;
}

.profile-thumb {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  margin-right: 4px;
  object-fit: cover;
}

.profile-name {
  font-weight: bold;
}

/* HOME LINK */

.header-link {
  margin-right: 6px;
  cursor: pointer;
}

/* ICONS */

.header-icon {
  width: 24px;
  height: 24px;
  margin-right: 4px;
  cursor: pointer;
  background-size: cover;
  opacity: 0.9;
}

.header-icon:hover {
  opacity: 1;
}

/* ICON IMAGES */

.icon-friends {
  background-image: url('../img/icon_friends.png');
}

.icon-messages {
  background-image: url('../img/icon_messages.png');
}

.icon-notifications {
  background-image: url('../img/icon_notifications.png');
}

.icon-privacy {
  background-image: url('../img/icon_privacy.png');
}

.icon-settings {
  background-image: url('../img/icon_settings.png');
}

/* ========================= */
/* MAIN LAYOUT               */
/* ========================= */

#fb-main {
  display: flex;
  width: 980px;
  margin: 10px auto;
}

/* LEFT SIDEBAR (INDEX ONLY) */

#left-sidebar {
  width: 180px;
  margin-right: 10px;
}

.left-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.left-menu li {
  padding: 5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.left-menu li:hover {
  background: #d8dfea;
}

/* ========================= */
/* FEED                      */
/* ========================= */

#feed {
  width: 520px;
  margin-right: 10px;
}

/* COMPOSER */

.composer {
  background: #fff;
  border: 1px solid #d3d6db;
  border-radius: 3px;
  margin-bottom: 10px;
}

.composer-top {
  display: flex;
  padding: 8px;
  border-bottom: 1px solid #e9ebee;
}

.composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  margin-right: 8px;
}

.composer textarea {
  width: 100%;
  border: none;
  resize: none;
  font-size: 13px;
  outline: none;
}

.composer-bottom {
  padding: 6px 8px;
  text-align: right;
}

.composer-bottom button {
  background: #3b5998;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 2px;
  cursor: pointer;
}

/* POSTS */

.post {
  background: #fff;
  border: 1px solid #d3d6db;
  border-radius: 3px;
  margin-bottom: 10px;
  font-size: 13px;
}

.post-header {
  display: flex;
  padding: 8px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  margin-right: 8px;
}

.post-author {
  font-weight: bold;
  color: #1d2129;
}

.post-time {
  font-size: 11px;
  color: #90949c;
}

.post-body {
  padding: 0 8px 8px 8px;
  color: #1d2129;
}

.post-actions {
  padding: 4px 8px;
  border-top: 1px solid #e9ebee;
  font-size: 12px;
  color: #4b4f56;
}

.post-actions span {
  margin-right: 15px;
  cursor: pointer;
}

.post-actions span:hover {
  text-decoration: underline;
}

/* ========================= */
/* RIGHT SIDEBAR (GLOBAL)    */
/* ========================= */

#right-column {
  position: fixed;
  top: var(--rightColumnTop, 40px);
  right: 0;
  width: 250px;
  height: calc(100% - var(--rightColumnTop, 40px));
  border-left: 1px solid #d3d6db;
  display: flex;
  flex-direction: column;
  background: #f5f6f7;
  transition: top 0.3s ease;
}


/* Sponsored */

.right-section {
  padding: 10px;
}

.sponsored-item {
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #d3d6db;
  margin-bottom: 8px;
}

.sponsored-img {
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
}

/* Divider */

.right-divider {
  height: 1px;
  background: #d3d6db;
  margin: 0 10px;
}

/* Contacts */

#contacts-block {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.friend-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
  cursor: pointer;
}

.friend-item:hover {
  background: #e9ebee;
}

.friend-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
}

.friend-name {
  font-size: 13px;
  color: #1d2129;
}

/* Search box in Contacts */

#friendSearch {
  width: 100%;
  padding: 6px;
  margin-top: 10px;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  font-size: 12px;
}

/* ========================= */
/* PROFILE PAGE              */
/* ========================= */

#profile-wrapper {
  width: 851px;
  margin: 10px auto;
}

#cover-photo {
  height: 315px;
  background: #999;
  position: relative;
  border: 4px solid #fff;
}

#profile-avatar {
  width: 168px;
  height: 168px;
  border-radius: 4px;
  border: 4px solid #fff;
  position: absolute;
  bottom: -42px;
  left: 20px;
  background-size: cover;
  background-position: center;
}

#profile-name {
  position: absolute;
  bottom: 20px;
  left: 210px;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.7);
}

#profile-main {
  display: flex;
  margin-top: 60px;
}

.profile-left {
  width: 320px;
  margin-right: 10px;
}

.profile-right {
  flex: 1;
}

.profile-box {
  background: #fff;
  border: 1px solid #d3d6db;
  border-radius: 3px;
  padding: 8px;
  margin-bottom: 10px;
}

/* ========================= */
/* EMAIL CONFIRMATION BANNER */
/* ========================= */

.email-banner {
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid;
}

.email-banner.yellow {
  background: #fff8c4;
  border-color: #f2d600;
  color: #8a6d00;
}

.email-banner.green {
  background: #d4edda;
  border-color: #9cd3a4;
  color: #155724;
}

.resend-btn {
  background: transparent;
  border: none;
  color: #0056b3;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
}

/* Sidebar transparent */
#right-column {
    background: transparent !important;
}

/* Contacts scroll */
#contacts-block {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

#friendSearch {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    font-size: 12px;
}

/* Edit icons for avatar & cover */
.edit-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: 0.2s;
}

.edit-icon:hover {
  background: #fff;
}

.edit-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

/* Positioning */
#edit-avatar-btn {
  bottom: -10px;
  left: 150px;
}

#edit-cover-btn {
  bottom: 20px;
  right: 20px;
}

/* Modal styling */
#photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modal-photo {
  max-width: 70%;
  max-height: 80%;
  border-radius: 4px;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.modal-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Live search dropdown */
.search-results {
  position: absolute;
  top: 30px; /* sub input */
  left: 0;
  width: 520px;
  background: #fff;
  border: 1px solid #d3d6db;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 5000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
}

.search-result-item:hover {
  background: #f5f6f7;
}

.search-result-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
}

.search-result-name {
  font-size: 13px;
  color: #1d2129;
}

.search-result-email {
  font-size: 11px;
  color: #777;
}

/* Notification badges */
.header-icon-wrapper {
  position: relative;
  display: inline-block;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e41e3f;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* Right dropdown menu */
#right-menu {
  position: absolute;
  top: 40px;
  right: 10px;
  width: 180px;
  background: #fff;
  border: 1px solid #d3d6db;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  z-index: 9999;
}

.right-menu-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #1d2129;
  cursor: pointer;
}

.right-menu-item:hover {
  background: #f5f6f7;
}

/* --- DROPDOWN BOX (Friends, Messages, Notifications, Settings) --- */
/* Dropdown general */
.dropdown-box {
    position: absolute;
    background: #fff;
    border: 1px solid #d3d6db;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
    width: 220px; /* mai mic */
}

/* Titlu dropdown */
.dropdown-title {
    padding: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #1d2129;
    border-bottom: 1px solid #e5e6e9;
    background: #f5f6f7;
}

/* Item normal */
.dropdown-item {
    padding: 8px;
    font-size: 13px;
    color: #1d2129;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f6f7;
}

/* Empty state */
.dropdown-empty {
    padding: 10px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

.friend-request-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: default;
}

.friend-request-item:hover {
    background: #f5f6f7;
}

.friend-request-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.friend-request-name {
    font-size: 13px;
    color: #1d2129;
    font-weight: bold;
}

.friend-request-buttons {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.friend-request-buttons button {
    padding: 4px 6px;
    font-size: 11px;
    border: 1px solid #ccd0d5;
    background: #f5f6f7;
    border-radius: 2px;
    cursor: pointer;
}

.friend-request-buttons button:hover {
    background: #e9ebee;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.search-result-info {
    flex-grow: 1;
    cursor: pointer;
}

.search-add-form {
    margin-left: auto;
}

.add-friend-btn {
    padding: 6px 10px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.add-friend-btn:hover {
    background: #145dbf;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 6px;
    cursor: pointer;
    position: relative;
}

.friend-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 6px;
}


.online-dot, .offline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.online-dot {
    background: #31a24c;
}

.offline-dot {
    background: #999;
}

.friend-name {
    font-size: 13px;
    flex-grow: 1;
}

.friend-status {
    font-size: 11px;
    margin-left: auto;
    white-space: nowrap;
}

.online-text {
    color: #31a24c;
    font-weight: bold;
}

.offline-text {
    color: #777;
}

/* ========================= */
/* FIX CONTACTS SIDEBAR      */
/* ========================= */

/* Container prieten */
/* ========================= */
/* BULINA VERDE PESTE AVATAR */
/* ========================= */

.friend-item {
    position: relative; /* necesar pentru poziționarea bulinei */
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.friend-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    margin-right: 6px !important;
    position: relative;
}

/* Bulina verde peste avatar */
.online-dot {
    position: absolute;
    bottom: 6px;   /* poziție verticală */
    left: 26px;    /* poziție orizontală */
    width: 10px !important;
    height: 10px !important;
    background: #31a24c !important;
    border-radius: 50% !important;
    border: 2px solid #fff; /* contur alb ca pe Messenger */
    display: block !important;
    z-index: 10;
}


/* TOP BLUE BAR */
#login-top { 
    background: #3b5998; 
    height: 82px; 
    display: flex; 
    align-items: center; 
}

.login-top-inner { 
    width: 980px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.login-logo-top { 
    height: 48px; 
    margin-top: 5px;
}

.login-top-form { 
    display: flex; 
    align-items: flex-end; 
    gap: 14px; 
}

.login-top-field label { 
    color: #fff; 
    font-size: 12px; 
    margin-bottom: 2px;
}

.login-top-field input { 
    padding: 4px; 
    font-size: 12px; 
    border: 1px solid #1d2a5b; 
    border-radius: 2px; 
    width: 150px;
}

.btn-login-small { 
    background: #4267b2; 
    color: #fff; 
    border: none; 
    padding: 4px 12px; 
    font-size: 12px; 
    border-radius: 2px; 
    cursor: pointer; 
}

/* MAIN LAYOUT */
#login-main { 
    width: 980px; 
    margin: 40px auto; 
    display: flex; 
    justify-content: space-between; 
}

/* LEFT SIDE */
.login-left h2 { 
    font-size: 28px; 
    color: #1c1e21; 
    margin-bottom: 20px; 
    line-height: 32px;
}

.network-img { 
    width: 500px; 
    margin-top: 20px;
}

/* RIGHT SIDE */
.login-right { 
    width: 380px; 
   
    padding: 20px; 
    border-radius: 6px; 
    
}

.login-right h1 { 
    margin: 0; 
    font-size: 36px; 
    font-weight: bold;
}

.login-right h3 { 
    margin-top: 5px; 
    color: #606770; 
    font-size: 20px; 
    font-weight: normal;
}

/* ERROR BOX */
.error-box { 
    background: #ffebe8; 
    border: 1px solid #dd3c10; 
    padding: 10px; 
    margin-bottom: 10px; 
    color: #333; 
    border-radius: 4px; 
}

/* FORM FIELDS */
.name-row { 
    display: flex; 
    gap: 10px; 
}

.name-row input { 
    flex: 1; 
}

#register-form input, 
#register-form select { 
    width: 100%; 
    padding: 10px; 
    margin-top: 10px; 
    border: 1px solid #ccd0d5; 
    border-radius: 4px; 
    font-size: 14px; 
}

/* LABELS */
.label-small { 
    margin-top: 12px; 
    font-size: 12px; 
    color: #606770; 
}

/* BIRTHDAY */
.birthday-row { 
    display: flex; 
    gap: 10px; 
}

/* GENDER */
.gender-row { 
    display: flex; 
    gap: 10px; 
    margin-top: 10px; 
}

.gender-option { 
   
    padding: 8px 12px; 
    border-radius: 4px; 
     
    display: flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer; 
    font-size: 14px;
}

/* SIGN UP BUTTON — DARK GREEN LIKE ORIGINAL */
.btn-create-big { 
    width: 100%; 
    background: #5b8a3c; /* verde închis original FB 2014 */
    color: #fff; 
    padding: 12px; 
    border: none; 
    border-radius: 6px; 
    font-size: 20px; 
    font-weight: bold;
    margin-top: 15px; 
    cursor: pointer; 
}

.btn-create-big:hover { 
    background: #4a732f; 
}

:root {
    --rightColumnTop: 40px; /* header normal */
}

body.has-banner {
    --rightColumnTop: 90px; /* header + banner */
}



.friend-item:hover {
    background-color: #e5e6e9;
    cursor: pointer;
}

/* ========================= */
/* CHAT WINDOW FINAL VERSION */
/* ========================= */

.chat-window {
    position: fixed;
    bottom: 0;
    right: 260px;
    width: 330px;
    height: 420px;
    background: #f0f2f5;
    border: 1px solid #ccc;
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 99999;
}

/* HEADER */
.chat-header {
    background: #3b5998;
    color: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

.chat-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
}

.chat-header-name {
    flex: 1;
    font-weight: bold;
}

.chat-close {
    font-size: 20px;
    cursor: pointer;
    padding: 0 6px;
}

/* CALL BUTTONS (Messenger 2020 style) */
.chat-call,
.chat-video,
.chat-like,
.chat-upload {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    cursor: pointer;
    background-size: cover;
    opacity: 0.9;
}

.chat-emoji:hover,
.chat-call:hover,
.chat-video:hover,
.chat-like:hover {
    opacity: 1;
}

.chat-emoji {
    background-image: url('../img/emoji.png');
}

.chat-like {
    background-image: url('../img/chat_like_white.png');
}
.chat-upload {
    background-image: url('../img/chat_upload_white.png');
}
.chat-video {
    background-image: url('../img/chat_video_white.png');
}
.chat-call {
    background-image: url('../img/chat_call_white.png');
}

/* MESSAGES */
.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.msg-me, .msg-them {
    display: flex;
    margin: 6px 0;
    align-items: flex-end;
}

.msg-me {
    justify-content: flex-end;
}

.msg-them {
    justify-content: flex-start;
}

.msg-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin: 0 6px;
}

.msg-bubble {
    max-width: 70%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
    word-break: break-word;
}

.msg-me .msg-bubble {
    background: #1877f2;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.msg-them .msg-bubble {
    background: #e4e6eb;
    color: #000;
    border-bottom-left-radius: 2px;
}

/* CHAT IMAGES */
.chat-image {
    max-width: 180px;
    border-radius: 6px;
    margin-top: 6px;
    display: block;
}

/* INPUT */
.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    background: #fff;
}

.chat-input button {
    background: #3b5998;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

/* SEEN AVATAR */
.seen-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: 4px;
}

/* TYPING INDICATOR */
.typing-indicator {
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.typing-dots {
    width: 30px;
    height: 10px;
    background: url('img/typing.gif');
    background-size: contain;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.typing-dots {
    width: 30px;
    height: 10px;
    display: flex;
    justify-content: space-between;
    margin-left: 5px;
}

.typing-dots::before,
.typing-dots::after,
.typing-dots div {
    content: "";
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typingBlink 1.4s infinite ease-in-out;
}

.typing-dots::before {
    animation-delay: 0s;
}

.typing-dots div {
    animation-delay: 0.2s;
}

.typing-dots::after {
    animation-delay: 0.4s;
}

@keyframes typingBlink {
    0% { opacity: 0.2; transform: translateY(0px); }
    20% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 0.2; transform: translateY(0px); }
}

.msg-bubble {
    position: relative;
}

.msg-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    background: #f02849;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.msg-video {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 6px;
}

.msg-file {
    display: inline-block;
    padding: 6px 10px;
    background: #e4e6eb;
    border-radius: 6px;
    margin-top: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #000;
}

#img-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#img-lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 6px;
}

#img-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* AUTO-RESIZE IMAGES */
.msg-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 6px;
    object-fit: contain;
    cursor: pointer;
}

/* AUTO-RESIZE VIDEOS */
.msg-video {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 6px;
    object-fit: contain;
}

/* AUTO-RESIZE FILE BOXES */
.msg-file {
    display: inline-block;
    max-width: 200px;
    padding: 6px 10px;
    background: #e4e6eb;
    border-radius: 6px;
    margin-top: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #000;
    word-break: break-all;
}

.msg-audio {
    width: 200px;
    margin-top: 6px;
}

.msg-youtube {
    margin-top: 6px;
    max-width: 200px;
}

.msg-youtube iframe {
    width: 200px;
    height: 112px; /* raport 16:9 corect */
    border-radius: 6px;
}

.emoji-picker {
    display:none;
    position:absolute;
    width:260px;
    height:300px;
    background:#fff;
    border:1px solid #ccc;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
    overflow:hidden;
    z-index: 2147483647; /* maxim absolut */
}

.emoji-tabs {
    display:flex;
    border-bottom:1px solid #ddd;
    background:#f7f7f7;
}

.emoji-tabs span {
    flex:1;
    text-align:center;
    padding:6px 0;
    cursor:pointer;
    font-size:20px;
}

.emoji-content {
    height:250px;
    overflow-y:auto;
    padding:8px;
    font-size:22px;
    line-height:32px;
}

.chat-emoji {
    width: 20px;
    height: 20px;
    background-size: cover;
    cursor: pointer;
    margin-right: 6px;
}

.friend-item {
    position: relative;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.avatar-faded {
    opacity: 0.4;
}

.online-dot-avatar {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #31a24c;
    border-radius: 50%;
    bottom: 0px;
    right: 0px;
    border: 2px solid #fff;
    z-index: 10; /* 🔥 OBLIGATORIU */
}

.chat-header-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.chat-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.chat-online-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #31a24c;
    border-radius: 50%;
    bottom: 3px;
    right: 3px;
    border: 2px solid #fff;
    z-index: 10;
    display: none;
}

.seen-indicator {
    font-size: 11px;
    color: #4a7aff;
    margin-top: 3px;
    text-align: right;
    padding-right: 5px;
}

.seen-avatar-wrapper {
    text-align: right;
    margin-top: 3px;
    padding-right: 5px;
}

.seen-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

#post-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
}

#post-content {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    margin-bottom: 5px;
}

.post {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 10px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
}

.post-name {
    font-weight: bold;
    color: #365899;
    text-decoration: none;
}

.post-name:hover {
    text-decoration: underline;
}

.post-time {
    font-size: 11px;
    color: #777;
}

.post-text {
    margin-top: 5px;
    font-size: 14px;
}

.post-image {
    max-width: 100%;
    margin-top: 8px;
    border-radius: 3px;
}

.post-video {
    width: 100%;
    margin-top: 8px;
}

.post-youtube iframe {
    width: 100%;
    height: 315px;
    margin-top: 8px;
}

.post-footer {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 5px;
}

.post-footer button {
    background: none;
    border: none;
    color: #385898;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
}

/* ========================= */
/* POST FOOTER (LIKE/COMMENT) */
/* ========================= */

.post-footer {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 6px;
    display: flex;
    gap: 15px;
}

.post-footer button {
    background: none;
    border: none;
    color: #385898;
    font-weight: bold;
    cursor: pointer;
    padding: 3px 5px;
    font-size: 13px;
}

.post-footer button:hover {
    text-decoration: underline;
}

/* ========================= */
/* COMMENTS — FACEBOOK 2014  */
/* ========================= */

.comments {
    margin-top: 15px !important;
    padding-left: 5px !important;
}

.comment {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 10px !important;
}

.comment-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 0 !important; /* PĂTRAT */
    margin-right: 10px !important;
}

.comment-body {
    background: #f0f2f5 !important;
    padding: 10px 12px !important;
    border-radius: 0 !important; /* PĂTRAT */
    max-width: 80% !important;
    border: 1px solid #d8d8d8 !important;
}

.comment-name {
    font-weight: bold !important;
    color: #3b5998 !important; /* FACEBOOK 2014 BLUE */
    font-size: 14px !important;
}

.comment-text {
    font-size: 14px !important;
    display: block !important;
    margin-top: 3px !important;
}

.comment-time {
    font-size: 11px !important;
    color: #777 !important;
    margin-top: 4px !important;
}

/* ========================= */
/* COMMENT INPUT BOX         */
/* ========================= */

.comment-box {
    display: flex !important;
    align-items: center !important;
    margin-top: 12px !important;
    gap: 8px !important;
}

.comment-box input {
    flex: 1 !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important; /* PĂTRAT */
    font-size: 14px !important;
    background: #fff !important;
}

.comment-box input:focus {
    border-color: #3b5998 !important; /* FACEBOOK BLUE */
    outline: none !important;
}

.comment-box button {
    background: #3b5998 !important; /* EXACT FACEBOOK 2014 BLUE */
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 0 !important; /* PĂTRAT */
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    transition: 0.2s !important;
}

.comment-box button:hover {
    background: #2d4373 !important; /* FACEBOOK 2014 hover */
}



/* ========================= */
/* DELETE BUTTON             */
/* ========================= */

.post-delete-btn {
    background: none;
    border: none;
    color: #d9534f;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
}

.post-delete-btn:hover {
    text-decoration: underline;
}

/* ========================= */
/* POST FOOTER (LIKE/COMMENT) */
/* ========================= */

.post-footer {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 6px;
    display: flex;
    gap: 15px;
}

.post-footer button {
    background: none;
    border: none;
    color: #385898;
    font-weight: bold;
    cursor: pointer;
    padding: 3px 5px;
    font-size: 13px;
}

.post-footer button:hover {
    text-decoration: underline;
}

/* ========================= */
/* COMMENTS SECTION          */
/* ========================= */

.comments {
    margin-top: 10px;
    padding-left: 5px;
}

.comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.comment-body {
    background: #f0f2f5;
    padding: 6px 10px;
    border-radius: 15px;
    max-width: 80%;
}

.comment-name {
    font-weight: bold;
    color: #385898;
    font-size: 13px;
}

.comment-text {
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

.comment-time {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

/* ========================= */
/* COMMENT INPUT BOX         */
/* ========================= */

.comment-box {
    display: flex;
    align-items: center;
    margin-top: 8px;
    gap: 5px;
}

.comment-box input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 13px;
}

.comment-box button {
    background: #1877f2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
}

.comment-box button:hover {
    background: #0f5ec7;
}

/* ========================= */
/* REACȚII SIMPLE (VARIANTA C) */
/* ========================= */

.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reaction-buttons button {
    background: none;
    border: none;
    color: #385898;
    cursor: pointer;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.reaction-buttons button:hover {
    background: #f0f2f5;
}

.reaction-buttons button.active {
    font-weight: bold;
    color: #1877f2;
}

/* ========================= */
/* REACȚII – LISTĂ SUMAR     */
/* ========================= */

.reactions-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.reaction-pill {
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #333;
}

.reaction-pill.empty {
    opacity: 0.6;
}

/* ========================= */
/* SHARE COUNT               */
/* ========================= */

.shares-summary {
    font-size: 12px;
    color: #555;
}

/* ========================= */
/* EDITED LABEL              */
/* ========================= */

.edited-label {
    font-size: 11px;
    color: #777;
    margin-left: 4px;
}

/* ========================= */
/* POST FOOTER (NOU)         */
/* ========================= */

.post-footer {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.post-footer-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.post-footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-footer-actions button {
    background: none;
    border: none;
    color: #385898;
    cursor: pointer;
    padding: 3px 5px;
    font-size: 12px;
}

.post-footer-actions button:hover {
    text-decoration: underline;
}

/* ========================= */
/* INFINITE SCROLL LOADER    */
/* ========================= */

#feed-loader {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #555;
    display: none;
}

#feed-loader.visible {
    display: block;
}

/* ========================= */
/* HIGHLIGHT POSTĂRI NOI     */
/* ========================= */

.post.new-post {
    animation: highlightNew 1.5s ease-out;
}

@keyframes highlightNew {
    0% { background: #e7f3ff; }
    100% { background: #fff; }
}

#fb-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.header-icon {
    position: relative;
}

.header-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e41e3f; /* roșu Facebook */
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    display: none;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* ========================= */
/* EMAIL CONFIRMATION BANNER */
/* ========================= */

.email-banner {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999; /* peste header */
    padding: 11px 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.email-banner-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.email-banner.yellow {
    background: #fff8c4; /* galben Facebook 2014 */
    color: #333;
}

.email-banner.green {
    background: #d4edda; /* verde success */
    color: #155724;
}

.resend-form {
    display: inline-block;
}

.resend-btn {
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
}

/* Împinge TOT conținutul în jos când bannerul este activ */
.email-banner + #fb-header {
    margin-top: 50px !important;
}

.email-banner + #fb-header ~ * {
    margin-top: 60px !important;
}

/* ===================================================== */
/* Împinge conținutul în jos ca să nu fie sub header      */
/* ===================================================== */

body {
    padding-top: 60px !important; /* înălțimea header-ului tău */
}

/* FIX: Search dropdown să fie lipit de caseta de căutare */
.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 40px; /* distanța exact sub input */
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 99999;
}

.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999999;
    display: none;
}

.search-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999999;
    display: none;
}

.search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin-right: 8px;
}

.search-item {
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    color: #000; /* text negru */
}

.search-item:hover {
    background: #f0f2f5;
}

.search-name {
    font-size: 14px;
    font-weight: bold;
    color: #000; /* text negru */
}

body.has-header {
    padding-top: 55px; /* sau cât are header-ul tău */
}

/* ========================= */
/* LOGIN PAGE FIX            */
/* ========================= */

body.login-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: #f0f2f5; /* culoarea originală Facebook */
}

/* Dacă login-ul tău are containere care sunt afectate de padding global */
#login-top,
#login-main,
.login-left,
.login-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ========================= */
/* LOGIN PAGE FIX            */
/* ========================= */

body.login-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: #f0f2f5; /* culoarea originală Facebook */
}

/* Dacă login-ul tău are containere care sunt afectate de padding global */
#login-top,
#login-main,
.login-left,
.login-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
