:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #6366f1;

  --important: #ef4444;
  --medium: #f59e0b;
  --low: #10b981;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 24px;
}

.container {
  max-width: 900px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

/* Cards */
.note, .note-form, .calendar {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Inputs */
input, textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Buttons */
button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

button:hover {
  background: #4f46e5;
}

button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

button.secondary {
  background: #e5e7eb;
  color: #111;
}

button.secondary:hover {
  background: #d1d5db;
}

/* Notes */
.important { border-left: 5px solid var(--important); }
.medium { border-left: 5px solid var(--medium); }
.low { border-left: 5px solid var(--low); }

.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.meta {
  font-size: 12px;
  color: var(--muted);
}

/* Filter */
.filter-bar {
  display: flex;
  gap: 10px;
}

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day {
  background: #f3f4f6;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 4px auto 0;
}

.important-dot { background: var(--important); }
.medium-dot { background: var(--medium); }
.low-dot { background: var(--low); }

/* Dark Mode */
body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

body.dark .day {
  color: #1f2933;
}

body.dark input,
body.dark textarea,
body.dark select {
  background: #1e293b;
  color: #e5e7eb;
  border-color: #334155;
}

body.dark .note-form {
  background: #1e293b;
}

/* "Mein Tag" Section */
.my-day-section {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
  color: white;
}

.my-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.my-day-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.day-counter {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 600;
}

/* Container für die Notizen von "Mein Tag" */
.my-day-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stilisierung der Notiz-Cards in "Mein Tag" Bereich */
.my-day-container .note {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 14px;
  margin-bottom: 0;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-day-container .note:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

/* Button speziell im "Mein Tag" Bereich: "Aus meinem Tag entfernen" */
.my-day-btn {
  background: #ef4444 !important;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease;
  margin-left: 8px;
}

.my-day-btn:hover {
  background: #dc2626 !important;
}

/* Leerzustand */
.my-day-empty {
  text-align: center;
  padding: 20px;
  opacity: 0.9;
  display: none;
}

.my-day-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Button für "Zu Mein Tag" in normaler Notiz-Liste */
.my-day-toggle {
  background: #6366f1 !important;
  margin-left: 8px;
}

.my-day-toggle:hover {
  background: #4f46e5 !important;
}

/* Dark Mode für "Mein Tag" */
body.dark .my-day-section {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

body.dark .my-day-container .note {
  background: rgba(30, 41, 59, 0.95);
  color: var(--text);
}

body.dark .my-day-empty {
  color: #cbd5e1;
}
