.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 1rem;
    padding-left: 10px;
    right: 0; 
    background: #fff;
    z-index: 101;
    box-shadow: 0 0 0 1px #0378ec;
    border-radius: 8px;
    width: 300px;
    max-height: 24rem;
    min-height: 4.2rem; 
    opacity: 0; 
    transform: translateY(-10px); 
    transition: transform 0.3s ease;
    padding: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
  }
       
.notification-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

.notification {
    padding: 16px;
    margin-left: 0;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left;
    position: relative;
}

.notification-text {
    font-family:  sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin-top: 0.7rem;
    margin-left: 0.4rem;  
    color: #2d3748; 
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.5; 
}

.notification-time {
    text-align: right; 
    margin-top: 8px; 
    font-size: 12px; 
    color: #64748b; 
    font-family:  sans-serif;
    font-weight: 300;
}
    
  .empty-notifications {
    padding: 0 9px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #667085;
    font-family: sans-serif;
    background-color: #f9fafb;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 12px;
}

.notification-empty-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #344054;
    font-size: 15px;
    width: 100%;
    text-align: center;
}

.notification-divider {
    width: 40px;
    height: 2px;
    background: #eaecf0;
    margin: 8px auto;
    border-radius: 1px;
}

.notification-empty-message {
    font-size: 0.9em;
    margin: 0;
    width: 100%;
    text-align: center;
}
.message-popup {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 1rem;
    right: 0;
    width: 320px;
    max-height: 20rem;
    background-color: white;
    border-radius: 8px;
    box-shadow:  0 0 0 1px #0378ec;
    z-index: 1000;
    padding: 12px 0;
    overflow-y: auto;
  }
  
.message-popup.show {
    display: block;
  }
  
.message-header {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: left;
  }
.message-header h3 {
    margin: 0;
    font-size: 16px;
    font-family: sans-serif;
    color: #333;
  }
  
.message-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background-color 0.2s;
  }
  
.message-item:hover {
    background-color: #f9f9f9;
  }
  
.message-item:last-child {
    border-bottom: none;
  }
  
.profile-message-link {
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
  }
  
.profile-message-link:hover {
    background-color: #f5f5f5;
  }
  
.profile-message-link .timestamp {
    display: block;
    text-align: right;
  
  }
  
.message-item p {
    margin: 0;
    font-size: 14px;
    font-family: sans-serif;
    line-height: 1.4;
    color: #333;
  }
  
  
.timestamp {
    font-size: 11px;
    font-family: sans-serif;
    color: #777;
    align-self: flex-end;
    margin-top: 3px;
  }
  
  
.no-messages {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #667085;
    font-family: sans-serif;
  }
  
.empty-state-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #344054;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }
  
.empty-state-message {
    font-size: 0.9em;
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
.message-popup::-webkit-scrollbar {
    width: 6px;
  }
  
.message-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
    margin: 8px 0;
  }
  

.message-popup::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    min-height: 30px
  }
  
.message-popup::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
.message-item p {
    word-break: break-word;
  }

.message-badge{
    position: absolute; 
    background-color: #1570ef; 
    color: white; 
    border-radius: 50%; 
    width: 13px; 
    height: 13px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    font-size: 0.55rem; 
    font-weight: bold;
    font-family: sans-serif; 
    z-index: 2; 
    top: 10%; 
    left: 85%; 
    transform: translate(-50%, -50%);
  }

.view-rejection-reason-btn {
    background: none;
    border: none;
    color: inherit; 
    text-decoration: none; 
    cursor: pointer;
    font-size: 0.95em;
    padding: 0; 
    font-family: inherit;
    font-weight: normal;
    font-style: italic;
}

.view-rejection-reason-btn:hover {
    color: inherit; 
    text-decoration: underline;
}

.rejection-modal-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;           
  padding-top: 0;                
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom) 16px;
  z-index: 3000;
  backdrop-filter: blur(1px);
}

.rejection-modal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: min(92vw, 560px);   
  width: 100%;
  max-height: 80vh;              
  overflow: auto;                
  -webkit-overflow-scrolling: touch;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.rejection-modal-content:hover {
  transform: translateY(-4px);
}

.rejection-modal-content .rejection-close-button {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s, transform 0.1s;
}

.rejection-modal-content .rejection-close-button:hover {
  color: #333;
  transform: scale(1.1);
}

.rejection-modal-content h3 {
  margin: 0;
  font-size: 1.18rem;
  text-align: center;
  font-weight: 600;
  color: #333;
  line-height: 1.25;
}

.rejection-modal-divider {
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  margin: 16px 0 18px 0;
  border-radius: 1px;
  opacity: 1;
}

.rejection-reason-box {
  background: #f3f6fa;
  border-radius: 7px;
  padding: 14px 12px;
  margin: 0 auto;
  color: #344054;
  font-size: 0.98rem;
  text-align: left;
  line-height: 1.6;
  box-shadow: 0 1px 4px rgba(21,112,239,0.07);
}

#rejectionReasonText {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}


@media (max-width: 480px) {
  .rejection-modal-content {
    padding: 16px 14px;
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 10px;
  }
  .rejection-reason-box {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Планшети (481–1024px): можна дати ширину поширше */
@media (min-width: 481px) and (max-width: 1024px) {
  .rejection-modal-content {
    max-width: min(90vw, 640px);
    max-height: 82vh;
  }
}

/* Десктопи (>= 1025px): трохи більша модалка */
@media (min-width: 1025px) {
  .rejection-modal-content {
    max-width: 640px;
    max-height: 78vh;
  }
}