* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  padding: 24px;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 300;
}

.controls {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.main-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 24px;
}

.sidebar {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.sidebar h3 {
  margin: 0 0 16px 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-input {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.person-input input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.person-input input:focus {
  outline: none;
  border-color: #2196f3;
}

.add-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.person-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remove-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 4px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.calendar-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.month-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  background: #2196f3;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #1976d2;
  transform: scale(1.1);
}

.current-month {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.day-header {
  background: #37474f;
  color: white;
  padding: 12px 8px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.day-cell {
  background: white;
  min-height: 80px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-cell:hover {
  background: #f5f5f5;
}

.day-number {
  font-weight: 500;
  margin-bottom: 4px;
  color: #333;
}

.day-cell.other-month .day-number {
  color: #ccc;
}

.day-cell.today {
  background: #e3f2fd;
  border: 2px solid #2196f3;
}

.day-cell.weekend {
  background: #fff3e0;
}

.day-cell.holiday {
  background: #ffebee;
  border-left: 4px solid #f44336;
}

.assigned-person {
  background: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  margin-top: 4px;
  cursor: move;
  transition: all 0.3s ease;
}

.assigned-person:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.holiday-label {
  background: #f44336;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  margin-top: 2px;
}

.drag-over {
  background: #e8f5e8 !important;
  border: 2px dashed #4caf50 !important;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  .calendar {
    font-size: 12px;
  }

  .day-cell {
    min-height: 60px;
    padding: 4px;
  }
}
