/* Nuovo stile generale blu-grigio-bianco accattivante */
body {
  background: linear-gradient(135deg, #e9f0fa 0%, #f5f7fa 100%);
  min-height: 100vh;
  color: #222;
}

.navbar {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%);
  box-shadow: 0 2px 8px #0001;
}

.navbar .navbar-brand {
  color: #fff !important;
  text-shadow: 0 2px 8px #0002;
}

.post-center-wrapper {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #1976d21a, 0 1.5px 6px #0001;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  border-radius: 16px !important;
  box-shadow: 0 2px 12px #1565c01a, 0 1px 4px #0001;
  border: none;
  background: #f8fbff;
  margin-bottom: 1.5rem;
}

.card .card-body {
  padding: 1.3rem 1.2rem 1.1rem 1.2rem;
}

.card .card-title, .card .fw-bold {
  color: #1565c0;
}

.btn-primary, .btn-success {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px #1976d21a;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-success:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px #1976d21a;
}

.btn-outline-primary {
  border-color: #1976d2;
  color: #1976d2;
  background: #fff;
  border-radius: 8px;
  font-weight: 500;
}
.btn-outline-primary:hover {
  background: #1976d2;
  color: #fff;
}

input.form-control, textarea.form-control, select.form-select {
  border-radius: 8px;
  border: 1.5px solid #b0bec5;
  background: #f5f7fa;
  color: #222;
  transition: border 0.2s;
}
input.form-control:focus, textarea.form-control:focus, select.form-select:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 2px #1976d233;
}

.modal-content {
  border-radius: 16px;
  box-shadow: 0 4px 24px #1976d21a;
}

.user-list-item {
  background: #f8fbff;
  border-radius: 14px;
  box-shadow: 0 2px 10px #1565c01a;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: box-shadow 0.2s, background 0.2s;
}
.user-list-item:hover {
  box-shadow: 0 6px 24px #1976d21a;
  background: #e3f0fc;
}
.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1976d2;
  background: #e3eafc;
}
.user-info .user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1976d2;
}

/* Tab navs */
.nav-tabs .nav-link.active {
  background: #1976d2;
  color: #fff !important;
  border-radius: 8px 8px 0 0;
  border: none;
}
.nav-tabs .nav-link {
  color: #1976d2;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  border: none;
  background: #e3eafc;
  margin-right: 2px;
}

/* Commenti */
.mb-2.p-2.border.rounded.bg-light {
  background: #e3eafc !important;
  border: 1.5px solid #b0bec5 !important;
  color: #222;
}

/* Footer */
footer.bg-light {
  background: #e3eafc !important;
  color: #1976d2 !important;
  border-top: 2px solid #1976d2;
  font-weight: 500;
}

/* Responsive fix */
@media (max-width: 768px) {
  .post-center-wrapper {
    padding: 1.1rem 0.3rem 1.1rem 0.3rem;
    border-radius: 10px;
  }
  .card {
    border-radius: 10px !important;
  }
  .user-list-item {
    border-radius: 8px;
    padding: 0.7rem 0.6rem;
  }
} 

/* Card post home più accattivante */

.post-home-card, .card.post-card, .post-detail-card {
  border-radius: 20px !important;
  border: 1.5px solid #1976d2 !important;
  box-shadow: 0 10px 40px #232a3422, 0 2px 8px #0001 !important;
  background: #fff !important;
  margin-bottom: 2.2rem !important;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
  color: #232323 !important;
}
.card.ms-3, .card.mt-2, .card.shared-post, .card.post-attachment {
  border-radius: 16px !important;
  border: 1.5px solid #e0e0e0 !important;
  background: #f8f8fa !important;
  box-shadow: 0 2px 8px #232a3411 !important;
  margin-bottom: 0.7rem !important;
  color: #232323 !important;
}

/* Chat mobile ottimizzata */
.chat-convo-scroll {
  background: #e3eafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px #1976d211;
  margin-bottom: 0.7rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}
.chat-convo-scroll a {
  min-width: 90px;
  max-width: 120px;
  font-size: 1em;
  font-weight: 500;
  padding: 0.5em 0.7em;
  margin-right: 0.2em;
  margin-bottom: 0.2em;
  border-radius: 20px !important;
  transition: background 0.18s, color 0.18s;
  text-align: center;
}
.chat-convo-scroll a.bg-primary {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%) !important;
  color: #fff !important;
}
.chat-convo-scroll a.bg-light {
  background: #fff !important;
  color: #1976d2 !important;
}
@media (max-width: 768px) {
  .post-center-wrapper {
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
  }
  .chat-convo-scroll {
    margin-bottom: 0.5rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  .post-home-card .card-body, .card .card-body {
    padding: 1.1rem 0.7rem 1rem 0.7rem;
  }
  .input-group textarea.form-control {
    min-height: 44px;
    font-size: 1.1em;
  }
} 

/* Sidebar chat mobile verticale */
.chat-sidebar-mobile {
  width: 90px;
  min-width: 80px;
  max-width: 110px;
  background: #e3eafc;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 2px 8px #1976d211;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  overflow-y: auto;
  height: 100%;
}
.chat-sidebar-link-mobile {
  border-radius: 12px !important;
  margin-bottom: 0.2rem;
  padding: 0.5rem 0.2rem 0.3rem 0.2rem !important;
  font-size: 0.98em;
  font-weight: 500;
  color: #1976d2 !important;
  background: #fff !important;
  transition: background 0.18s, color 0.18s;
  text-align: center;
  min-width: 80px;
  max-width: 110px;
}
.chat-sidebar-link-mobile.active {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%) !important;
  color: #fff !important;
}
.chat-sidebar-link-mobile.unread:not(.active) {
  background: #bbdefb !important;
  color: #1976d2 !important;
  font-weight: 700;
}
.chat-sidebar-link-mobile .badge {
  margin-top: 0.2em;
}
@media (max-width: 768px) {
  .chat-sidebar-mobile {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 10;
    height: 80vh;
    min-height: 320px;
    max-height: 90vh;
  }
  .post-center-wrapper {
    padding: 0.2rem 0.1rem 0.2rem 0.1rem;
  }
  .flex-grow-1.col-12.col-md-8.col-lg-9 {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
} 

.like-btn, .comment-btn {
  background: #fff !important;
  border: 1.5px solid #bbb !important;
  box-shadow: 0 1px 4px #0001 !important;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  height: 2.1em;
  border-radius: 8px !important;
  font-size: 1.1em;
  margin-left: 0.2em;
  margin-right: 0.2em;
  padding: 0 0.7em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.like-btn:focus, .like-btn:active, .comment-btn:focus, .comment-btn:active {
  border-color: #1976d2 !important;
  box-shadow: 0 2px 8px #1976d211 !important;
}
.like-btn .like-icon {
  transition: color 0.18s;
} 

.shake-envelope {
  animation: shake 0.7s infinite;
}
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
} 
.emoji-picker-container {
  position: relative;
}
#emojiPicker {
  right: 0 !important;
  left: auto !important;
  bottom: 90px !important;
  min-width: 220px;
  width: 260px;
  max-width: 320px;
  min-height: 180px;
  max-height: 320px;
  box-sizing: border-box;
  box-shadow: 0 4px 24px #1976d233, 0 1.5px 6px #0001;
  border: 1.5px solid #b0bec5;
  z-index: 2000;
  background: #fff;
  overflow-y: auto;
  display: none;
} 