/* ============================================================
   🎨 Palette : #87ACD4 | #0A8CCB | #0177B6 sur fond #FFFFFF
   ============================================================ */

:root {
  --color-light-blue: #87ACD4;
  --color-medium-blue: #0A8CCB;
  --color-dark-blue: #0177B6;
  --color-bg: #FFFFFF;
  --color-text: #555;
  --color-muted: #777;
  --color-border: #e6e6e6;
}

/* ============================================================
   🧱 BASE LAYOUT
   ============================================================ */

.light-theme,
.auth-section {
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
}

.login-container,
.auth-container {
  max-width: 480px;
  width: 100%;
}

/* ============================================================
   🪪 AUTH CARD
   ============================================================ */

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   🧭 HEADER
   ============================================================ */

.auth-header h2 {
  color: var(--color-dark-blue);
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  margin-bottom: 0.5rem;
}

.auth-header p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   🧾 FORM INPUTS (Floating Labels)
   ============================================================ */

.floating-label {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1.5px solid #dce3ec;
  border-radius: 8px;
  background-color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.floating-label input:focus {
  border-color: var(--color-medium-blue);
  box-shadow: 0 0 0 3px rgba(10, 140, 203, 0.15);
  outline: none;
}

.floating-label label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: 0.2s ease all;
  pointer-events: none;
  background-color: #fff;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  background: #fff;
  font-size: 0.75rem;
  color: var(--color-medium-blue);
  padding: 0 6px;
}

.icon {
  position: absolute;
  right: 12px;
  top: 14px;
  color: var(--color-medium-blue);
  opacity: 0.6;
}

/* ============================================================
   🔘 BUTTONS
   ============================================================ */

.btn-primary {
  background: linear-gradient(90deg, var(--color-dark-blue), var(--color-medium-blue));
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  padding: 10px 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 119, 182, 0.25);
}

.btn-outline-primary {
  border: 2px solid var(--color-medium-blue);
  color: var(--color-medium-blue);
  background: transparent;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.btn-outline-primary:hover {
  background: var(--color-medium-blue);
  color: #fff;
}

/* ============================================================
   🔗 LINKS & DIVIDERS
   ============================================================ */

.divider,
.auth-divider {
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.divider {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 1rem 0;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, #87ACD4, #0A8CCB, #0177B6);
  transform: translateY(-50%);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.forgot-link {
  font-size: 0.9rem;
  color: var(--color-dark-blue);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ============================================================
   🧍 SIGN-UP OPTIONS
   ============================================================ */

.auth-options {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.auth-option {
  background-color: #fff;
  border: 2px solid #0177B6;
  color: #0177B6;
  border-radius: 12px;
  text-align: center;
  width: 45%;
  padding: 1rem 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-option i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.auth-option span {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-option:hover {
  background-color: #0177B6;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(1, 119, 182, 0.25);
}

/* ============================================================
   ⚙️ FOOTER
   ============================================================ */

.auth-footer p {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.btn-login {
  display: inline-block;
  background: var(--color-dark-blue);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: var(--color-medium-blue);
}

/* ============================================================
   📱 RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.25rem;
    box-shadow: none;
    border-radius: 0.75rem;
  }

  .auth-header h2 {
    font-size: 1.4rem;
  }

  .floating-label input {
    font-size: 0.9rem;
    padding: 10px 36px 10px 10px;
  }

  .btn-primary,
  .btn-outline-primary {
    font-size: 0.95rem;
    padding: 10px;
  }

  .auth-option {
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  .auth-option span {
    font-size: 0.8rem;
  }

  .forgot-link {
    font-size: 0.85rem;
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .auth-card {
    max-width: 480px;
  }

  .auth-header h2 {
    font-size: 1.6rem;
  }
}

/* ============================================================
   🧩 LOGIN / REGISTER SECTION (Winku)
   ============================================================ */

.login-reg-bg {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  min-height: 100vh;
}

.log-reg-area {
  background: #fff;
  border-radius: 16px;
  padding: 40px 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.log-reg-area .log-title {
  color: #0177B6;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.log-reg-area p {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.log-reg-area form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #f9fbfd;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #0A8CCB;
  box-shadow: 0 0 0 3px rgba(10, 140, 203, 0.2);
  background: #fff;
  outline: none;
}

.form-group label.control-label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #fff;
  padding: 0 6px;
  font-size: 0.8rem;
  color: #0177B6;
  font-weight: 500;
}

.forgot-pwd {
  display: inline-block;
  font-size: 0.85rem;
  margin-top: -10px;
  color: #0177B6;
  text-decoration: none;
  transition: 0.2s;
}

.forgot-pwd:hover {
  text-decoration: underline;
  color: #0A8CCB;
}

.mtr-btn {
  position: relative;
  display: inline-block;
  border: none;
  background: linear-gradient(135deg, #87ACD4, #0A8CCB, #0177B6);
  color: #fff;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mtr-btn:hover {
  border: 2px solid #0177B6;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 119, 182, 0.3);
}

.log-reg-area hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, #87ACD4, #0A8CCB, #0177B6);
  margin: 30px 0;
}

/* ============================================================
   🤝 SOCIAL / COLLAB APPS
   ============================================================ */

.colla-apps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.colla-apps li {
  flex: 0 1 150px;
}

.colla-apps li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #0177B6;
  color: #0177B6;
  border-radius: 12px;
  padding: 1rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.colla-apps li a i {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  color: #0177B6;
  transition: color 0.3s;
}

.colla-apps li a:hover {
  background: #0A8CCB;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(10, 140, 203, 0.3);
}

.colla-apps li a:hover i {
  color: #fff;
}

/* ============================================================
   📱 RESPONSIVE (COLLAB)
   ============================================================ */

@media (max-width: 600px) {
  .log-reg-area {
    padding: 30px 25px;
  }

  .colla-apps {
    flex-direction: column;
    align-items: center;
  }

  .colla-apps li a {
    width: 100%;
    max-width: 280px;
  }
}

/* Team members list styling */
.no-members {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
}

.no-members p {
    font-size: 14px;
}

.friendz-list li {
    transition: background 0.3s ease;
}

.friendz-list li:hover {
    background: #f8f9fa;
}

/* Delete button */
.friendz-meta .del {
    float: right;
    margin-left: 10px;
}

.friendz-meta .del a {
    transition: transform 0.3s ease;
}

.friendz-meta .del a:hover {
    transform: scale(1.2);
}

/* Chat box improvements */
.chat-box {
    margin-top: 20px;
}

.chat-box .chat-head {
    background: #4f93ce;
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-box .chat-list {
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    background: white;
}

.chat-box textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-top: 1px solid #e0e0e0;
    resize: none;
    min-height: 60px;
}

.chat-box button[type="submit"] {
    position: absolute;
    right: -10px;
    bottom: 10px;
    background: #4f93ce;
    color: white;
    border: none;
/*
    padding: 8px 12px;
*/
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-box button[type="submit"]:hover {
    background: #3d7ab8;
    transform: scale(1.1);
}

/* ============================================================
   📱 INVITATIONS
   ============================================================ */
/* Styles existants + ajouts */
.section-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}
.section-divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    color: #999;
    font-weight: 600;
}
.info-box-secondary {
    background: #fff3e0;
    border-left-color: #f57c00;
}
.info-box-secondary i {
    color: #f57c00;
}
/* ... (autres styles déjà fournis) ... */

/* Bannière patient */
.patient-info-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #87ACD4 20%, #0177B6 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    color: white;
}

.patient-avatar {
    margin: 0;
}

.profile-circle-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}

.patient-details .label {
    color: #fff;
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patient-details h4 {
    margin: 5px 0 0 0;
    font-size: 20px;
    font-weight: 600;
}

/* Info box */
.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-box-primary {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.info-box i {
    font-size: 24px;
    color: #2196f3;
    flex-shrink: 0;
}

.info-box p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

/* Code d'invitation */
.invitation-code-section,
.invitation-link-section {
    margin-bottom: 25px;
}

.invitation-code-section label,
.invitation-link-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-value {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #87ACD4 10%, #0177B6 100%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    border-radius: 12px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    user-select: all;
}

.link-display {
    display: flex;
    gap: 10px;
}

.link-display input {
    flex: 1;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
}

.btn-copy {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.btn-copy i {
    font-size: 18px;
}

/* Boutons de partage */
.share-actions {
    margin: 30px 0;
}

.share-actions h6 {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.share-btn i {
    font-size: 24px;
}

.share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.share-email:hover {
    background: #EA4335;
    border-color: #EA4335;
    color: white;
}

.share-sms:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.share-qr:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Statistiques */
.code-statistics {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.code-statistics h6 {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* Actions admin */
.admin-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #dee2e6;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
}

.text-warning {
    color: #f57c00;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

/* Modal QR Code */
.modal-qrcode {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-qrcode-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.modal-qrcode-header {
    padding: 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #87ACD4 10%, #0177B6 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-qrcode-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-qrcode {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    line-height: 1;
}

.close-qrcode:hover {
    opacity: 1;
}

.modal-qrcode-body {
    padding: 30px;
}

.patient-qr-info {
    text-align: center;
    margin-bottom: 25px;
}

.qr-patient-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    margin-bottom: 15px;
}

.patient-qr-info h4 {
    margin: 10px 0;
    color: #333;
}

.qr-code-display {
    font-size: 16px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.qrcode-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 3px solid #667eea;
    margin-bottom: 20px;
}

.qr-instructions {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.qrcode-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.qrcode-actions .mtr-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Formulaire */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.char-count {
    text-align: right;
}

/* Setting row amélioré */
.setting-row-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.setting-info {
    flex: 1;
}

.setting-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.setting-description {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Boutons */
.submit-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mtr-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary {
    background: #87ACD4;
    color: white;
}

.btn-secondary:hover {
    background: #0177B6;
}

.btn-primary {
    background: linear-gradient(135deg, #87ACD4 0%, #0177B6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 10px;
    background: #0177B6;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Invitations */
.invitation-item {
    position: relative;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #87ACD4 0%, #0177B6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.invitation-meta {
    display: block;
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.role-badge,
.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
    margin-top: 5px;
}

.role-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.admin-badge {
    background: #fff3e0;
    color: #f57c00;
}

.invitation-actions,
.intervention-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

btn-accept,
.btn-resend {
    background: #e3f2fd;
    color: #1976d2;
}

btn-accept:hover,
.btn-resend:hover {
    background: #1976d2;
    color: white;
}

.btn-delete,
.btn-remove {
    background: #ffebee;
    color: #c62828;
}

.btn-delete:hover,
.btn-remove:hover {
    background: #c62828;
    color: white;
}

.btn-edit {
    background: #fff3e0;
    color: #f57c00;
}

.btn-edit:hover {
    background: #f57c00;
    color: white;
}

/* Intervenants */
.intervenant-email {
    display: block;
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.last-active {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-actions {
        grid-template-columns: 1fr;
    }
    
    .code-value {
        font-size: 20px;
    }
    
    .patient-info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .submit-btns {
        flex-direction: column;
    }
    
    .mtr-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ========================================
   ACTIVITY META & DETAILS
   ======================================== */

.activity-meta {
  margin: 6px 0;
}

.activity-meta details {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s ease;
}

.activity-meta details:hover {
  border-color: #0177B6;
  box-shadow: 0 2px 8px rgba(1, 119, 182, 0.15);
}

.activity-meta summary {
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, #f9f9f9 0%, #ffffff 100%);
  transition: all 0.2s ease;
}

.activity-meta summary:hover {
  background: linear-gradient(90deg, #f0f8ff 0%, #ffffff 100%);
}

/* ICONE INFO */
.activity-meta summary i.fa-circle-info {
  color: #0A8CCB;
  font-size: 1.3em;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* TYPE D'INFO (Le quotidien, Le week-end, Les vacances) */
.activity-meta summary > span:nth-of-type(1) {
  color: #333;
  font-size: 1em;
  flex-grow: 1;
}

/* BADGE NOMBRE DE PROBLÈMES */
.activity-meta summary .problem-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
  flex-shrink: 0;
}

.activity-meta summary .problem-badge i {
  font-size: 0.95em;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* OUVERTURE DES DETAILS */
.activity-meta details[open] summary {
  background: linear-gradient(90deg, #E8F4F8 0%, #ffffff 100%);
  border-bottom: 3px solid #0177B6;
}

.activity-meta details[open] summary i.fa-circle-info {
  transform: rotate(360deg);
}

/* REMOVE DEFAULT MARKER */
.activity-meta summary {
  list-style: none;
}

.activity-meta summary::-webkit-details-marker {
  display: none;
}

/* ========================================
   RESPONSIVE ACTIVITY META
   ======================================== */

@media (max-width: 768px) {
  .activity-meta summary {
    padding: 10px 12px;
    gap: 10px;
  }

  .activity-meta summary > span:nth-of-type(1) {
    font-size: 0.95em;
  }

  .activity-meta summary .problem-badge {
    padding: 5px 12px;
    font-size: 0.85em;
  }

  .activity-meta summary i.fa-circle-info {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .activity-meta summary {
    padding: 8px 10px;
    gap: 8px;
/*
    flex-wrap: wrap;
*/
  }

  .activity-meta summary > span:nth-of-type(1) {
    font-size: 0.9em;
    flex-basis: 100%;
  }

  .activity-meta summary .problem-badge {
    padding: 4px 10px;
    font-size: 0.8em;
    flex-basis: auto;
  }

  .activity-meta summary i.fa-circle-info {
    font-size: 1em;
  }
}

/* ========================================
   COMMENTS SECTION
   ======================================== */

.coment-area {
  display: inline-block;
  margin-top: 10px;
  width: 100%;
}

.we-comet {
  float: left;
  width: 100%;
  padding-left: 0;
  list-style: none;
}

.we-comet > li {
  display: inline-block;
  margin-bottom: 20px;
  width: 100%;
  animation: slideInComment 0.3s ease;
}

@keyframes slideInComment {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.we-comet > li:last-child {
  margin-bottom: 0;
}

/* AVATAR */
.comet-avatar {
  display: table-cell;
  max-width: 7.6%;
  vertical-align: top;
  width: 7.6%;
}

.comet-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.2s ease;
}

.comet-avatar img:hover {
  border-color: #0177B6;
  box-shadow: 0 0 8px rgba(1, 119, 182, 0.3);
}

.comet-avatar .profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.comet-avatar .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* COMMENT BOX */
.we-comment {
  border: 2px solid #e0e0e0;
  display: table-cell;
  margin-left: 20px;
  padding: 12px;
  vertical-align: top;
  position: relative;
  width: 50%;
  background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  border-left: 3px solid #87ACD4;
  transition: all 0.2s ease;
}

.we-comment:hover {
  background: linear-gradient(90deg, #f0f5fa 0%, #f8f9fa 100%);
  border-left-color: #0177B6;
  box-shadow: 0 2px 6px rgba(1, 119, 182, 0.1);
}

/* COMMENT BUBBLE POINTER */
.we-comment::before {
  border-bottom: 10px solid transparent;
  border-right: 11px solid #e0e0e0;
  border-top: 10px solid transparent;
  left: -14px;
  top: 12px;
  position: absolute;
  content: '';
}

.we-comment::after {
  border-bottom: 8px solid transparent;
  border-right: 9px solid #f8f9fa;
  border-top: 8px solid transparent;
  left: -11px;
  top: 14px;
  position: absolute;
  content: '';
}

/* COMMENT HEAD */
.coment-head {
  display: inline-block;
  width: 100%;
  margin-bottom: 6px;
}

.coment-head > h5 {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 0;
  text-transform: capitalize;
  display: inline-block;
  margin-bottom: 0;
  color: #0177B6;
}

.coment-head > h5 a {
  color: #0177B6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.coment-head > h5 a:hover {
  color: #0A8CCB;
  text-decoration: underline;
}

.coment-head > span {
  color: #999;
  font-size: 12px;
  padding-left: 10px;
  display: inline-block;
  margin-left: auto;
}

/* COMMENT TEXT */
.we-comment > p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 100%;
  margin-top: 5px;
  color: #333;
}

.we-reply {
  text-transform: capitalize;
  font-size: 13px;
  display: inline-block;
  margin-left: 10px;
}

/* NESTED COMMENTS */
.we-comet > li ul {
  margin-left: 55px;
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.we-comet > li ul li {
  margin-bottom: 20px;
}

.we-comet > li ul li:last-child {
  margin-bottom: 0;
}

.we-comet li a.showmore {
  display: table;
  font-size: 12px;
  margin: 0 auto;
  text-transform: capitalize;
}

/* POST COMMENT FORM */
li.post-comment {
  margin-top: 0px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

li.post-comment .comet-avatar {
  display: inline-block;
  max-width: 40px;
  width: 40px;
  vertical-align: top;
}

li.post-comment .comet-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-comt-box {
  display: inline-block;
  padding-left: 15px;
  position: relative;
  width: calc(100% - 55px);
}

.post-comt-box form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.post-comt-box textarea {
  flex-grow: 1;
  background: linear-gradient(90deg, #f9f9f9 0%, #ffffff 100%);
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  color: #333;
  font-size: 13.5px;
  font-weight: 500;
  height: 40px;
  line-height: 16px;
  padding: 8px 12px;
  resize: vertical;
  transition: all 0.2s ease;
  font-family: inherit;
}

.post-comt-box textarea:focus {
  outline: none;
  border-color: #0A8CCB;
  box-shadow: 0 0 8px rgba(10, 140, 203, 0.2);
  background: #f0f8ff;
}

.post-comt-box textarea::placeholder {
  color: #999;
}

.post-comt-box button {
  flex-shrink: 0;
/*
  background: linear-gradient(135deg, #0A8CCB 0%, #0177B6 100%) !important;
  color: white;
  box-shadow: 0 2px 6px rgba(1, 119, 182, 0.2);
*/
  color: #0A8CCB;
  border: none;
  padding: 2px 2px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.2s ease;
}

.post-comt-box button:hover {
  background: linear-gradient(135deg, #eee 0%, #ccc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(1, 119, 182, 0.3);
}

.post-comt-box button:active {
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .comet-avatar img,
  .comet-avatar .profile {
    width: 36px;
    height: 36px;
    font-size: 0.85em;
  }

  .we-comment {
    padding: 10px;
  }

  .coment-head {
    display: block;
  }

  .coment-head > span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .post-comt-box form {
    flex-direction: column;
    gap: 6px;
  }

/*
  .post-comt-box button {
    width: 100%;
  }
*/
}

@media (max-width: 480px) {
  .comet-avatar img,
  .comet-avatar .profile {
    width: 32px;
    height: 32px;
    font-size: 0.8em;
  }

  .we-comment {
    width: 70%;
    padding: 8px;
    font-size: 0.9em;
  }

  .post-comt-box {
    width: 88%;
  }

  .post-comt-box textarea {
    font-size: 0.9em;
    height: 36px;
  }
}

/* ========================================
   ACTIVITY LINK & DURATION
   ======================================== */

.activity-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(90deg, #e8f4f8 0%, #f0f9ff 100%);
  border-radius: 8px;
  border-left: 4px solid #0177B6;
  transition: all 0.3s ease;
}

.activity-link:hover {
  background: linear-gradient(90deg, #d4e8f5 0%, #e8f5ff 100%);
  box-shadow: 0 2px 8px rgba(1, 119, 182, 0.2);
}

.activity-link i.fa-calendar-check {
  color: #0A8CCB;
  font-size: 1.4em;
  flex-shrink: 0;
}

.activity-link a {
  color: #0177B6;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  flex-grow: 1;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.activity-link a:hover {
  color: #0A8CCB;
  border-bottom-color: #0A8CCB;
}

.activity-duration {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #f5f5f5 0%, #ffffff 100%);
  border-radius: 6px;
  border-left: 3px solid #87ACD4;
  font-size: 0.95em;
  color: #555;
  font-weight: 500;
  margin-bottom: 12px;
}

.activity-duration::before {
  content: "⏱ ";
  font-size: 1.1em;
  color: #87ACD4;
}

/* ========================================
   RESPONSIVE ACTIVITY LINK & DURATION
   ======================================== */

@media (max-width: 768px) {
  .activity-link {
    padding: 10px;
    gap: 10px;
    border-left-width: 3px;
  }

  .activity-link i.fa-calendar-check {
    font-size: 1.2em;
  }

  .activity-link a {
    font-size: 0.95em;
  }

  .activity-duration {
    padding: 8px 10px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .activity-link {
    padding: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .activity-link i.fa-calendar-check {
    font-size: 1.1em;
  }

  .activity-link a {
    font-size: 0.9em;
    flex-basis: 100%;
  }

  .activity-duration {
    padding: 6px 8px;
    font-size: 0.85em;
    width: 100%;
  }
}

/* ========================================
   ACTIVITY MODAL
   ======================================== */

.activity-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.activity-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.activity-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.activity-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #0177B6;
  background: linear-gradient(90deg, #e8f4f8 0%, #f0f9ff 100%);
}

.activity-modal-header h2 {
  margin: 0;
  color: #0177B6;
  font-size: 1.5em;
}

.activity-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #0A8CCB;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 5px;
}

.activity-modal-close:hover {
  color: #0177B6;
  transform: scale(1.2);
}

.activity-modal-body {
  padding: 20px;
  color: #333;
  line-height: 1.6;
}

.activity-modal-body .loader {
  text-align: center;
  padding: 40px;
  color: #0A8CCB;
  font-weight: 600;
}

.activity-modal-body .loader i {
  font-size: 2em;
  margin-right: 10px;
}

.activity-modal-body .error {
  color: #f44336;
  background: #ffebee;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #f44336;
}

@media (max-width: 768px) {
  .activity-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .activity-modal-header h2 {
    font-size: 1.2em;
  }

  .activity-modal-body {
    padding: 15px;
  }
}
/* CSS pour le contenu du modal */
.modal-objective {
  background: linear-gradient(135deg, #ffe0e0 0%, #fff5f5 100%);
  border-left: 4px solid #f44336;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.modal-objective h3 {
  color: #d32f2f;
  margin: 0 0 8px 0;
  font-size: 1.1em;
}

.modal-objective i {
  color: #f44336;
  margin-right: 8px;
}

.modal-title {
  color: #0177B6;
  font-size: 1.2em;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.modal-subtitle {
  color: #555;
  font-size: 0.95em;
  margin: 12px 0 8px 0;
  border-bottom: 2px solid #87ACD4;
  padding-bottom: 6px;
}

.modal-description {
  font-size: 0.95em;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.modal-image,
.modal-pdf,
.modal-video {
  margin: 16px 0;
  border-radius: 6px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-video iframe {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-pdf embed {
  border-radius: 6px;
}

.video-link {
  color: #0177B6;
  text-decoration: none;
  font-weight: 600;
}

.video-link:hover {
  text-decoration: underline;
}
.modal-action {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.btn-do-activity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0A8CCB 0%, #0177B6 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(1, 119, 182, 0.3);
  cursor: pointer;
}

.btn-do-activity:hover {
  background: linear-gradient(135deg, #0177B6 0%, #015fa0 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 119, 182, 0.4);
}

.btn-do-activity i {
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .btn-do-activity {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}
/* ========================================
   SHARING CONTENT
   ======================================== */

.sharing-content {
  padding: 16px;
  background: linear-gradient(135deg, #f5f7ff 0%, #fef9f3 100%);
  border-radius: 8px;
  border-left: 4px solid #0866FF;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sharing-content p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}

.sharing-content strong {
  color: #0866FF;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.sharing-content p:not(:last-child) {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(8, 102, 255, 0.1);
}

/* Alert style for problems */
.sharing-content p i {
  display: inline-block;
  margin-right: 8px;
  color: #f44336;
  font-size: 1.1em;
}

/* Icons before each problem */
.sharing-content p::before {
  content: "⚠ ";
  color: #ff9800;
  font-weight: bold;
  margin-right: 6px;
}

/* No problems message */
.sharing-content p:only-child {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-left: 4px solid #4caf50;
}

.sharing-content p:only-child::before {
  content: "✓ ";
  color: #4caf50;
}

/* ========================================
   RESPONSIVE SHARING CONTENT
   ======================================== */

@media (max-width: 768px) {
  .sharing-content {
    padding: 12px;
    gap: 10px;
  }

  .sharing-content p {
    font-size: 0.9em;
  }

  .sharing-content strong {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .sharing-content {
    padding: 10px;
    gap: 8px;
    border-left-width: 3px;
  }

  .sharing-content p {
    font-size: 0.85em;
    line-height: 1.5;
  }

  .sharing-content strong {
    font-size: 0.9em;
  }
}
/* ========================================
   SHARING CONTENT
   ======================================== */

.sharing-content {
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid;
}

/* CAS 1: AUCUN PROBLÈME (VERT) */
.sharing-content.no-problems {
  background: linear-gradient(135deg, #f1f8f5 0%, #e8f5e9 100%);
  border-left-color: #4caf50;
}

.sharing-content.no-problems p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #2e7d32;
  font-weight: 600;
}

.sharing-content.no-problems p::before {
  content: "✓ ";
  color: #4caf50;
  font-weight: bold;
  margin-right: 8px;
  font-size: 1.2em;
}

/* CAS 2: PROBLÈMES DÉTECTÉS (ROUGE) */
.sharing-content.with-problems {
  background: linear-gradient(135deg, #fef5f5 0%, #ffe0e0 100%);
  border-left-color: #f44336;
}

.sharing-content.with-problems p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #c62828;
  padding: 12px;
  background: rgba(244, 67, 54, 0.03);
  border-radius: 6px;
  border-left: 3px solid #f44336;
}

.sharing-content.with-problems p:not(:last-child) {
  margin-bottom: 4px;
}

.sharing-content.with-problems strong {
  color: #d32f2f;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 1em;
}

.sharing-content.with-problems p::before {
  content: "⚠ ";
  color: #ff9800;
  font-weight: bold;
  margin-right: 6px;
  font-size: 1.1em;
}

/* ========================================
   RESPONSIVE SHARING CONTENT
   ======================================== */

@media (max-width: 768px) {
  .sharing-content {
    padding: 12px;
    gap: 10px;
  }

  .sharing-content p {
    font-size: 0.9em;
  }

  .sharing-content strong {
    font-size: 0.95em;
  }

  .sharing-content.with-problems p {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .sharing-content {
    padding: 10px;
    gap: 8px;
    border-left-width: 3px;
  }

  .sharing-content p {
    font-size: 0.85em;
    line-height: 1.5;
  }

  .sharing-content strong {
    font-size: 0.9em;
  }

  .sharing-content.with-problems p {
    padding: 8px;
  }
}
/* ========================================
   TIMELINE CONTAINER
   ======================================== */

.timeline-row {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fafafa;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, #f9f9f9 0%, #fff 50%, #f9f9f9 100%);
  border-radius: 8px;
  position: relative;
  height: 150px;
  min-height: 150px;
}

/* Scrollbar styling */
.timeline::-webkit-scrollbar {
  height: 6px;
}

.timeline::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.timeline::-webkit-scrollbar-thumb {
  background: #0866FF;
  border-radius: 10px;
}

.timeline::-webkit-scrollbar-thumb:hover {
  background: #0652DD;
}

/* ========================================
   MILESTONE ITEMS
   ======================================== */

.milestone {
  flex: 0 0 auto;
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  font-size: 0.75em;
  font-weight: 600;
  color: white;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.milestone:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.milestone i {
  font-size: 1.5em;
}

/* ========================================
   MILESTONE LABELS (DATE & WHO)
   ======================================== */

.milestone-date {
  position: absolute;
  font-size: 0.7em;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  white-space: nowrap;
  color: #555;
  font-weight: 500;
  width: 120px;
  text-align: center;
  pointer-events: none;
}

.milestone-who {
  position: absolute;
  font-size: clamp(0.55em, 3vw, 0.75em);
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #333;
  font-weight: 600;
  width: 100%;
  max-width: 120px;
  text-align: center;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* ========================================
   MILESTONE STATUS COLORS
   ======================================== */

.milestone.todo {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: 2px solid #ff5252;
}

.milestone.big-help {
  background: linear-gradient(135deg, #ffb347 0%, #ff9800 100%);
  color: #fff;
  border: 2px solid #ff8800;
}

.milestone.medium-help {
  background: linear-gradient(135deg, #ffd580 0%, #ffc107 100%);
  color: #333;
  border: 2px solid #ffb300;
}

.milestone.small-help {
  background: linear-gradient(135deg, #f0c100 0%, #e0b000 100%);
  color: #333;
  border: 2px solid #d4a500;
}

.milestone.done {
  background: linear-gradient(135deg, #6bcb77 0%, #4caf50 100%);
  border: 2px solid #45a049;
}

.milestone.todo:hover,
.milestone.big-help:hover,
.milestone.medium-help:hover,
.milestone.small-help:hover,
.milestone.done:hover {
  filter: brightness(1.1);
}

/* ========================================
   ACTIVITY ROW (wrapper)
   ======================================== */

.activity-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 25px;
  position: relative;
  padding: 10px 0;
}

.activity-row i.edit,
.activity-row i.del {
  position: absolute;
  top: 10px;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.activity-row i.edit {
  right: 45px;
  color: #ff9800;
}

.activity-row i.edit:hover {
  color: #f57c00;
  transform: scale(1.15);
}

.activity-row i.del {
  right: 20px;
  color: #f44336;
}

.activity-row i.del:hover {
  color: #d32f2f;
  transform: scale(1.15);
}

/* RTL Support */
:root[dir="rtl"] .activity-row i.edit {
  right: auto;
  left: 45px;
}

:root[dir="rtl"] .activity-row i.del {
  right: auto;
  left: 20px;
}

/* ========================================
   ACTIVITY NAME
   ======================================== */

.activity-name {
  font-size: 0.9em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #333;
  padding: 8px;
  background: rgba(8, 102, 255, 0.05);
  border-radius: 6px;
  border-left: 4px solid #0866FF;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .timeline {
    height: 100px;
    padding: 15px;
    gap: 10px;
  }

  .milestone {
    width: 70px;
    height: 70px;
    font-size: 0.7em;
  }

  .milestone i {
    font-size: 1.2em;
  }

  .milestone-date,
  .milestone-who {
    font-size: 0.65em;
    width: 100px;
  }

  .activity-row i.edit {
    right: 35px;
  }

  .activity-row i.del {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .timeline {
    height: 90px;
    padding: 12px;
    gap: 8px;
  }

  .milestone {
    width: 60px;
    height: 60px;
    font-size: 0.65em;
  }

  .milestone i {
    font-size: 1em;
  }

  .milestone-date {
    font-size: 0.6em;
    width: 80px;
  }

  .milestone-who {
    display: none;
  }

  .activity-name {
    font-size: 0.8em;
  }
}

/* ========================================
   BOTTOM NAVIGATION WITH WIDGETS
   ======================================== */

@media (max-width: 768px) {
  aside.sidebar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 9999 !important;
    background: white !important;
    border-top: 2px solid #e0e0e0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  aside.sidebar .div-to-move-mobile {
    height: 70px !important;
    width: 100% !important;
  }

  aside.sidebar .div-to-move-mobile .widget .widget-title {
    display: none !important;
  }

  aside.sidebar .div-to-move-mobile .naves {
    display: flex !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  aside.sidebar .div-to-move-mobile .naves li {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 3px solid transparent !important;
    cursor: pointer !important;
    position: relative;
    height: 100%;
  }

  aside.sidebar .div-to-move-mobile .naves li:hover {
    background: #f8f9fa !important;
    border-bottom-color: #0177B6 !important;
  }

  aside.sidebar .div-to-move-mobile .naves li i {
    font-size: 1.6em !important;
    color: #0A8CCB !important;
  }

  aside.sidebar .div-to-move-mobile .naves li:hover i {
    color: #0177B6 !important;
  }

/* Hide text labels, keep links functional */
/*
aside.sidebar .div-to-move-mobile .naves li:not(.nav-item-widget) a {
  font-size: 0 !important;
  overflow: hidden !important;
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
}
*/

aside.sidebar .div-to-move-mobile .naves li a {
  color: transparent  !important;
  position: absolute !important;
}

aside.sidebar .div-to-move-mobile .naves li.nav-item-widget {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 3px solid transparent !important;
  cursor: pointer !important;
  position: relative;
  pointer-events: auto !important;
}

aside.sidebar .div-to-move-mobile .naves li.nav-item-widget:hover {
  background: #f8f9fa !important;
  border-bottom-color: #0177B6 !important;
}

aside.sidebar .div-to-move-mobile .naves li.nav-item-widget i {
  font-size: 1.6em !important;
  color: #0A8CCB !important;
}

aside.sidebar .div-to-move-mobile .naves li.nav-item-widget:hover i {
  color: #0177B6 !important;
}
  /* Widget badge */
  .widget-badge {
    position: absolute;
    right: 10px;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
  }
  .widget-badge.bleu {
	bottom: 20px !important;
	background: #0177B6 !important;
  }
  .widget-badge.red {
    top: 5px;
    background: #f44336 !important;
  }
  /* Original widgets hidden */
  aside.sidebar > .friend-list,
  aside.sidebar > .stick-widget {
    display: none !important;
  }

  #forum-widget .widget.stick-widget {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    float: none !important;
  }

  #forum-widget .widget.stick-widget.is_stuck {
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  #forum-widget > div {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }

  body {
    padding-bottom: 70px !important;
  }
}
@media (max-width: 768px) {
  /* Desktop content hidden on mobile */
  aside.sidebar .patient-header-widget,
  aside.sidebar .navigation-menu {
    display: none !important;
  }

  aside.sidebar .div-to-move-mobile .widget-content {
            height: 100%
  }

  /* Only show bottom nav on mobile */
  aside.sidebar .div-to-move-mobile .widget {
            height: 100%
  }
}

@media (min-width: 769px) {
  /* Show desktop content */
  aside.sidebar .patient-header-widget,
  aside.sidebar .navigation-menu {
    display: block !important;
  }

  /* Hide bottom nav on desktop */
  aside.sidebar .div-to-move-mobile .widget:last-child {
    display: none !important;
  }
}
/* ========================================
   WIDGET MODAL
   ======================================== */

.widget-modal {
  display: none;
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: white;
  z-index: 9998;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.widget-modal.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.widget-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 2px solid #0177B6;
  background: #e8f4f8;
}

.widget-modal-header h4 {
  margin: 0;
  color: #0177B6;
}

.widget-modal-close {
  background: none;
  border: none;
  font-size: 1.8em;
  color: #0A8CCB;
  cursor: pointer;
}

.widget-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.widget-content {
  width: 100%;
}

@media (min-width: 769px) {
  .widget-modal,
  .nav-item-widget {
    display: none !important;
  }
}
/* ========================================
   MESSAGES PAGE - MAIN CONTENT
   ======================================== */

.messages {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.f-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 2px solid #0177B6;
  margin: 0;
  background: linear-gradient(90deg, #e8f4f8 0%, #f9f9f9 100%);
  font-size: 1.1em;
  font-weight: 700;
  color: #0177B6;
}

.f-title i {
  font-size: 1.3em;
  color: #0A8CCB;
}

/* ========================================
   MESSAGE BOX CONTAINER
   ======================================== */

.message-box {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow: hidden;
  padding: 12px;
  background: #fafafa;
}

/* ========================================
   PEOPLES LIST
   ======================================== */

.peoples {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 30%;
  min-width: 125px;
  overflow-y: auto;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.peoples li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.peoples li:last-child {
  border-bottom: none;
}

.peoples li:hover {
  background: #f8f9fa;
  border-left: 3px solid #0177B6;
  padding-left: 9px;
}

.peoples li.active {
  background: linear-gradient(90deg, #e8f4f8 0%, #f0f9ff 100%);
  border-left: 4px solid #0177B6;
  padding-left: 8px;
  box-shadow: inset 0 0 8px rgba(1, 119, 182, 0.1);
}

/* Avatar */
.peoples li figure {
  width: 40px;
  max-width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
}

.peoples li figure img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #87ACD4;
  transition: all 0.2s ease;
}

.peoples li.active figure img {
  border-color: #0177B6;
  box-shadow: 0 0 8px rgba(1, 119, 182, 0.3);
}

.peoples li .profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.peoples li .profile .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Name */
.people-name {
  flex: 1;
  margin-left: 0;
  min-width: 0;
}

.people-name span {
  display: block;
  font-size: 0.8em;
/*
  font-weight: 600;
*/
  color: #333;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.peoples li:hover .people-name span {
  color: #0177B6;
}

/* No messages */
.peoples li p {
  margin: 0;
  padding: 15px;
  text-align: center;
  color: #999;
  font-size: 0.95em;
}

/* Scrollbar styling */
.peoples::-webkit-scrollbar {
  width: 6px;
}

.peoples::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.peoples::-webkit-scrollbar-thumb {
  background: #0A8CCB;
  border-radius: 10px;
}

.peoples::-webkit-scrollbar-thumb:hover {
  background: #0177B6;
}

/* ========================================
   CHAT BOX
   ======================================== */

.peoples-mesg-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Conversation header */
.conversation-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-bottom: 2px solid #0177B6;
  background: linear-gradient(90deg, #e8f4f8 0%, #f9f9f9 100%);
  flex-shrink: 0;
}
.nearly-pepls {
    display: flex;                      /* ← Flexbox pour le centrage */
}

.top-area .user-img {
  width: 60px;
  height: 60px;
  margin: 0;
}

.top-area .user-img
.nearly-pepls figure,
.conversation-head figure,
.new-postbox > figure {
  width: 45px;
  height: 45px;
  margin: 0;
}

.conversation-head figure img,
.friend-info figure .profile,
.conversation-head figure .profile,
.new-postbox > figure .profile,
.drops-menu > li a figure .profile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-area .user-img .initials,
.nearly-pepls .initials {
    display: flex;
    align-items: center;
    justify-content: center;
	  width: 100%;
	  height: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #ccc;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.conversation-head figure a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.conversation-head span {
  flex: 1;
  font-weight: 600;
  color: #0177B6;
  font-size: 0.95em;
}

.conversation-head span a {
  color: #0177B6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.conversation-head span a:hover {
  color: #0A8CCB;
  text-decoration: underline;
}

/* Chatting area */
.chatting-area {
  list-style: none;
  margin: 0;
  padding: 15px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatting-area li {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message from other */
.chatting-area li.you {
  justify-content: flex-start;
}

.chatting-area li.you figure {
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
}

.chatting-area li.you figure img,
.chatting-area li.you figure .profile {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #87ACD4;
}

.chatting-area li.you figure .profile {
  background: linear-gradient(135deg, #87ACD4 0%, #0A8CCB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75em;
  font-weight: 700;
}

.chatting-area li.you p {
  background: #e8e8e8;
  color: #333;
  padding: 10px 14px;
  border-radius: 12px;
  border-bottom-left-radius: 2px;
  max-width: 70%;
  word-break: break-word;
  margin: 0;
  line-height: 1.5;
}

/* Message from me */
.chatting-area li.me {
  justify-content: flex-end;
}

.chatting-area li.me p {
  background: linear-gradient(135deg, #0A8CCB 0%, #0177B6 100%);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
  max-width: 70%;
  word-break: break-word;
  margin: 0;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(1, 119, 182, 0.2);
}

/* Message timestamp */
.notification-date {
  display: block;
  font-size: 0.75em;
  color: #999;
  margin-top: 4px;
  text-align: center;
  width: 100%;
}

.chatting-area li.me .notification-date {
  text-align: right;
}

.chatting-area li.you .notification-date {
  text-align: left;
}

/* Scrollbar */
.chatting-area::-webkit-scrollbar {
  width: 6px;
}

.chatting-area::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.chatting-area::-webkit-scrollbar-thumb {
  background: #0A8CCB;
  border-radius: 10px;
}

/* ========================================
   MESSAGE FORM
   ======================================== */

.message-text-container {
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  background: #f9f9f9;
  flex-shrink: 0;
}

.SendForm {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.SendForm textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 0.95em;
  resize: vertical;
  min-height: 40px;
  max-height: 100px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.SendForm textarea:focus {
  outline: none;
  border-color: #0A8CCB;
  box-shadow: 0 0 8px rgba(10, 140, 203, 0.2);
  background: #f0f8ff;
}

.SendForm textarea::placeholder {
  color: #999;
}

.SendForm button {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0A8CCB 0%, #0177B6 100%);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(1, 119, 182, 0.2);
}

.SendForm button:hover {
  background: linear-gradient(135deg, #0177B6 0%, #015fa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(1, 119, 182, 0.3);
}

.SendForm button:active {
  transform: translateY(0);
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */

.btn-load-more {
  align-self: center;
  margin: 10px 0;
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  color: #0177B6;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background: #e0e0e0;
  border-color: #0177B6;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .peoples {
    width: 25%;
    min-width: 150px;
  }

  .chatting-area li.you p,
  .chatting-area li.me p {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .message-box {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .peoples {
    width: 100%;
    min-width: auto;
    height: 200px;
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
    border-right: none;
  }

  .peoples-mesg-box {
    width: 100%;
    border-radius: 0;
    border-left: none;
  }

  .chatting-area li.you p,
  .chatting-area li.me p {
    max-width: 85%;
  }

  .SendForm {
    flex-wrap: wrap;
  }

  .SendForm textarea {
    flex-basis: 100%;
  }

  .SendForm button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .f-title {
    padding: 12px 15px;
    font-size: 1em;
  }

  .peoples li {
    padding: 10px;
  }

  .people-name span {
    font-size: 0.9em;
  }

  .chatting-area li.you p,
  .chatting-area li.me p {
    max-width: 90%;
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .SendForm textarea {
    min-height: 36px;
    font-size: 0.9em;
  }
}

/* ========================================
   Attachments
   ======================================== */

.privacy-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0177B6;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
}

.privacy-select {
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 0.85em;
    cursor: pointer;
}

.privacy-select:hover {
    border-color: #0177B6;
}

/* ========================================
   div-to-move-mobile
   ======================================== */

@media (max-width: 768px) {
  .div-to-move-mobile {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    flex-direction: column-reverse !important;
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Tab Panels - Scrollable content */
  .div-to-move-mobile .mobile-tab-panels {
    flex: 1 !important;
    overflow-y: auto !important;
    background: #fafafa !important;
  }

  /* Bottom Tabs - Sticky at bottom */
  .div-to-move-mobile .mobile-bottom-tabs {
    flex-shrink: 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    background: white !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05) !important;
    z-index: 10000 !important;
    position: relative !important;
  }

  .div-to-move-mobile .tabs-container {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: 70px !important;
    gap: 0 !important;
    pointer-events: auto !important;
  }

  .div-to-move-mobile .tab-btn {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    color: #666 !important;
    pointer-events: auto !important;
    z-index: 10001 !important;
  }

  .div-to-move-mobile .tab-btn:hover {
    background: #f8f9fa !important;
    color: #0A8CCB !important;
  }

  .div-to-move-mobile .tab-btn.active {
    color: #0177B6 !important;
    border-bottom-color: #0177B6 !important;
    background: linear-gradient(180deg, rgba(232, 244, 248, 0.5) 0%, transparent 100%) !important;
  }

  .div-to-move-mobile .tab-btn i {
    font-size: 1.4em !important;
    pointer-events: none !important;
  }

  .div-to-move-mobile .tab-label {
    font-size: 0.7em !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }

  .div-to-move-mobile .widget-badge {
    position: absolute !important;
    right: 10px !important;
    color: white !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.6em !important;
    font-weight: 700 !important;
    pointer-events: none !important;
  }
  .div-to-move-mobile .widget-badge.bleu {
	bottom: 20px !important;
    background: #0177B6 !important;
  }
  .div-to-move-mobile .widget-badge.red {
    top: 5px !important;
    background: #f44336 !important;
  }
  .div-to-move-mobile .tab-panel {
    display: none !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
  }

  .div-to-move-mobile .tab-panel.active {
    display: flex !important;
    flex-direction: column !important;
    animation: fadeIn 0.2s ease !important;
  }

  .div-to-move-mobile .panel-content {
    padding: 15px !important;
  }

  .div-to-move-mobile .panel-title {
    margin: 0 0 15px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #0177B6 !important;
    color: #0177B6 !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
  }

  .div-to-move-mobile .mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .div-to-move-mobile .menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: white !important;
    border-radius: 8px !important;
    border-left: 3px solid transparent !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
    pointer-events: auto !important;
  }

  .div-to-move-mobile .menu-item:hover {
    background: #f0f8ff !important;
    border-left-color: #0177B6 !important;
    color: #0177B6 !important;
  }

  .div-to-move-mobile .menu-item i {
    font-size: 1.2em !important;
    color: #0A8CCB !important;
  }

  .div-to-move-mobile .btn-open-modal {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #0A8CCB 0%, #0177B6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
    pointer-events: auto !important;
  }
.div-to-move-mobile .tab-btn-link {
  flex: 1 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  color: #666 !important;
  text-decoration: none !important;
  z-index: 10001 !important;
}

.div-to-move-mobile .tab-btn-link:hover {
  background: #f8f9fa !important;
  color: #0A8CCB !important;
}
  .div-to-move-mobile .tab-btn.active {
    color: #0177B6 !important;
    border-bottom-color: #0177B6 !important;
    background: linear-gradient(180deg, rgba(232, 244, 248, 0.5) 0%, transparent 100%) !important;
  }

.div-to-move-mobile .tab-btn-link i {
  font-size: 1.4em !important;
}

.div-to-move-mobile .tab-btn-link span {
  font-size: 0.7em !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 768px) {
  aside.sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 72px !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  aside.sidebar .div-to-move {
    display: none !important;
    position: absolute !important;
    z-index: 1 !important;
  }

  aside.sidebar .div-to-move-mobile {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    z-index: 9998  !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
  }

  aside.sidebar .mobile-bottom-tabs {
    position: absolute !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
  }

  aside.sidebar .tab-btn {
    pointer-events: auto !important;
  }

  .widget-modal {
    z-index: 100000 !important;
  }
}
.div-to-move-mobile #people-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: calc(100% - 120px) !important;
}

.div-to-move-mobile .friendz-list li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  background: white !important;
  border-radius: 8px !important;
  border-left: 3px solid #87ACD4 !important;
  transition: all 0.2s ease !important;
}

.div-to-move-mobile .friendz-list li:hover {
  background: #f0f8ff !important;
  border-left-color: #0177B6 !important;
}

.div-to-move-mobile .friendz-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.div-to-move-mobile .friendz-meta a {
  color: #0177B6 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.privacy-panel {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.privacy-option-panel {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.privacy-option-panel h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-text {
    background: #e7f3ff;
    border-left: 3px solid #2196F3;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #0c5460;
    border-radius: 4px;
}

.warning-text {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #856404;
    border-radius: 4px;
}

.profession-list {
    margin-top: 15px;
}

.profession-group {
    margin-bottom: 15px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.profession-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.profession-header input[type="checkbox"] {
    cursor: pointer;
}

.profession-header .count {
    color: #999;
    font-size: 12px;
}

.exception-zone {
    margin-top: 10px;
    padding: 10px;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.exception-label {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #856404;
    font-weight: bold;
}

.exception-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.exception-checkbox:hover {
    background: #f5f5f5;
}

.person-group {
    margin-bottom: 15px;
}

.person-group h6 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.privacy-checkbox:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
}

.privacy-checkbox.exclude {
    border-left: 3px solid #f44336;
}

.privacy-checkbox.exclude:hover {
    border-color: #f44336;
    background: #ffebee;
}

.mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.privacy-checkbox small {
    color: #999;
    font-size: 11px;
    margin-left: auto;
}
