/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 0 20px 20px 0;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar.mobile-hidden {
  transform: translateX(-100%);
}

.user-info {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1rem;
}

.user-email {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.user-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

/* Navigation */
.nav-menu {
  list-style: none;
  margin-bottom: 2rem;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #666;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateX(5px);
}

.nav-icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.logout-btn {
  width: 100%;
  padding: 0.75rem;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #ff3742;
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  transition: margin-left 0.3s ease;
}

.main-content.mobile-full {
  margin-left: 0;
}

.mobile-header {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Sections */
.section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.section.hidden {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0 0.5rem;
}

.section-icon {
  font-size: 1.8rem;
}

/* Input Groups */
.input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea,
.input-group select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-danger {
  background: #ff4757;
  color: white;
}

.btn-danger:hover {
  background: #ff3742;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Lists */
.item-list {
  list-style: none;
}

.item {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-content {
  flex: 1;
  cursor: pointer;
}

.item.completed .item-content {
  text-decoration: line-through;
  opacity: 0.6;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
}

.task-priority {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.priority-high { background: #ff4757; color: white; }
.priority-medium { background: #ffa502; color: white; }
.priority-low { background: #2ed573; color: white; }

.task-date {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Weather Widget */
.weather-widget {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  text-align: center;
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.weather-temp {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.weather-desc {
  opacity: 0.9;
}

/* Time Widget */
.time-widget {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #a8e6cf, #88d8a3);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  color: #2d3436;
}

.current-time {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.current-date {
  opacity: 0.8;
  font-size: 1.1rem;
}

/* Pomodoro Timer */
.pomodoro-timer {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: white;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.timer-display {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.timer-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timer-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Quick Notes */
.quick-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.note-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.note-content {
  line-height: 1.5;
}

/* Calendar */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.calendar-day:hover {
  background: #667eea;
  color: white;
}

.calendar-day.today {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-visible {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .input-group {
    flex-direction: column;
  }

  .item {
    flex-direction: column;
    align-items: stretch;
  }

  .item-actions {
    margin-top: 1rem;
    justify-content: flex-end;
  }

  .timer-controls {
    flex-wrap: wrap;
  }

  .user-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}