/* Calendar-specific styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header h1 {
  color: #333;
}

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

.btn {
  padding: 10px 20px;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

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

.calendar-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.calendar-title {
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-btn {
  padding: 8px 12px;
  background: #669bea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.nav-btn:hover {
  background: #a24b8c;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #ddd;
  padding: 2px;
}

.day-header {
  background: #669bea;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

.calendar-day {
  background: white;
  padding: 10px;
  min-height: 100px;
  position: relative;
  border: 1px solid #eee;
}

.calendar-day.other-month {
  background: #f9f9f9;
  color: #ccc;
}

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

.day-events {
  font-size: 12px;
  overflow: hidden;
  max-height: 80px;
  max-width: 50px;
  text-overflow: ellipsis;
}

.day-event {
  background: #e3f2fd;
  padding: 3px 5px;
  margin: 2px 0;
  border-radius: 3px;
  border-left: 3px solid #669bea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}

.day-event_shared {
  background: #e3f2fd;
  padding: 3px 5px;
  margin: 2px 0;
  border-radius: 3px;
  border-left: 3px solid #a24b8c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}

.events-list {
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-card {
  border-left: 4px solid #669bea;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  background: #f9f9f9;
  transition: all .3s;
}

.event-card:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.event-card.shared {
  border-left-color: #4caf50;
}

.event-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.event-time {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.event-creator {
  color: #999;
  font-size: 12px;
  margin-bottom: 10px;
}

.event-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.share-form {
  display: flex;
  gap: 10px;
}

.share-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}

.share-form button {
  padding: 8px 15px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.share-form button:hover {
  background: #45a049;
}

.empty-message {
  text-align: center;
  color: #999;
  padding: 20px;
}

.btn-create-event {
  margin-bottom: 20px;
}