.dashboard-section {
  display: flex;
  background-color: var(--default-bg-soft);
  padding: 10px;
}

.dashboard-widgets {
  width: 25vw;
  height: calc(100vh - 20px);
  border-radius: 20px;
  z-index: 1002;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--default-bg-main);
  padding: 20px;
  display: flex;
  gap: 20px;
  color: var(--default-text-main);
  position: relative;
}

.dashboard-widgets::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(67%, -50%); 
  width: 60px;     
  height: 60px;
  border-radius: 50%;
  background: var(--default-bg-soft); 
}

.show-widgets {
  background-color: var(--default-bg-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--default-text-main);
  width: 50px;            
  height: 50px;            
  border-radius: 50%;      
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
}

.left-side-panel{
  display: flex;
  align-items: center;
  gap: 20px;
}

.left-side-panel h2{
  letter-spacing: -0.43px;
  color: var(--default-bg-nm-bl);
}

.top-right-panel {
  background-color: var(--default-bg-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--default-text-main);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 22px;
  height: 50px;          
  padding: 0 15px;         
  border-radius: 30px;    
  position: relative; 
}

.dashboard-header-container{
  display: flex;
  justify-content: space-between;
  padding: 10px;
  gap: 10px; 
}

.dashboard-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--default-text-main);
  color: var(--default-bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.contacts-section .dashboard-profile {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--default-text-main);
  color: var(--default-bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  position: relative;
}

.dashboard-profile img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.top-right-panel i{
  cursor: pointer;
}

.dashboard-content-container {
  flex: 1;
  display: flex;       
  flex-direction: column;
  border-radius: 20px;
  padding: 10px 20px;
}

.image-widget-container {
  width: 100%;
  aspect-ratio: 10/1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: unset;
}

.image-widget-container img {
  width: auto;
  height: 100%;
}

.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--default-bg-hover);
  border-radius: 20px;
  padding: 10px 15px;
  gap: 10px;
}

.search-input {
  width: 100%;
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--default-text-main);
}

.search-input::placeholder {
  color: var(--default-text-placeholder);
}

.search-container i {
  color: var(--default-text-placeholder);
  font-size: 18px;
  cursor: pointer;
}

.dashboard-clickables ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.dashboard-dark-mode ul li {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 15px;
  cursor: pointer;
  background-color: var(--default-bg-main);
  color: var(--default-text-main);
  border: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  gap: 20px;
  border-radius: 50px;
}

.dashboard-dark-mode ul li {
  background-color: var(--default-bg-hover);
}

.dashboard-dark-mode ul li.support-bg i{
  color: chocolate;
}

.dashboard-clickables ul li a{
  text-decoration: none;
  color: unset;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 15px;
  cursor: pointer;
  background-color: var(--default-bg-main);
  color: var(--default-text-main);
  border: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  gap: 20px;
  border-radius: 50px;
}

.dashboard-clickables ul li a:hover {
  background-color: var(--default-bg-hover);
}

.dashboard-clickables ul li.active a{
  color: var(--default-accent);
  font-weight: bold;
}

.dashboard-clickables ul li.active .icon {
  color: var(--default-accent);
}

.dashboard-clickables i {
  font-size: 24px;
}

.dashboard-clickables .bold-history {
  font-weight: bold;
}

.dashboard-dark-mode {
  flex: 1;
  display: flex;
  align-items: end;
  width: 100%;
}

.darkmode-switch {
  margin-left: auto;
  position: relative;
  display: inline-block;
  width: 2.5em;
  height: 1.4em;
}

.darkmode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.darkmode-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d1d6;
  transition: 0.4s;
  border-radius: 20px;
}

.darkmode-slider:before {
  position: absolute;
  content: "";
  height: 1em;
  width: 1em;
  border-radius: 50%;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.darkmode-switch input:checked + .darkmode-slider {
  background-color: var(--default-accent);
}

.darkmode-switch input:checked + .darkmode-slider:before {
  transform: translateX(1.1em);
}


.dashboard-widgets.collapsed {
  width: fit-content;                 
  padding: 20px 10px;
}

.dashboard-widgets.collapsed .image-widget-container  {
  aspect-ratio: 2/1;            
}

.dashboard-widgets.collapsed .dashboard-search-bar,
.dashboard-widgets.collapsed .darkmode-switch {
  display: none;               
}

.dashboard-widgets.collapsed .dashboard-clickables ul li a{
  justify-content: center;      
  gap: 0;
  padding: 10px;
}

.dashboard-widgets.collapsed .dashboard-clickables ul li i a{
  font-size: 24px;
}

.dashboard-widgets.collapsed .dashboard-clickables ul li span,
.dashboard-widgets.collapsed .dashboard-clickables ul li b {
  display: none;               
}

.profile-option-container {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: var(--default-bg-main);
  border: 1px solid var(--default-bg-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  color: var(--default-text-main);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-10px);
  z-index: 2000;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-option{
  display: flex;
  gap: 10px;
  cursor: pointer;
}
.profile-option-container .option-name{
  font-size: 15px;
}

.notification-summary {
  position: absolute;
  top: 110%;
  right: 0;
  width: 20vw;
  background-color: var(--default-bg-main);
  border: 1px solid var(--default-bg-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  color: var(--default-text-main);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  z-index: 2000;
}

.notification-summary.show {
  display: block;  
}

.notification-summary-header {
  padding: 12px 16px;
  font-weight: bold;
  font-size: 15px;
  color: var(--default-text-main);
  border-bottom: 1px solid var(--default-bg-hover);
}

.notification-item {
  text-decoration: none;
  color: unset;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background-color: var(--default-bg-hover);
}

.notification-item i {
  font-size: 20px;
  color: var(--default-accent);
}

.notification-item .text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;      
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-item .time {
  font-size: 12px;
  color: var(--default-text-placeholder);
}

.notification-summary-footer {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--default-text-main);
  cursor: pointer;
  border-top: 1px solid var(--default-bg-hover);
}

.notification-summary-footer:hover {
  text-decoration: underline;
}

.notification-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3); 
  backdrop-filter: blur(4px);  
  z-index: 2999;           
  display: none;           
}

.notification-popup {
  position: fixed;
  top: 10%;              
  left: 50%;            
  transform: translateX(-50%); 
  width: 40vw;
  max-height: 70vh;
  background-color: var(--default-bg-main);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  color: var(--default-text-main);
  display: none;
  flex-direction: column;
  z-index: 3000;
  overflow: hidden;
}

.notification-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid var(--default-bg-hover);
  color: var(--default-text-main);
}

.notification-popup-header i {
  font-size: 22px;
  cursor: pointer;
}

.notification-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.notification-popup .notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-popup .notification-item:hover {
  background-color: var(--default-bg-hover);
}

.notification-popup .notification-item i {
  font-size: 20px;
  color: var(--default-accent);
}

.notification-popup .notification-item .text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;      
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-popup .notification-item .time {
  font-size: 12px;
  color: var(--default-text-placeholder);
}

.notification-popup-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--default-bg-hover);
  text-align: right;
}

.notification-popup-filters {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--default-bg-hover);
  background-color: var(--default-bg-main);
}

.notification-popup .filter-btn {
  background: transparent;
  border: 1px solid var(--default-bg-hover);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--default-text-main);
  transition: all 0.2s;
  text-align: center; 
}

.notification-popup .filter-btn:hover {
  background-color: var(--default-bg-hover);
}

.notification-popup .filter-btn.active {
  background-color: var(--default-accent);
  color: #ffffff;
}

.message-container {
  position: fixed;      
  bottom: 10px;        
  right: 10px;           
  z-index: 11000;    
  border-radius: 20px;  
  padding: 10px;       
  background-color: var(--default-bg-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95); 
  transition: none; 
}

.message-container.show{
  display: flex;
}

.message-section{
  height: 60vh;
  width: 25vw;
  display: flex;
  flex-direction: column;
}

.receivers-info-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashborad-profile-left{
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 5px;
}

.receivers-info-container i{
  font-size: 22px;
  padding: 5px;
  cursor: pointer;
  color: var(--default-bg-nm-bl);
}

.receivers-name{
  font-weight: bold;
  color: var(--default-text-cart);
}

.message-content-container{
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-compose {
  display: flex;
  align-items: center;
  background-color: var(--default-bg-soft);
  border-radius: 20px;
  padding: 8px 12px;
  margin: 10px;
  gap: 10px;
}

.message-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--default-text-main);
  font-size: 14px;
}

.message-input::placeholder {
  color: var(--default-text-placeholder);
}

.send-message-btn {
  font-size: 20px;
  color: var(--default-accent);
  cursor: pointer;
  transition: color 0.2s;
}

.receivers-message,
.user-message {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 14px;
}

.receivers-message {
  align-self: flex-start;
  background-color: var(--default-bg-soft);
  color: var(--default-text-main);
  border-radius: 16px 16px 16px 4px;
}

.user-message {
  align-self: flex-end;
  background-color: var(--default-accent);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.message-time {
  font-size: 11px;
  color: var(--default-text-placeholder);
  margin-top: 4px;
  align-self: flex-end; 
  opacity: 0.8;
}

.user-message .message-time {
  color: #fff; 
  opacity: 0.7; 
}

.users-message-container{
  display: flex;
  width: 100%;
  justify-content: end;
}

.receivers-message-container{
  display: flex;
  width: 100%;
  justify-content: start;
}

.contact-item{
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: unset;
  width: fit-content;
}

.contacts-section{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  height: 60vh;
}

.message-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%); 
  width: 50px;     
  height: 50px;
  border-radius: 50%;
  background: var(--default-bg-soft); 
}

.contact-name {
  flex: 1;                    
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px; 
  color: var(--default-bg-nm-bl);
  display: none;
}

.contact-list{
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.contact-item:hover {
  background-color: var(--default-bg-hover);
}

.contact-item.active {
  background-color: var(--default-accent);
}

.contact-item.active .contact-name {
  color: #fff;
  font-weight: bold;
}


.contacts-section .search-container .search-input {
  display: none;
}

.dashboard-widgets .show-widgets {
  position: absolute;
  top: 50%;                  
  right: 0;                 
  transform: translate(70%, -50%); 
  width: 50px;
  height: 50px;
  font-size: 25px;
}


.message-container .show-widgets {
  position: absolute;
  top: 50%;                  
  left: 0;                 
  transform: translate(-50%, -50%); 
  width: 40px;
  height: 40px;
  font-size: 25px;
}


.contacts-section.expanded .contact-item .contact-name,
.contacts-section.expanded .search-container .search-input {
  display: block;
}

.contacts-section.expanded .contact-item {
  width: unset;
  min-width: 280px;
}

.dashboard-main-container {
  display: flex;
  flex-direction: column;
  align-items: center;         
  justify-content: flex-start; 
  gap: 30px;                  
  padding: 30px;
  flex: 1 1 auto; 
  overflow-y: auto;
}

.dashboard-main-container .row {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;     
  max-width: 1050px;    
  width: 100%;
}

.dashboard-main-container .row-center {
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;     
  width: 100%;
}

.dashboard-box {
  background-color: var(--default-bg-main);
  border-radius: 24px;
  padding: 35px 28px;
  width: 320px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--default-text-main);
 
  cursor: pointer;
}

.dashboard-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  text-decoration: none;
}

.dashboard-box i {
  font-size: 44px;
  color: var(--default-accent);
  margin-bottom: 16px;
}

.dashboard-box h3 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  
}

.dashboard-box p {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--default-text-placeholder);
}


.dashboard-widgets.collapsed .dashboard-search-bar,
.dashboard-widgets.collapsed .darkmode-switch span,
.dashboard-widgets.collapsed .darkmode-switch b,
.dashboard-widgets.collapsed .dashboard-clickables ul li span,
.dashboard-widgets.collapsed .dashboard-clickables ul li b {
  opacity: 0;
  pointer-events: none;
}

.dashboard-widgets.collapsed {
  width: 80px;
  padding: 20px 10px;
}

.profile-img {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   object-fit: cover;
}
.dashboard-placeholder {
  color: var(--default-text-placeholder);
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.dashboard-placeholder i {
  font-size: 64px;
  color: var(--default-accent);
  margin-bottom: 16px;
  opacity: 0.9;
}

.dashboard-placeholder h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--default-text-main);
}

.dashboard-placeholder p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--default-text-placeholder);
}

@media (max-width: 1024px) {
  .dashboard-main-container .row,
  .dashboard-main-container .row-center {
    max-width: 700px; 
    justify-content: center;
  }

  .dashboard-box {
    width: 45%;  
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .dashboard-main-container .row,
  .dashboard-main-container .row-center {
    max-width: 100%;
    justify-content: center;
  }

  .dashboard-box {
    width: 90%;
  }
}

@media (max-width: 1200px) {
  .notification-summary{
    width: 40vw;
  }
  .notification-popup{
    width: 50vw;
  }
  .message-section{
    width: 35vw;
  }
}

@media (max-width: 992px) {
  .notification-summary{
    width: 50vw;
  }
  .notification-popup{
    width: 60vw;
  }
  .message-section{
    width: 45vw;
  }
  .contacts-section{
    max-width: calc(40vw - 30px);
  }
  .contacts-section.expanded .contact-item{
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .notification-summary{
    width: 60vw;
  }
  .notification-popup{
    width: 70vw;
  }
  .notification-popup-filters {
    grid-template-columns: repeat(3, auto);
  }
  .message-section{
    width: 55vw;
  }
  .contacts-section{
    max-width: calc(40vw - 30px);
  }
  .contacts-section.expanded .contact-item{
    min-width: unset;
  }
  

  .dashboard-widgets .show-widgets {
    position: absolute;
    top: 0;                  
    right: 50%;                 
    transform: translate(50%, -50%); 
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .dashboard-widgets::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, -50%); 
    width: 60px;     
    height: 60px;
    border-radius: 50%;
    background: var(--default-bg-soft); 
  }

  .dashboard-widgets {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;  
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 20px 20px 20px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    
  }
  
  .dashboard-widgets.collapsed{
    position: fixed;
    top: unset;
    bottom: -3%;
    left: 50%;                  
    width: 80vw !important;
    transform: translateX(-50%);
    height: 60px;
    z-index: 1000;
    display: flex;
    flex-direction: row;     
    align-items: center;
    justify-content: space-around;
    width: fit-content;
    padding: 20px 10px;
  }

  .dashboard-widgets.collapsed .image-widget-container,
  .dashboard-widgets.collapsed .dashboard-search-container,
  .dashboard-widgets.collapsed .dashboard-dark-mode{
    display: none;
  }

  .dashboard-widgets.collapsed .dashboard-clickables ul {
    display: flex;
    flex-direction: row;    
    width: 100%;
    height: 100%;
  }
  .dashboard-main-clickables{
    width: 100%;
  }

  .dashboard-widgets.collapsed .dashboard-main-clickables {
    display: none;
  }

  .dashboard-clickables-item a {
    display: flex;
    flex-direction: row;   
    
    
    height: 100%;
    font-size: 12px;
  }

  .dashboard-clickables-item a i {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .dashboard-content-container {
    width: 100%;
  }
  .dashboard-widgets.collapsed .dashboard-dark-mode ul li,
  .dashboard-widgets.collapsed .search-container {
    background-color: unset;
  }

  .dashboard-dark-mode ul li i,
  .dashboard-widgets.collapsed .search-container i {
    background-color: unset;
    font-size: 25px !important;
    color: var(--default-bg-nm-bl);
  }
}

@media (max-width: 480px) {
  .dashboard-title{
    font-size: 20px;
  }
  .welcome-text{
    display: none;
  }
  .dashboard-main-container{
    padding: 30px 0;
  }
  .profile-option-container{
    gap: 20px;
  }
  .notification-summary{
    width: calc(100vw - 50px);
  }
  .notification-popup{
    width: calc(100vw - 30px);
  }
  .notification-popup-filters {
    grid-template-columns: repeat(2, auto);
  }
  .message-container .show-widgets,
  .message-container::before {
    top: 10%;                  
  }
  .contacts-section .search-container .search-input {
    display: block;
  }
  .message-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .message-section{
    height: 60vh;
    width: calc(100vw - 50px);
    flex-direction: column;
  }

  .contacts-section{
    height: auto;
    width: calc(100vw - 50px);
    border-bottom: 2px solid var(--default-border, #ddd);
    max-width: unset;
  }
  .contacts-section.expanded .contact-item{
    min-width: unset;
  }
  .contact-list{
    flex-direction: row;
    height: auto;
  }
}


