 /* Reset and base styles */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #051440;
  color: #333;
  font-size: 20px;
  line-height: 1.5;
}

/* Layout */
.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Side-bar */


.sidebar-icons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.3rem;
}

.sidebar-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-icon.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}



.user-avatar1 {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #ccc;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}


/* Mobile navigation */
.mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-title {
  display: flex;
  align-items: center;
}

.mobile-nav-title span {
  font-weight: 600;
  margin-left: 0.5rem;
}

.mobile-nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.mobile-nav-tab {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-tab.active {
  background-color: #e6f0ff;
  color: #3b82f6;
}

#mobile-title {
  color: #3b82f6
}

.blue {
  color: #3b82f6;
}

.gray {
  color: #e48202;
}

.orange {
  color: #e48202;
}

/* Panels */
.panel {
  flex: 1;
  background-color: white;
  overflow: auto;
  border-right: 1px solid #e5e5e5;
}

.panel-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.panel-title .blue {
  color: #3b82f6;
}

.panel-title .gray {
  color: #e48202;
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
}

.search-container {
  padding: 1rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.5rem;
  padding-left: 2.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.search-icon {
  position: absolute;
  left: 1.75rem;
  top: 1.625rem;
  color: #9ca3af;
}

/* Mail items */
.mail-list, .chat-list {
  border-top: 1px solid #e5e5e5;
}

.mail-item, .chat-item {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

.mail-item:hover, .chat-item:hover {
  background-color: #f0f7ff;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.avatar img {
  width: 100%;
  height: 100%;
      
  object-fit: cover;
}

.avatar-initials {
  font-size: 0.75rem;
  font-weight: 500;
}

.mail-content, .chat-content {
  flex: 1;
  min-width: 0;
}

.mail-header, .chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sender-name, .chat-name {
  font-weight: 500;
  /* font-size: 0.875rem; */
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-time, .chat-time {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  margin-left: 0.7rem;
  
}
.chat-time {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  margin-left: 0.7rem;
  text-align: center;
  
}

.mail-subject {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-preview, .chat-message {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  margin-left: 0.5rem;
  background-color: #3b82f6;
  color: white;
  font-size: 0.75rem;
  border-radius: 9999px;
  height: 1.25rem;
  width: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Calendar */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.calendar-day {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

/* Calendar container */
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

/* Individual date styling */
.calendar-date {
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #4b5563;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out; /* Smooth hover effect */
}

/* Hover effect for all dates */
.calendar-date:hover {
  background-color: #537272; /* Light gray on hover */
  color: black;
  cursor: pointer;
}

/* Active (selected) date */
.calendar-date.active {
  background-color: #9b9b9b;
  color: white;
}

/* Hover effect for active date */
.calendar-date.active:hover {
  background-color: #555252; /* Darker gray on hover */
}

.calendar-content {
  padding: 1rem;
}

.date-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.date-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.date-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event {
  display: flex;
}

.event-time {
  font-size: 0.75rem;
  color: #6b7280;
  width: 3rem;
  padding-top: 0.25rem;
}

.event-content {
  flex: 1;
}

.event-card {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border-left-width: 4px;
}

.event-card.green {
  background-color: #eaf4fa;
  /* border-left-color: #34d399; */
  border-color: #00A3FF;
  border-style: solid;
  border-width: 2px;
}

.event-card.blue {
  background-color: #feebff;
  /* border-left-color: #60a5fa; */
  border-color: #f700ff;
  border-style: solid;
  border-width: 2px;
}

.event-card.orange {
  background-color: #fff5e1;
  /* border-left-color: #fb923c; */
  border-color: #ffa600;
  border-style: solid;
  border-width: 2px;
}

.event-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.event-description {
  font-size: 0.75rem;
  color: #4b5563;
}

.event-attendees {
  display: flex;
  margin-top: 0.5rem;
  gap: 0.25rem;
}

.attendee {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid white;
}

.attendee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendee-more {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: #e5e5e5;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.event-duration {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.add-event-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  background-color: #3b82f6; /* Default blue */
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.add-event-button:hover {
  background-color: #2563eb; /* Darker blue on hover */
  transform: scale(1.1); /* Slight zoom effect */
}

/* Active (click) effect */
.add-event-button:active {
  background-color: #ffffff; /* Even darker blue when clicked */
  transform: scale(1); /* Resets scale on click */
}

/* Icon */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  transition: stroke 0.3s ease;
}

/* Change icon color on hover */
.add-event-button:hover .icon {
  stroke: #ffffff;
}


/* Responsive */
@media (min-width: 768px) {
  .dashboard {
    flex-direction: row;
  }

  .mobile-nav {
    display: none;
  }
  .panel {
    display: block !important;
    /* Equal width for all panels */
    flex: 1;
    width: 33.333%;
  }

  .calendar-content {
    height: 50%;
  }
}

@media (max-width: 767px) {
  .panel {
    display: none;
  }

  .panel.active {
    display: block;
  }
}
