:root {
  --primary-color: #61dbd3;
  --primary-light: #bcf0da;
  --primary-dark: #293042;
  --text-color: #333333;
  --text-light: #777777;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --info-color: #2196f3;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --sidebar-width: 250px;
  --sidebar-collapsed: 70px;
  --header-height: 60px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.5;
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--primary-dark);
  color: var(--white);
  position: fixed;
  height: 100vh;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  z-index: 100;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.sidebar.collapsed .logo h1 {
  display: none;
}

.toggle-sidebar {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  gap: 0.75rem;
}

.sidebar-nav a:hover,
.sidebar-nav li.active > a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.sidebar-nav i {
  width: 1.5rem;
  text-align: center;
}

.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .sidebar-nav .fa-chevron-down {
  display: none;
}

.has-submenu {
  position: relative;
}

.has-submenu .fa-chevron-down {
  margin-left: auto;
  font-size: 0.75rem;
  transition: var(--transition);
}

.has-submenu.open .fa-chevron-down {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(0, 0, 0, 0.1);
}

.has-submenu.open .submenu {
  max-height: 300px;
}

.submenu a {
  padding-left: 3.5rem;
  font-size: 0.9rem;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  gap: 0.75rem;
}

.sidebar.collapsed .sidebar-footer span {
  display: none;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: var(--transition);
}

.sidebar.collapsed + .main-content {
  margin-left: var(--sidebar-collapsed);
}

/* Topbar Styles */
.topbar {
  height: var(--header-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  width: 300px;
}

.search-container i {
  color: var(--text-light);
  margin-right: 0.5rem;
}

.search-container input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text-color);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notification-btn {
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-light);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.user-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
}

/* Dashboard Containers */
.dashboard-container {
  padding: 1.5rem;
}

.welcome-section {
  margin-bottom: 1.5rem;
}

.welcome-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.welcome-section p {
  color: var(--text-light);
}

/* Stats Cards */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.user-icon {
  background-color: rgba(97, 219, 211, 0.15);
  color: var(--primary-color);
}

.service-icon {
  background-color: rgba(188, 240, 218, 0.3);
  color: var(--primary-dark);
}

.revenue-icon {
  background-color: rgba(41, 48, 66, 0.15);
  color: var(--primary-dark);
}

.alert-icon {
  background-color: rgba(244, 67, 54, 0.15);
  color: var(--danger-color);
}

.stat-info {
  flex: 1;
}

.stat-info h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-trend {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.positive {
  color: var(--success-color);
}

.stat-trend.negative {
  color: var(--danger-color);
}

.stat-breakdown {
  font-size: 0.75rem;
  color: var(--text-light);
}

.action-link {
  font-size: 0.75rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

/* Charts */
.charts-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .charts-container {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.chart-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-actions select {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  outline: none;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon-btn:hover {
  background-color: var(--bg-light);
}

.chart {
  height: 250px;
  display: flex;
  flex-direction: column;
}

.placeholder-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.color-dot.mobility {
  background-color: var(--primary-color);
}

.color-dot.delivery {
  background-color: var(--primary-dark);
}

.color-dot.picking {
  background-color: var(--primary-light);
}

.donut-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
}

.donut-chart {
  max-width: 180px;
  margin: 0 auto;
}

.donut-center-text {
  font-size: 12px;
  font-weight: 600;
  fill: var(--text-color);
}

/* Activities and Alerts */
.activities-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .activities-container {
    grid-template-columns: 1fr;
  }
}

.recent-activities-card,
.alerts-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(97, 219, 211, 0.15);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.activity-details {
  flex: 1;
}

.activity-details p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

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

.alert-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.alert-item.critical {
  background-color: rgba(244, 67, 54, 0.1);
}

.alert-item.warning {
  background-color: rgba(255, 152, 0, 0.1);
}

.alert-item.info {
  background-color: rgba(33, 150, 243, 0.1);
}

.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.alert-item.critical .alert-icon {
  background-color: rgba(244, 67, 54, 0.2);
  color: var(--danger-color);
}

.alert-item.warning .alert-icon {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--warning-color);
}

.alert-item.info .alert-icon {
  background-color: rgba(33, 150, 243, 0.2);
  color: var(--info-color);
}

.alert-details {
  flex: 1;
}

.alert-details h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-details p {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

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

.btn-small {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.btn-small.secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-collapsed);
  }
  
  .sidebar .logo h1,
  .sidebar .sidebar-nav span,
  .sidebar .sidebar-nav .fa-chevron-down,
  .sidebar .sidebar-footer span {
    display: none;
  }
  
  .main-content {
    margin-left: var(--sidebar-collapsed);
  }
  
  .stats-overview,
  .charts-container,
  .activities-container {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 1rem;
  }
  
  .search-container {
    width: 150px;
  }
  
  .user-name {
    display: none;
  }
}

