* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #7c3aed;
}

html[data-theme=dark] {
  color: #e5e7eb;
  background: #1f2937;
}

body.sidemenu-open {
  overflow: hidden;
}

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

.main {
  min-height: calc(100vh - 200px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: transparent;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidemenu-open .navbar {
  background: transparent !important;
  box-shadow: none !important;
}

.sidemenu-open .nav-brand,
.sidemenu-open .navbar.scrolled .nav-brand {
  color: #fff;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  transition: color 0.2s ease-in-out;
}

.navbar.scrolled .nav-brand {
  color: #1f2937;
}

.brand-icon {
  font-size: 1.5rem;
}

.sidemenu-toggle {
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 2001;
  flex-shrink: 0;
}
.sidemenu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 24px;
  background: #fff;
  border-radius: 1px;
  opacity: 1;
  left: 10px;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
  pointer-events: none;
}
.sidemenu-toggle span:nth-child(1) {
  top: 14px;
  width: 20px;
}
.sidemenu-toggle span:nth-child(2) {
  top: 22px;
}
.sidemenu-toggle span:nth-child(3) {
  top: 30px;
  width: 16px;
}
.sidemenu-toggle.open span {
  background: #fff;
}
.sidemenu-toggle.open span:nth-child(1) {
  top: 22px;
  width: 28px;
  height: 4px;
  transform: rotate(135deg);
}
.sidemenu-toggle.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}
.sidemenu-toggle.open span:nth-child(3) {
  top: 22px;
  width: 28px;
  height: 4px;
  transform: rotate(-135deg);
}

.navbar.scrolled .sidemenu-toggle span {
  background: #1f2937;
}

.navbar.scrolled .sidemenu-toggle.open span {
  background: #fff;
}

.sidemenu-main {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.sidemenu-open .sidemenu-main {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sidemenu-left {
  z-index: 1001;
  position: relative;
  height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, rgb(95.3302325581, 20.4279069767, 223.5720930233) 100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidemenu-left-content {
  padding: 0 2rem;
  padding-top: 5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidemenu-right {
  position: fixed;
  width: 100%;
  height: 100vh;
  right: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

@media (max-width: 768px) {
  .sidemenu-left {
    max-width: 100%;
  }
  .sidemenu-right {
    display: none;
  }
}
@media (min-width: 769px) {
  .sidemenu-left {
    max-width: 320px;
  }
}
.side-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-icon {
  font-size: 1.25rem;
}

.footer {
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

.text-muted {
  color: #6b7280;
}
html[data-theme=dark] .text-muted {
  color: #9ca3af;
}

.moments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.moment-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}
html[data-theme=dark] .moment-card {
  background: #111827;
  border-color: #374151;
}
.moment-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.moment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.moment-person {
  font-weight: 600;
  color: #7c3aed;
}

.moment-type {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #faf5ff;
  color: #7c3aed;
  text-transform: uppercase;
  font-weight: 500;
}

.moment-content {
  color: #1f2937;
  margin-bottom: 0.75rem;
}
html[data-theme=dark] .moment-content {
  color: #e5e7eb;
}

.moment-date {
  font-size: 0.85rem;
  color: #6b7280;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #3b0f80;
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
}
.btn-primary:hover {
  background: #2d0a66;
}

.btn-secondary {
  background: #ede9e6;
  color: #1f2937;
}
html[data-theme=dark] .btn-secondary {
  background: #111827;
  color: #e5e7eb;
}
.btn-secondary:hover {
  background: rgb(226.3255813953, 219.9534883721, 215.1744186047);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.home-card {
  display: block;
  background: white;
  padding: 3rem 2rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  border-right: 4px solid #4ecdc4;
  border-bottom: 4px solid #4ecdc4;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.home-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.home-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.footer {
  background: transparent;
}
.footer .text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.capture-form {
  max-width: 500px;
  margin: 0 auto;
}
.capture-form .form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.capture-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #1f2937;
}
.capture-form input[type=text],
.capture-form select,
.capture-form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.capture-form input[type=text]:focus,
.capture-form select:focus,
.capture-form textarea:focus {
  outline: none;
  border-color: #7c3aed;
}
.capture-form textarea {
  resize: vertical;
  min-height: 100px;
}