body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1000;
}

.panel.active {
  transform: translateX(-360px);
}

.toggle-btn {
  padding: 12px 24px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toggle-btn:active {
  transform: translateY(1px);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 12px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

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

.menu-item {
  padding: 16px;
  margin: 8px 0;
  background: #f8f9fa;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #333;
  user-select: none;
}

.menu-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.menu-item:active {
  transform: translateX(2px);
}

.content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: #333;
  margin-bottom: 1rem;
}

h2 {
  color: #444;
  margin-bottom: 1.5rem;
}

body.menu-open {
  overflow: hidden;
  padding-right: 15px; 
}

@media (max-width: 768px) {
  .panel {
    width: 280px;
  }
  
  .menu-item {
    padding: 14px;
  }
}