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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f5f5f7;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

.logo {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  background-color: #ff5722;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.close-btn {
  position: absolute;
  top: 4px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: none;
}

.nav-section {
  padding: 10px 0;
}

.section-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 500;
  color: #333;
}

.section-header:hover {
  background-color: #f5f5f5;
}

.section-icon {
  margin-right: 12px;
  font-size: 18px;
}

.section-expand {
  margin-left: auto;
  font-size: 12px;
  color: #999;
}

.nav-item {
  padding: 10px 20px 10px 52px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.nav-item:hover {
  background-color: #f5f5f5;
  color: #333;
}

.nav-item.active {
  background-color: #fff5f2;
  color: #ff5722;
  border-right: 3px solid #ff5722;
}

.nav-item.nested {
  padding-left: 72px;
  font-size: 13px;
}

.nav-divider {
  border-bottom: 1px solid #e0e0e0;
  margin: 10px 0;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 28px;
  color: #1a1a1a;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.phone {
  background-color: white;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.user-menu {
  background-color: #ff5722;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.stats-container {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.stats-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stats-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 15px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
  border-left: 3px solid #ff5722;
}

.stat-label {
  font-size: 13px;
  color: #666;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.events-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quick-actions {
  margin-top: 30px;
}

.quick-actions h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.primary {
  background-color: #ff5722;
  color: white;
}

.action-btn.primary:hover {
  background-color: #e64a19;
}

.action-btn.secondary {
  background-color: white;
  color: #1a1a1a;
  border: 1px solid #ddd;
}

.action-btn.secondary:hover {
  background-color: #f5f5f5;
}

.nav-section.collapsed .nav-item:not(.section-header) {
  display: none;
}

.nav-section.collapsed .section-expand {
  transform: rotate(-90deg);
}

.menu-toggle {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  margin-right: 15px;
}

@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    overflow: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    display: none;
  }

  .sidebar.show {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    overflow-y: auto;
  }

  .close-btn {
    margin-top: 18px;
    display: block;
  }

  .main-content {
    padding: 20px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .action-btn {
    font-size: 16px;
    padding: 14px;
  }

  .menu-toggle {
    display: inline-block;
  }
}
