

html {
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background-color: #fcfcf9;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 550;
  line-height: 1.2;
  color: #1f2937;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 30px;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 18px;
}
h5 {
  font-size: 16px;
}
h6 {
  font-size: 14px;
}

p {
  margin: 0 0 16px 0;
}

a {
  color: #33808d;
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: #1d7480;
}

code,
pre {
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background-color: rgba(94, 82, 64, 0.12);
  border-radius: 6px;
}

code {
  padding: 1px 4px;
}

pre {
  padding: 16px;
  margin: 16px 0;
  overflow: auto;
  border: 1px solid rgba(94, 82, 64, 0.2);
}

pre code {
  background: none;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.4);
}

.btn--primary {
  background: #33808d;
  color: #fcfcf9;
}

.btn--primary:hover {
  background: #1d7480;
}

.btn--primary:active {
  background: #1a6873;
}

.btn--secondary {
  background: rgba(94, 82, 64, 0.12);
  color: #1f2937;
}

.btn--secondary:hover {
  background: rgba(94, 82, 64, 0.2);
}

.btn--secondary:active {
  background: rgba(94, 82, 64, 0.25);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(94, 82, 64, 0.2);
  color: #1f2937;
}

.btn--outline:hover {
  background: rgba(94, 82, 64, 0.12);
}

.btn--sm {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn--lg {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 10px;
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid rgba(94, 82, 64, 0.2);
  border-radius: 8px;
  transition: border-color 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

textarea.form-control {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

select.form-control {
  padding: 8px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 32px;
}

.form-control:focus {
  border-color: #33808d;
  outline: 2px solid #33808d;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(94, 82, 64, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.card__body {
  padding: 16px;
}

.card__header,
.card__footer {
  padding: 16px;
  border-bottom: 1px solid rgba(94, 82, 64, 0.12);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 12px;
}

.status--success {
  background-color: rgba(33, 128, 141, 0.15);
  color: #33808d;
  border: 1px solid rgba(33, 128, 141, 0.25);
}

.status--error {
  background-color: rgba(192, 21, 47, 0.15);
  color: #c0152f;
  border: 1px solid rgba(192, 21, 47, 0.25);
}

.status--warning {
  background-color: rgba(168, 75, 47, 0.15);
  color: #a84b2f;
  border: 1px solid rgba(168, 75, 47, 0.25);
}

.status--info {
  background-color: rgba(98, 108, 113, 0.15);
  color: #626c71;
  border: 1px solid rgba(98, 108, 113, 0.25);
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: 4px;
}
.gap-8 {
  gap: 8px;
}
.gap-16 {
  gap: 16px;
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: 8px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mx-8 {
  margin-left: 8px;
  margin-right: 8px;
}
.my-8 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.px-8 {
  padding-left: 8px;
  padding-right: 8px;
}
.py-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.px-16 {
  padding-left: 16px;
  padding-right: 16px;
}

.block {
  display: block;
}
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid #33808d;
  outline-offset: 2px;
}

.app-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #8b5cf6 0%, #f472b6 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.main-content {
  flex: 1;
  padding: 24px;
}

.calendar-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

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

.current-date-info {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.current-date-text {
  font-size: 20px;
  font-weight: 550;
  color: #1f2937;
  margin: 0;
}

.current-year {
  font-size: 30px;
  font-weight: 600;
  color: #33808d;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.current-year:hover {
  background: rgba(51, 128, 141, 0.1);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-btn {
  background: rgba(94, 82, 64, 0.12);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #1f2937;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.control-btn:hover {
  background: rgba(94, 82, 64, 0.2);
  transform: scale(1.05);
}

.month-year-display {
  font-size: 18px;
  font-weight: 550;
  color: #1f2937;
  margin: 0;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.month-year-display:hover {
  background: rgba(94, 82, 64, 0.1);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(94, 82, 64, 0.2);
  z-index: 1000;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  color: #1f2937;
}

.dropdown-item:hover {
  background: rgba(94, 82, 64, 0.1);
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item.current {
  background: #33808d;
  color: #ffffff;
  font-weight: 550;
}

.dropdown-item.current:hover {
  background: #1d7480;
}

.year-dropdown {
  position: relative;
  display: inline-block;
}

.year-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(94, 82, 64, 0.2);
  z-index: 1000;
  min-width: 120px;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.year-dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.year-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.year-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.year-dropdown-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.year-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.calendar-grid {
  margin-bottom: 24px;
}

.days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 550;
  color: #6b7280;
  padding: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  font-weight: 500;
  border: 2px solid transparent;
  background: transparent;
}

.day-cell:hover {
  background: rgba(94, 82, 64, 0.12);
  transform: scale(1.05);
}

.day-cell.other-month {
  color: #6b7280;
  opacity: 0.5;
}

.day-cell.other-month:hover {
  background: rgba(33, 128, 141, 0.1);
}

.day-cell.today {
  background: #fbbf24;
  color: #ffffff;
  font-weight: 600;
  border: 2px solid transparent;
}

.day-cell.today:hover {
  background: #f59e0b;
  transform: scale(1.05);
}

.day-cell.selected {
  background: #33808d;
  color: #fcfcf9;
  font-weight: 600;
  border: 2px solid transparent;
}

.day-cell.selected:hover {
  background: #1d7480;
  transform: scale(1.05);
}

.day-cell.today-selected {
  background: #33808d;
  color: #fcfcf9;
  border: 2px solid #fbbf24;
  font-weight: 600;
}

.day-cell.today-selected:hover {
  background: #1d7480;
  border-color: #f59e0b;
}

.day-cell.has-events::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 9999px;
}

.day-cell.today.has-events::after,
.day-cell.selected.has-events::after,
.day-cell.today-selected.has-events::after {
  background: #ffffff;
}

.add-event-btn {
  background: linear-gradient(135deg, #33808d, #1d7480);
  color: #fcfcf9;
  border: none;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  display: block;
  margin: 0 auto;
}

.add-event-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(1);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.modal.hidden .modal-content {
  transform: scale(0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(94, 82, 64, 0.2);
}

.modal-header h3 {
  margin: 0;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close:hover {
  color: #1f2937;
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.event-item {
  background: rgba(59, 130, 246, 0.08);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid #33808d;
}

.event-item h4 {
  margin: 0 0 4px 0;
  color: #1f2937;
}

.event-item p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.event-type {
  display: inline-block;
  padding: 2px 8px;
  background: #33808d;
  color: #fcfcf9;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 8px;
}

.event-type.work { background: #3b82f6; }
.event-type.personal { background: #10b981; }
.event-type.celebration { background: #f59e0b; }
.event-type.other { background: #6b7280; }

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-content {
    padding: 16px;
    margin-top: 60px;
  }

  .calendar-container {
    padding: 16px;
  }

  .calendar-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .current-date-info {
    flex-direction: column;
    gap: 8px;
  }

  .current-date-text {
    font-size: 18px;
  }

  .current-year {
    font-size: 24px;
  }

  .days-grid {
    gap: 4px;
  }

  .day-cell {
    font-size: 12px;
  }

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

  .dropdown-content,
  .year-dropdown-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 50vh;
  }

  .dropdown-content.show,
  .year-dropdown-content.show {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 480px) {
  .days-header {
    gap: 4px;
  }

  .day-header {
    font-size: 11px;
    padding: 4px;
  }

  .days-grid {
    gap: 2px;
  }

  .day-cell {
    font-size: 11px;
  }

  .modal-body {
    padding: 16px;
  }
}


    
