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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  height: 100vh;
  overflow: hidden;
}

/* Dashboard Layout */
.dashboard-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 60px 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  height: 100vh;
}

/* Header */
.dashboard-header {
  grid-area: header;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.header-title {
  font-size: 18px;
  font-weight: 500;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logout-btn {
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: #f5f5f5;
  color: #333;
}

/* Sidebar */
.dashboard-sidebar {
  grid-area: sidebar;
  background-color: #0066b3;
  color: white;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  height: 30px;
  margin-bottom: 10px;
}

.sidebar-title {
  font-size: 14px;
  opacity: 0.9;
  font-weight: normal;
}

.sidebar-menu {
  padding: 20px 0;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: white;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: 15px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.dashboard-main {
  grid-area: main;
  padding: 20px;
  overflow-y: auto;
}

.component-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* Component Styles */
.component-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.component-title {
  font-size: 20px;
  font-weight: 500;
  color: #0066b3;
}

.component-content {
  /* Style for component content */
}

/* Loading Indicator */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #0066b3;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }
  
  .dashboard-sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
    transition: left 0.3s ease;
  }
  
  .dashboard-sidebar.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
}