:root {
  --fawn: #f7b267;
  --atomic-tangerine: #f79d65;
  --coral: #f4845f;
  --bittersweet: #f27059;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8f9fa;
  --gray-medium: #dee2e6;
  --gray-dark: #495057;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.25);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: "Comic Sans MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fun animated background patterns */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(247, 178, 103, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 132, 95, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(247, 157, 101, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: floatingBg 20s ease-in-out infinite alternate;
}

@keyframes floatingBg {
  0% { transform: translateX(-10px) translateY(-10px); }
  100% { transform: translateX(10px) translateY(10px); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px;
  position: relative;
}

/* Header */
.header {
  background: var(--black);
  color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg);
}

.header::before {
  content: '✨';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

.header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  animation: bounceIn 1s ease-out;
}

.header h1 i {
  margin-right: 15px;
  color: var(--fawn);
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.header-actions {
  display: flex;
  gap: 15px;
}

/* Buttons */
.btn {
  padding: 15px 25px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  list-style: none;
  position: relative;
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  transform: perspective(1000px) rotateY(-2deg);
}

.btn-primary:hover {
  background: var(--bittersweet);
  transform: perspective(1000px) rotateY(0deg) translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--atomic-tangerine);
  color: var(--white);
  transform: perspective(1000px) rotateY(2deg);
}

.btn-secondary:hover {
  background: var(--coral);
  transform: perspective(1000px) rotateY(0deg) translateY(-5px) scale(1.05);
}

.btn-small {
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 15px;
}

.btn-danger {
  background: var(--bittersweet);
  color: var(--white);
}

.btn-danger:hover {
  background: #e85a47;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Dashboard Stats */
.dashboard {
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 25px;
  transition: var(--transition);
  border: 3px solid var(--gray-medium);
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}

.stat-card:nth-child(even) {
  transform: rotate(1deg);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(247, 178, 103, 0.05) 5deg,
    transparent 10deg
  );
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: var(--fawn);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  position: relative;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.stat-card:nth-child(1) .stat-icon {
  background: var(--coral);
  animation-delay: -0.5s;
}

.stat-card:nth-child(2) .stat-icon {
  background: #28a745;
  animation-delay: -1s;
}

.stat-card:nth-child(3) .stat-icon {
  background: var(--atomic-tangerine);
  animation-delay: -1.5s;
}

.stat-card:nth-child(4) .stat-icon {
  background: var(--bittersweet);
  animation-delay: -2s;
}

.stat-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.stat-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.stat-info p {
  color: var(--gray-dark);
  font-size: 16px;
  font-weight: 500;
}

/* AI Suggestions */
.ai-suggestions {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 3px solid var(--gray-medium);
  position: relative;
  transform: perspective(1000px) rotateX(-1deg);
}

.ai-suggestions::before {
  content: '🤖';
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 30px;
  background: var(--white);
  padding: 5px 10px;
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.ai-suggestions h2 {
  color: var(--black);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: 700;
}

.ai-suggestions h2 i {
  color: var(--atomic-tangerine);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px var(--atomic-tangerine)); }
  to { filter: drop-shadow(0 0 15px var(--atomic-tangerine)); }
}

.ai-plan {
  background: var(--fawn);
  padding: 25px;
  border-radius: var(--border-radius);
  border-left: 6px solid var(--coral);
  position: relative;
  overflow: hidden;
}

.ai-plan::before {
  content: '💡';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  animation: lightbulb 3s ease-in-out infinite;
}

@keyframes lightbulb {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.5; }
}

.ai-plan-item {
  padding: 15px 0;
  border-bottom: 2px dotted var(--gray-medium);
  list-style: none;
  position: relative;
  padding-left: 30px;
}

.ai-plan-item::before {
  content: '⭐';
  position: absolute;
  left: 0;
  top: 15px;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

.ai-plan-item:last-child {
  border-bottom: none;
}

.ai-plan-item strong {
  color: var(--black);
  font-weight: 700;
}

/* Controls */
.controls {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  border: 3px solid var(--gray-medium);
  position: relative;
}

.controls::before {
  content: '🔍';
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 30px;
  background: var(--white);
  padding: 5px 10px;
  border-radius: 50%;
  animation: searchPulse 3s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 20px;
  color: var(--gray-dark);
  z-index: 10;
  animation: searchIcon 4s ease-in-out infinite;
}

@keyframes searchIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.search-box input {
  padding: 18px 20px 18px 55px;
  border: 3px solid var(--gray-medium);
  border-radius: var(--border-radius);
  font-size: 16px;
  width: 350px;
  transition: var(--transition);
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  background: var(--white);
}

.search-box input:focus {
  outline: none;
  border-color: var(--coral);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(244, 132, 95, 0.3);
}

.filters {
  display: flex;
  gap: 15px;
}

.filters select {
  padding: 18px 20px;
  border: 3px solid var(--gray-medium);
  border-radius: var(--border-radius);
  font-size: 16px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  font-weight: 600;
}

.filters select:focus {
  outline: none;
  border-color: var(--coral);
  transform: scale(1.02);
}

/* Tasks Section */
.tasks-section {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 3px solid var(--gray-medium);
  position: relative;
}

.tasks-section::before {
  content: '📝';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  background: var(--white);
  padding: 5px 15px;
  border-radius: 50%;
  z-index: 10;
  animation: taskIcon 4s ease-in-out infinite;
}

@keyframes taskIcon {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.section-header {
  background: var(--black);
  color: var(--white);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--fawn);
  animation: progressBar 3s ease-in-out infinite;
}

@keyframes progressBar {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: 700;
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-toggle .btn {
  background: var(--coral);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 14px;
}

.view-toggle .btn.active {
  background: var(--fawn);
  color: var(--black);
  animation: activeTab 0.5s ease-out;
}

@keyframes activeTab {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.tasks-container {
  padding: 30px;
}

.task-item {
  background: var(--gray-light);
  border: 3px solid transparent;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  list-style: none;
  overflow: hidden;
  transform: perspective(1000px) rotateY(1deg);
}

.task-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--atomic-tangerine);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}

.task-item:hover::before {
  transform: scaleY(1);
}

.task-item:hover {
  border-color: var(--atomic-tangerine);
  transform: perspective(1000px) rotateY(0deg) translateX(10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.task-item.completed {
  opacity: 0.8;
  background: #e8f5e8;
  position: relative;
}

.task-item.completed::after {
  content: '🎉';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  animation: celebration 2s ease-in-out infinite;
}

@keyframes celebration {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
}

.task-item.overdue {
  border-left: 6px solid var(--bittersweet);
  background: #ffeaea;
  animation: urgent 2s ease-in-out infinite;
}

@keyframes urgent {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 8px 25px rgba(242, 112, 89, 0.3); }
}

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

.task-info h3 {
  color: var(--black);
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
}

.task-info h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--coral);
  transition: var(--transition);
}

.task-item:hover .task-info h3::after {
  width: 100%;
}

.task-info .task-topic {
  color: var(--gray-dark);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.task-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.task-meta span {
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 20px;
  background: var(--fawn);
  color: var(--black);
  list-style: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  animation: tagFloat 6s ease-in-out infinite;
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.priority-high {
  background: var(--bittersweet) !important;
  color: var(--white) !important;
  animation: priorityHigh 1.5s ease-in-out infinite;
}

@keyframes priorityHigh {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.priority-medium {
  background: var(--atomic-tangerine) !important;
  color: var(--white) !important;
}

.priority-low {
  background: var(--coral) !important;
  color: var(--white) !important;
}

.task-actions {
  display: flex;
  gap: 12px;
}

.task-description {
  color: var(--gray-dark);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
}

.task-notes {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 2px dashed var(--gray-medium);
  margin-top: 20px;
  position: relative;
}

.task-notes::before {
  content: '📋';
  position: absolute;
  top: -12px;
  left: 15px;
  background: var(--white);
  padding: 0 8px;
  font-size: 20px;
}

.task-notes h4 {
  color: var(--black);
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
}

.task-notes-content {
  color: var(--gray-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* Calendar View */
.calendar-container {
  padding: 30px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background: var(--gray-medium);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 3px;
}

.calendar-day {
  background: var(--white);
  padding: 20px 12px;
  min-height: 140px;
  position: relative;
  transition: var(--transition);
  border-radius: 12px;
}

.calendar-day:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: var(--shadow-hover);
}

.calendar-day.other-month {
  background: var(--gray-light);
  color: var(--gray-dark);
}

.calendar-day.today {
  background: var(--fawn);
  position: relative;
}

.calendar-day.today::before {
  content: '🌟';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 16px;
  animation: todayStar 2s ease-in-out infinite;
}

@keyframes todayStar {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(360deg); }
}

.calendar-day-number {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}

.calendar-task {
  background: var(--coral);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 4px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition);
  font-weight: 600;
  position: relative;
}

.calendar-task::before {
  content: '📌';
  margin-right: 4px;
}

.calendar-task:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calendar-task.high-priority {
  background: var(--bittersweet);
  animation: highPriorityPulse 2s ease-in-out infinite;
}

@keyframes highPriorityPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 112, 89, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(242, 112, 89, 0); }
}

.calendar-task.completed {
  background: #28a745;
}

.calendar-task.completed::before {
  content: '✅';
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease;
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 3px solid var(--fawn);
  box-shadow: var(--shadow-hover);
}

@keyframes modalSlide {
  0% { 
    opacity: 0;
    transform: translateY(-100px) scale(0.8) rotate(-5deg);
  }
  100% { 
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.modal-header {
  background: var(--black);
  color: var(--white);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-header::before {
  content: '🎯';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  background: var(--white);
  padding: 5px 10px;
  border-radius: 50%;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.close {
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  padding: 5px;
  border-radius: 50%;
}

.close:hover {
  color: var(--fawn);
  transform: rotate(90deg) scale(1.1);
  background: rgba(247, 178, 103, 0.2);
}

.modal form {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--black);
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.form-group label::before {
  content: '🏷️';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 3px solid var(--gray-medium);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(244, 132, 95, 0.3);
}

.notes-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  padding: 15px;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  border: 2px dashed var(--gray-medium);
}

.toolbar-btn {
  padding: 12px 18px;
  border: none;
  background: var(--white);
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toolbar-btn:hover {
  background: var(--fawn);
  transform: translateY(-2px) scale(1.05);
}

.toolbar-btn.active {
  background: var(--coral);
  color: var(--white);
  animation: activeButton 0.5s ease-out;
}

@keyframes activeButton {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.notes-editor {
  min-height: 140px;
  padding: 20px;
  border: 3px solid var(--gray-medium);
  border-radius: var(--border-radius);
  background: var(--white);
  outline: none;
  line-height: 1.6;
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.notes-editor:focus {
  border-color: var(--coral);
  box-shadow: 0 0 20px rgba(244, 132, 95, 0.3);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px dashed var(--gray-medium);
}

/* Fun Loading Animation */
@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Confetti Animation */
@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 25px;
    transform: none;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card {
    transform: none;
    padding: 25px;
  }

  .stat-card:nth-child(even) {
    transform: none;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .search-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .filters {
    flex-wrap: wrap;
  }

  .filters select {
    flex: 1;
    min-width: 140px;
  }

  .task-header {
    flex-direction: column;
    gap: 15px;
  }

  .task-actions {
    justify-content: flex-start;
  }

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

  .modal-content {
    width: 95%;
    margin: 20px;
  }

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

  .calendar-day {
    min-height: 100px;
    padding: 12px 8px;
  }

  .calendar-day-number {
    font-size: 14px;
  }

  .calendar-task {
    font-size: 11px;
    padding: 3px 6px;
    margin-bottom: 3px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 20px;
    gap: 15px;
  }

  .stat-icon {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .stat-info h3 {
    font-size: 1.8rem;
  }

  .task-item {
    padding: 20px;
  }

  .calendar-day {
    min-height: 80px;
    padding: 8px 5px;
  }

  .calendar-day-number {
    font-size: 12px;
  }

  .calendar-task {
    font-size: 10px;
    padding: 2px 5px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .ai-suggestions,
  .controls,
  .tasks-section {
    margin-bottom: 25px;
  }
}

/* Print Styles */
@media print {
  .header-actions,
  .controls,
  .task-actions,
  .btn {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .task-item {
    break-inside: avoid;
    margin-bottom: 25px;
  }

  /* Remove animations for print */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Additional fun elements */
ul,
ol,
li {
  list-style: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--coral);
  border-radius: 10px;
  border: 2px solid var(--gray-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bittersweet);
}

/* Focus indicators for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(244, 132, 95, 0.3);
}

/* Playful cursor effects */
.btn,
.task-item,
.stat-card {
  cursor: pointer;
}

.btn:active {
  transform: scale(0.95);
}

/* Success states */
.success-animation {
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}