.dashboard-page {
  overflow-y: scroll;
  height: 100vh; /* Adjust height as needed */
  /* Hide scrollbar */
  ::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Red dot pulse animation for notifications */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

html {
  font-size: 16px;
}
body {
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f9fafb;
  overflow: hidden;
}
svg {
  vertical-align: bottom;
}

/* Card/Tile Layout Styles */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  backdrop-filter: blur(4px);
}

.card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-status-badge.active {
  background: #10b981;
  color: white;
}

.card-status-badge.inactive {
  background: #ef4444;
  color: white;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  flex: 1;
}

.card-meta-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  gap: 8px;
}

.card-meta-item svg {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.card-meta-label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
}

.card-meta-value {
  color: #6b7280;
}

.card-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.card-button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-button-primary {
  background: #2563eb;
  color: white;
  border: none;
}

.card-button-primary:hover {
  background: #1d4ed8;
  color: white;
}

.card-button-secondary {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
}

.card-button-secondary:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.cards-container {
  padding: 20px;
  background: #f9fafb;
}

.cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.cards-search {
  flex: 1;
  min-width: 300px;
}

.cards-view-toggle {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.view-toggle-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #6b7280;
}

.view-toggle-btn.active {
  background: #2563eb;
  color: white;
}

.view-toggle-btn:hover:not(.active) {
  background: #f3f4f6;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-results-icon {
  font-size: 64px;
  margin-bottom: 16px;
  color: #d1d5db;
}

.no-results-title {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.no-results-text {
  font-size: 14px;
  color: #6b7280;
}

/* Tree Card Specific Styles */
.tree-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.tree-card .card-image-wrapper {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card-image-wrapper {
    height: 200px;
  }
  
  .cards-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cards-search {
    min-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.day.page-wrapper {
  color: #333;
  background-color: #f9fafb;
}
.night.page-wrapper {
  color: #fff;
  background-color: #4a4a4a;
}

.day.page-wrapper a {
  color: #333;
}
.night.page-wrapper a {
  color: #fff;
}

.day .topbar,
.day .leftbar {
  background-color: #fff;
}
.night .topbar,
.night .leftbar {
  background-color: #333;
}

.MuiTable-root th {
  font-size: 13px;
  font-weight: 600;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.MuiTable-root td {
  font-size: 13px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/*login*/
.login_cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  box-shadow: 0 20px 25px -5px #0000001a, 0 10px 10px -5px #0000000a;
  border-radius: 10px;
  overflow: hidden;
  margin: 35px 10px;
}
.login_cover_img {
  display: inline-flex;
  width: 50%;
  position: relative;
  height: 100%;
}
.login_cover_img img {
  object-fit: cover;
}
.login_cover_field {
  display: inline-flex;
  width: 50%;
  flex-direction: column;
  padding: 45px;
}
.loginput-box {
  margin-bottom: 15px;
  position: relative;
}
.loginput-box label {
  display: block;
}
.loginput-box input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  box-shadow: none;
  border: 1px solid #000;
}
.loginput-box button.eye {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: transparent;
  border: none;
  top: 30px;
}
.loginput-box button.eye svg {
  font-size: 20px;
}
.loginput-box button {
}
/*login*/

/*topbar*/
.topbar {
  box-shadow: 0 1px 2px #0000000d;
  z-index: 30;
  position: relative;
  padding: 15px 0;
  background-color: #fff;
}
.topbar-icon-list {
}
.topbar-icon-list ul {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
}
.topbar-icon-list ul li {
  list-style-type: none;
  display: inline-block;
  cursor: pointer;
}
.topbar-icon-list ul li svg {
  width: 20px;
  height: 20px;
}
/*topbar*/

/*leftbar*/
.leftbar {
  width: 250px;
  box-shadow: 0 1px 2px #0000000d;
  background-color: #fff;
  overflow-y: scroll;
  z-index: 50;
  height: 100vh; /* Adjust height as needed */
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  /* Hide scrollbar */
  ::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Close button for mobile sidebar */
.leftbar-close-btn {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  color: #333;
  transition: all 0.2s ease;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leftbar-close-btn:hover {
  background-color: #e5e7eb;
  transform: scale(1.05);
}

.leftbar-close-btn:active {
  transform: scale(0.95);
}

.night .leftbar-close-btn {
  background: #4b5563;
  color: #fff;
}

.night .leftbar-close-btn:hover {
  background-color: #6b7280;
}

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
  pointer-events: auto;
}

.sidebar-overlay.show {
  display: block;
}

/* Only show overlay on mobile */
@media (min-width: 992px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Mobile sidebar styles */
@media (max-width: 991px) {
  .leftbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
  }
  
  .leftbar.show {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  }
  
  .leftbar-close-btn {
    display: flex !important;
  }
  
  .leftbar-logo {
    margin-right: 60px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.leftbar_div {
}
.leftbar-logo {
  position: relative;
  height: 50px;
  margin: 15px;
}
.leftbar-logo img {
}
.leftbar-links {
  max-height: 80vh;
  overflow-y: auto;
}
.leftbar-links ul {
}
.leftbar-links ul li {
  list-style-type: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
  cursor: pointer;
}
.leftbar-links ul li a {
  color: #000;
}
.leftbar-links ul li svg {
  font-size: 22px;
}
.leftbar-links ul li span {
  vertical-align: top;
}

.leftbar-links > ul > li > ul {
  display: none;
  padding-left: 15px;
}
.leftbar-links > ul > li.active > ul {
  display: block;
}
.leftbar-links > ul > li.active > ul > li > ul {
  display: none;
}
.leftbar-links > ul > li.active > ul > li > ul li {
  padding: 5px 0;
}

.logout-btn {
  padding: 0 30px;
  margin-bottom: 50px;
  margin-top: 20px;
}
.logout-btn button {
  width: 100%;
}
/*leftbar */

/*dasboard*/
.page-wrapper {
  height: 100vh;
}
.pagewrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}
.dashboard-page {
  overflow-y: auto;
  height: 100%;
  padding-bottom: 25px;
}
.dashboard-sale-box-row {
  display: flex;
  gap: 20px;
}
.dashboard-sale-box {
  text-align: center;
  padding: 15px;
  color: #fff;
  border-radius: 10px;
  flex: 1;
}
.dashboard-sale-box svg {
  font-size: 35px;
}
.dashboard-sale-box p {
}
.dashboard-sale-box b {
}
.dashboard-sale-box span {
}

.dashboard-order-row {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.dashboard-order-box {
  flex: 1;
  display: flex;
  flex-direction: row;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 5px;
}
.dashboard-order-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-order-icon svg {
  font-size: 25px;
}
.dashboard-order-txt {
  margin-left: 10px;
}
.error-text{
  font-size: 13px;
  color: red;
}
.dashboard-value-box {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
  border: 1px dashed #f1f5f7;
  border-radius: 0.25rem;
}
.dashboard-value-box-icon {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-value-box-icon span {
  font-size: 15px;
}
.dashboard-value-box-icon1 {
  border: 1px dashed #000;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
.dashboard-value-box-icon1 svg {
  font-size: 25px;
}
.dashboard-value-box-count {
  border-top: 1px solid #00000021 !important;
  padding: 15px;
}
.dashboard-value-box-count span {
  display: flex;
  justify-content: space-between;
  color: rgba(0, 0, 0, 0.7);
}

.night .dashboard-order-box {
  background-color: #333;
}

.dashboard-bar-chart {
}
.circlechart {
  padding: 0 130px;
}

.dashboard-table {
  margin: 50px 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.dashboard-table table {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.dashboard-table th,
.dashboard-table td {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.dashboard-table-icon {
}
.dashboard-table-icon svg {
  font-size: 18px;
  margin-right: 10px;
  cursor: pointer;
}
/*dashboard*/
/*products*/
.product_detail_tabs {
}
.product_detail_tabs li {
  list-style-type: none;
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
}
.product_detail_tabs li.active {
  color: green;
  border-bottom: 1px solid green;
}
.page-header {
  font-weight: 500;
  font-size: 25px;
}
/*products*/
/*addProduct*/

.input-head {
}
.input-field {
  margin-bottom: 20px;
}
/*image upload*/
.thumbsContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 16px;
}
.thumb {
  display: inline-flex;
  border-radius: 2px;
  border: 1px solid #eaeaea;
  margin-bottom: 8px;
  margin-right: 8px;
  width: 100px;
  height: 100px;
  padding: 4px;
  box-sizing: border-box;
}
.thumbInner {
  display: flex;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100px;
  margin-right: 10px;
}
.thumbInner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media only screen and (max-device-width: 500px) {
  .login_cover {
    flex-direction: column;
  }
  .login_cover_img {
    width: 100%;
  }
  .login_cover_field {
    width: 100%;
    padding: 45px 15px;
  }

  .dashboard-sale-box-row {
    flex-direction: column;
  }
  .dashboard-order-row {
    flex-direction: column;
  }
  .circlechart {
    padding: 0;
  }

  .css-10cbwbc-MuiTableRow-root.MuiTableRow-hover:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    display: block;
  }
  .MuiTable-root th {
    display: none;
  }
  .MuiTable-root td {
    display: block;
    position: relative;
    text-align: right;
    padding-left: 100px;
  }
  .MuiTable-root td:before {
    content: attr(data-attr);
    position: absolute;
    left: 15px;
    font-size: 13px;
    font-weight: 600;
  }
}

.skeleton-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  gap: 20px;
}

.skeleton-main-container {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.skeleton-box {
  width: 30%;
  height: 50px;
  background-color: #e0e0e0;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
}

.skeleton-image-box {
  width: 30%;
  height: 50px;
  background-color: #e0e0e0;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
}

/* Dashboard Section Styling */
.dashboard-section {
  margin: 30px 0;
  padding: 0 15px;
  position: relative;
}

.dashboard-section::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
  margin-top: 30px;
}

.dashboard-section:last-child::after {
  display: none;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}

.night .section-title {
  color: #e5e7eb;
  border-bottom-color: #4b5563;
}

.night .dashboard-section::after {
  background: linear-gradient(to right, transparent, #4b5563 20%, #4b5563 80%, transparent);
}

/* Metrics Summary Section */
.metrics-summary-section,
.dashboard-section {
  margin: 30px 0;
  padding: 0 15px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.metrics-title {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.metrics-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metrics-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  border-top: 4px solid;
  transition: all 0.3s ease;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
}

.metrics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  color: inherit !important;
}

.metrics-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 0 12px 0 60px;
}

.metrics-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.metrics-card:hover .metrics-card-icon {
  transform: scale(1.1);
}

.metrics-card-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.metrics-card-content h6 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.metrics-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.2;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.metrics-subtitle {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Dark mode support */
.night .metrics-card {
  background: linear-gradient(135deg, #374151 0%, #2f3349 100%);
  border-color: #4b5563;
}

.night .metrics-title {
  color: #e5e7eb;
}

.night .metrics-card-content h6 {
  color: #9ca3af;
}

.night .metrics-value {
  color: #f9fafb;
}

.night .metrics-subtitle {
  color: #6b7280;
}

/* Responsive design */
@media (max-width: 768px) {
  .metrics-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .metrics-card {
    padding: 20px;
  }
  
  .metrics-value {
    font-size: 28px;
  }
  
  .metrics-title {
    font-size: 18px;
    text-align: left;
  }
  
  .dashboard-section,
  .metrics-summary-section {
    padding: 0 10px;
  }
  
  /* Projects List horizontal scrolling on tablets */
  .dashboard-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin: 20px 0;
  }
  
  .dashboard-table table {
    min-width: 800px; /* Ensure table doesn't compress too much */
  }
  
  /* Filter controls responsive */
  .dashboard-section > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }
  
  .dashboard-section select,
  .dashboard-section button {
    width: 100%;
    max-width: 100%;
    min-width: auto !important;
  }
  
  /* Custom date inputs wrapper */
  .dashboard-section > div:first-child > div:last-child {
    flex-direction: column !important;
    width: 100%;
  }
  
  .dashboard-section input[type="date"],
  .dashboard-section button {
    width: 100% !important;
  }
  
  /* Ensure cards in expanded sections stack properly */
  .dashboard-section [style*="display: flex"] {
    flex-direction: column !important;
  }
  
  .dashboard-section [style*="gap: 16px"] {
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .metrics-card {
    padding: 16px;
  }
  
  .metrics-value {
    font-size: 24px;
  }
  
  .metrics-card-icon {
    width: 48px;
    height: 48px;
  }
  
  .metrics-card-content h4,
  .metrics-card-content h6 {
    font-size: 12px;
  }
  
  /* Make filter selects and buttons stack properly */
  .dashboard-section h4.metrics-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .dashboard-section > div:first-child {
    padding: 0;
  }
  
  /* Improve spacing for small screens */
  .dashboard-section {
    margin: 20px 0;
    padding: 0 8px;
  }
  
  .metrics-summary-section {
    padding: 0 8px;
  }
  
  /* Better text readability on mobile */
  .metrics-subtitle {
    font-size: 12px;
  }
  
  /* Projects List horizontal scrolling on small screens */
  .dashboard-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin: 20px 0;
  }
  
  .dashboard-table table {
    min-width: 800px; /* Ensure table doesn't compress too much */
  }
}

/* Notification Bell Styles */
.notification-bell-container {
  position: relative;
  display: inline-block;
}

.notification-badge {
  cursor: pointer;
}

.notification-badge .MuiBadge-badge {
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
}

.notification-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 380px;
  max-height: 500px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.2s ease-out;
}

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

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.notification-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: #009933;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mark-all-read-btn:hover {
  background-color: #e6f7ec;
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
  position: relative;
}

.notification-item:hover {
  background-color: #f9fafb;
}

.notification-item.unread {
  background-color: #f0fdf4;
}

.notification-item.unread:hover {
  background-color: #e6f7ec;
}

.notification-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  word-wrap: break-word;
}

.notification-time {
  font-size: 12px;
  color: #6b7280;
}

.notification-unread-indicator {
  width: 8px;
  height: 8px;
  background-color: #009933;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 8px;
  margin-top: 4px;
}

.notification-footer {
  border-top: 1px solid #e5e7eb;
  padding: 12px 20px;
  text-align: center;
  background-color: #f9fafb;
}

.view-all-link {
  color: #009933;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #007a29;
  text-decoration: underline;
}

.no-notifications {
  padding: 40px 20px;
  text-align: center;
}

.no-notifications p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* Dark mode support */
.night .notification-dropdown {
  background-color: #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.night .notification-header {
  background-color: #111827;
  border-bottom-color: #374151;
}

.night .notification-header h3 {
  color: #f9fafb;
}

.night .mark-all-read-btn {
  color: #10b981;
}

.night .mark-all-read-btn:hover {
  background-color: #1f2937;
}

.night .notification-item {
  border-bottom-color: #374151;
  color: #e5e7eb;
}

.night .notification-item:hover {
  background-color: #111827;
}

.night .notification-item.unread {
  background-color: #1a2e23;
}

.night .notification-item.unread:hover {
  background-color: #0f1e16;
}

.night .notification-title {
  color: #f9fafb;
}

.night .notification-time {
  color: #9ca3af;
}

.night .notification-footer {
  background-color: #111827;
  border-top-color: #374151;
}

.night .view-all-link {
  color: #10b981;
}

.night .view-all-link:hover {
  color: #34d399;
}

.night .no-notifications p {
  color: #9ca3af;
}

/* Responsive styles for notifications */
@media (max-width: 480px) {
  .notification-dropdown {
    width: 320px;
    right: -10px;
  }

  .notification-header {
    padding: 12px 16px;
  }

  .notification-header h3 {
    font-size: 16px;
  }

  .notification-item {
    padding: 12px 16px;
  }

  .notification-title {
    font-size: 13px;
  }

  .notification-icon {
    font-size: 20px;
  }
}
