@charset "UTF-8";
@font-face {
  font-family: "Britanica";
  src: url("fonts/britanica-bold.woff2") format("woff2"), url("fonts/britanica-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Britanica";
  src: url("fonts/britanica-extra-bold.woff2") format("woff2"), url("fonts/britanica-extra-bold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: -1;
  filter: brightness(0.3) saturate(0.6) grayscale(0.2);
}
.bg-layer.active {
  opacity: 1;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  font-size: 16px;
  font-weight: 300;
  color: #f8fafc;
  background: #0a0a0a;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(82, 82, 91, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(63, 63, 70, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(107, 114, 128, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .container {
    padding: 32px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1400px;
  }
}

.page-header {
  margin-bottom: 16px;
  position: relative;
  text-align: center;
}
.page-header span {
  color: #fed202;
}
.page-header h2 {
  font-weight: 300;
}
.page-header h1 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 4px;
  color: #ffffff;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .page-header h1 {
    font-size: 32px;
  }
}
.page-header .subtitle {
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 300;
}

.content-area {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: transparent;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
  .content-area {
    padding: 24px;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(51.5, 51.5, 51.5);
}

::selection {
  background: rgba(107, 114, 128, 0.3);
  color: #f8fafc;
}

::-moz-selection {
  background: rgba(107, 114, 128, 0.3);
  color: #f8fafc;
}

.app-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.app-credit-logo {
  font-family: "Britanica", Arial, sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: white;
  clip-path: inset(0 0 44% 0);
  line-height: 1;
  margin-bottom: -20px;
}

#main-nav {
  z-index: 1000;
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
  padding: 8px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-links {
  order: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links .mobile-logo {
  display: none;
}

.nav-logo {
  order: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex-shrink: 0;
}
.nav-logo a {
  display: inline-block;
  text-decoration: none;
}
.nav-logo a img {
  width: 60px;
  height: auto;
  display: block;
}
.nav-logo a h1 {
  color: white;
  font-size: 40px;
  font-weight: 300;
}
@media (max-width: 550px) {
  .nav-logo a h1 {
    font-size: 25px;
  }
}
.nav-logo a h1 span {
  color: #fed202;
}

.nav-user {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 80px;
  height: 42px;
  justify-content: flex-end;
}
.nav-user .loading-spinner {
  margin: 0 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
  font-size: 14px;
}
.nav-link .nav-icon {
  font-size: 30px;
}
.nav-link .nav-text {
  display: inline;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  color: #fed202;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 2px solid #fed202;
}

.logout-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fed202;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 24px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.logout-btn:hover {
  background: rgba(107, 114, 128, 0.2);
  color: #f8fafc;
}

.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 0px;
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}
.nav-hamburger span {
  width: 16px;
  height: 2px;
  background: #fed202;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-hamburger:hover {
  background: rgba(254, 210, 2, 0.1);
  border-color: #fed202;
}
.nav-hamburger.active {
  background: rgba(254, 210, 2, 0.1);
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  #main-nav {
    padding: 8px 0;
  }
  .nav-container {
    padding: 0 16px;
    gap: 12px;
  }
  .nav-hamburger {
    display: flex;
    order: 1;
  }
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
  }
  .nav-user {
    order: 3;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 48px;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-right: 1px solid rgba(100, 116, 139, 0.3);
  }
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
  }
  .nav-links .mobile-logo {
    display: block;
    color: white;
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 24px;
  }
  .nav-links .mobile-logo span {
    color: #fed202;
  }
  .nav-link {
    width: 100%;
    max-width: 300px;
    padding: 16px 24px;
    justify-content: flex-start;
    font-size: 18px;
    border: 1px solid rgba(100, 116, 139, 0.3);
  }
  .nav-link .nav-icon {
    font-size: 32px;
  }
  .nav-link .nav-text {
    display: inline;
  }
  .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    border: 0px;
  }
  .nav-link:hover {
    background: rgba(254, 210, 2, 0.15);
    border-color: transparent;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  .logout-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
@media (max-width: 640px) {
  #main-nav {
    padding: 4px 0;
  }
  .nav-container {
    padding: 0 12px;
  }
  .nav-logo a h1 {
    font-size: 25px;
  }
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  .logout-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
.greeting {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px 0;
}
.greeting h1 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #f8fafc;
}
.greeting h1 span {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.greeting p {
  font-size: 16px;
  color: #cbd5e1;
  font-weight: 300;
  margin-bottom: 4px;
}
.greeting .date-display {
  font-size: 12px;
  color: #64748b;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  text-align: center;
  background: rgba(254, 210, 2, 0.02);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #fed202;
}
.btn:hover {
  background: rgba(254, 210, 2, 0.09);
}
.btn:active {
  background: rgba(254, 210, 2, 0.12);
  transform: translateY(1px);
}
.btn .text {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
}
.btn.btn-primary {
  background: rgba(254, 210, 2, 0.02);
  color: #fed202;
  box-shadow: none;
}
.btn.btn-primary:hover {
  background: rgba(254, 210, 2, 0.09);
}
.btn.btn-primary:active {
  background: rgba(254, 210, 2, 0.12);
}
.btn.logged::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fed202;
  font-size: 16px;
  font-weight: 300;
  border-radius: 9999px;
  background: rgba(254, 210, 2, 0.17);
  z-index: 2;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 300;
  font-size: 14px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  color: #f8fafc;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 6px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1), none;
  background: rgba(26, 26, 26, 0.8);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(107, 114, 128, 0.5);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group .input-group {
  display: flex;
  gap: 8px;
}
.form-group .input-group input {
  flex: 1;
}
.form-group .input-group select {
  width: auto;
  min-width: 100px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal .modal-content {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 24px;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal .modal-header {
  margin-bottom: 24px;
}
.modal .modal-header h2 {
  font-size: 24px;
  font-weight: 300;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal .modal-actions button {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  background: rgba(254, 210, 2, 0.02);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #fed202;
}
.modal .modal-actions button.btn-primary {
  background: rgba(254, 210, 2, 0.02);
  color: #fed202;
  box-shadow: none;
}
.modal .modal-actions button.btn-primary:hover {
  background: rgba(254, 210, 2, 0.09);
}
.modal .modal-actions button.btn-primary:active {
  background: rgba(254, 210, 2, 0.12);
  transform: translateY(1px);
}
.modal .modal-actions button.btn-secondary {
  background: rgba(254, 210, 2, 0.01);
  color: rgba(254, 210, 2, 0.7);
}
.modal .modal-actions button.btn-secondary:hover {
  background: rgba(254, 210, 2, 0.05);
  color: #fed202;
}
.modal .modal-actions button.btn-secondary:active {
  background: rgba(254, 210, 2, 0.09);
  transform: translateY(1px);
}

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(254, 210, 2, 0.15);
  border-top-color: #fed202;
  border-radius: 9999px;
  animation: spin 0.6s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 25%, #1a1a1a 50%, rgba(26, 26, 26, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-day {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 12px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  width: 100%;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 25%, #1a1a1a 50%, rgba(26, 26, 26, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
.skeleton-line.short {
  width: 60%;
}
.skeleton-line.medium {
  width: 80%;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 25%, #1a1a1a 50%, rgba(26, 26, 26, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.loading-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(254, 210, 2, 0.2);
  border-top-color: #fed202;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.fade-in-slow {
  animation: fadeIn 0.5s ease-out;
}

.content-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.radio-group .radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 16px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 6px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.radio-group .radio-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 114, 128, 0.2);
}
.radio-group .radio-label input[type=radio] {
  cursor: pointer;
}
.radio-group .radio-label span {
  font-weight: 300;
}

.diary-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diary-section .diary-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.diary-section .diary-textarea:focus {
  outline: none;
  border-color: rgba(107, 114, 128, 0.5);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}
.diary-section .diary-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

textarea {
  width: 100%;
  padding: 12px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
textarea:focus {
  outline: none;
  border-color: rgba(107, 114, 128, 0.5);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .calendar-week {
    gap: 4px;
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .calendar-week::-webkit-scrollbar {
    height: 6px;
  }
  .calendar-week::-webkit-scrollbar-track {
    background: #0f0f0f;
  }
  .calendar-week::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 9999px;
  }
}
.calendar-week .calendar-day {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  min-height: 100px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .calendar-week .calendar-day {
    min-height: 120px;
    padding: 8px;
    min-width: 120px;
  }
}
@media (max-width: 480px) {
  .calendar-week .calendar-day {
    min-height: 100px;
    padding: 4px;
    min-width: 100px;
  }
}
.calendar-week .calendar-day::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(82, 82, 91, 0.15) 0%, rgba(39, 39, 42, 0.15) 100%);
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.calendar-week .calendar-day:hover {
  box-shadow: none, none;
}
.calendar-week .calendar-day:hover::before {
  opacity: 1;
}
.calendar-week .calendar-day .day-name {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 300;
}
.calendar-week .calendar-day .day-num {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 12px;
  color: #f8fafc;
}
.calendar-week .calendar-day .indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 300;
  min-height: 20px;
}
.calendar-week .calendar-day.today {
  background: rgba(107, 114, 128, 0.1);
  border: 2px solid #6b7280;
  box-shadow: none, none;
}
.calendar-week .calendar-day.today .day-num {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.calendar-week .calendar-day.selected {
  background: rgba(20, 20, 30, 0.8);
  border: 2px solid #fed202;
  overflow: hidden;
}
.calendar-week .calendar-day.selected::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.5) 0%, transparent 30%), radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.4) 0%, transparent 30%), radial-gradient(circle at 50% 50%, rgba(255, 193, 37, 0.35) 0%, transparent 30%), radial-gradient(circle at 70% 20%, rgba(205, 127, 50, 0.4) 0%, transparent 25%), radial-gradient(circle at 30% 80%, rgba(255, 223, 128, 0.3) 0%, transparent 25%);
  animation: gradientMeshFlow 6s ease-in-out infinite;
  opacity: 1;
  pointer-events: none;
}
.calendar-week .calendar-day.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 245, 214, 0.9), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255, 215, 0, 0.8), transparent), radial-gradient(1px 1px at 50% 50%, rgba(218, 165, 32, 0.9), transparent), radial-gradient(1px 1px at 80% 10%, rgba(255, 193, 37, 0.85), transparent), radial-gradient(2px 2px at 90% 60%, rgba(244, 229, 194, 0.9), transparent), radial-gradient(1px 1px at 15% 80%, rgba(205, 127, 50, 0.8), transparent), radial-gradient(2px 2px at 40% 20%, rgba(255, 223, 128, 0.8), transparent), radial-gradient(1px 1px at 65% 45%, rgba(255, 215, 0, 0.75), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particleFloat 15s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
.calendar-week .calendar-day.selected .day-num,
.calendar-week .calendar-day.selected .day-name,
.calendar-week .calendar-day.selected .indicators {
  position: relative;
  z-index: 2;
}
.calendar-week .calendar-day.selected .day-num {
  color: #FFF4D6;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 25px rgba(218, 165, 32, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.calendar-week .calendar-day:active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 480px) {
  .calendar-navigation {
    gap: 4px;
    margin-bottom: 16px;
  }
}
.calendar-navigation .nav-btn {
  padding: 12px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: none;
  border-radius: 6px;
  color: #fed202;
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  white-space: nowrap;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.calendar-navigation .nav-btn:hover {
  background: rgba(20, 20, 20, 0.75);
}
.calendar-navigation .nav-btn:active {
  background: rgba(254, 210, 2, 0.12);
  transform: translateY(1px);
}
@media (max-width: 768px) {
  .calendar-navigation .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 8px;
  }
}
@media (max-width: 480px) {
  .calendar-navigation .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    padding: 4px;
  }
}
.calendar-navigation .month-year {
  flex: 1;
  text-align: center;
  min-width: 120px;
}
@media (max-width: 480px) {
  .calendar-navigation .month-year {
    min-width: 100px;
  }
}
.calendar-navigation .month-year h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .calendar-navigation .month-year h2 {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .calendar-navigation .month-year h2 {
    font-size: 14px;
  }
}

.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.calendar-controls .btn-today {
  padding: 8px 24px;
  background: rgba(254, 210, 2, 0.05);
  color: #fed202;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.calendar-controls .btn-today:hover {
  background: rgba(254, 210, 2, 0.09);
}
.calendar-controls .btn-today:active {
  background: rgba(254, 210, 2, 0.12);
  transform: translateY(1px);
}
@media (max-width: 768px) {
  .calendar-controls .btn-today {
    padding: 4px 12px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .calendar-controls .btn-today {
    padding: 4px 8px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .calendar-controls {
    gap: 4px;
    flex-wrap: wrap;
  }
}

.day-details-container {
  margin-bottom: 16px;
  min-height: 400px;
}

.day-details {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 16px;
  border-radius: 8px;
  position: relative;
}
.day-details h3 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 300;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.day-details .select-day-prompt {
  text-align: center;
  color: #64748b;
  padding: 32px;
  font-size: 18px;
}

.day-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.day-details-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  color: #ffffff;
}
.day-details-header .day-quick-actions {
  display: flex;
  gap: 10px;
}
.day-details-header .day-quick-actions .btn-sm {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  white-space: nowrap;
  min-width: auto;
  width: auto;
  border-radius: 6px;
  background: rgba(254, 210, 2, 0.05);
  border: none;
  color: #fed202;
  box-shadow: none;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.day-details-header .day-quick-actions .btn-sm:hover {
  background: rgba(254, 210, 2, 0.09);
}
.day-details-header .day-quick-actions .btn-sm:active {
  background: rgba(254, 210, 2, 0.12);
  transform: translateY(1px);
}
@media (max-width: 480px) {
  .day-details-header .day-quick-actions {
    flex-wrap: wrap;
  }
}

.detail-item {
  padding: 12px 0;
  padding-top: 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.detail-item:last-of-type {
  border-bottom: none;
}
.detail-item strong {
  font-size: 16px;
  color: #f8fafc;
  font-weight: 300;
}
.detail-item span {
  color: #fed202;
  font-size: 14px;
}
.detail-item.empty {
  opacity: 0.4;
}

.drinks-list {
  list-style: none;
  padding-left: 16px;
  margin: 8px 0 0 0;
}
.drinks-list li {
  padding: 4px 0;
  color: #cbd5e1;
  font-size: 14px;
  position: relative;
  padding-left: 12px;
}
.drinks-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6b7280;
  font-weight: 300;
}

.quick-stats {
  margin-top: 16px;
  padding: 16px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 8px;
  position: relative;
}
.quick-stats h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 300;
  color: #f8fafc;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .stats-grid {
    gap: 12px;
  }
}

.stat-item {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .stat-item {
    padding: 16px;
  }
}
.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(82, 82, 91, 0.15) 0%, rgba(39, 39, 42, 0.15) 100%);
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-item:hover {
  box-shadow: none;
}
.stat-item:hover::before {
  opacity: 1;
}
.stat-item .stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.stat-item .stat-value {
  font-size: 32px;
  font-weight: 300;
  color: #f8fafc;
  position: relative;
  z-index: 1;
}

.calendar-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .calendar-month {
    gap: 2px;
  }
}

.month-day-header {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.8);
}
@media (max-width: 480px) {
  .month-day-header {
    padding: 4px;
    font-size: 10px;
  }
}

.month-day {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  min-height: 80px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 480px) {
  .month-day {
    min-height: 60px;
    padding: 4px;
  }
}
.month-day::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(82, 82, 91, 0.15) 0%, rgba(39, 39, 42, 0.15) 100%);
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.month-day:hover {
  box-shadow: none, none;
}
.month-day:hover::before {
  opacity: 1;
}
.month-day .month-day-number {
  font-size: 18px;
  font-weight: 300;
  color: #f8fafc;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
@media (max-width: 480px) {
  .month-day .month-day-number {
    font-size: 16px;
  }
}
.month-day .month-day-indicator {
  font-size: 24px;
  color: white;
  position: relative;
  z-index: 1;
}
@media (max-width: 480px) {
  .month-day .month-day-indicator {
    font-size: 20px;
  }
}
.month-day.other-month {
  opacity: 0.3;
}
.month-day.other-month:hover {
  opacity: 0.5;
}
.month-day.other-month .month-day-number {
  color: #64748b;
}
.month-day.today {
  background: rgba(107, 114, 128, 0.1);
  border: 2px solid #6b7280;
  box-shadow: none, none;
}
.month-day.today .month-day-number {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.month-day.selected {
  background: rgba(20, 20, 30, 0.8);
  border: 2px solid #fed202;
  overflow: hidden;
}
.month-day.selected::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.5) 0%, transparent 30%), radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.4) 0%, transparent 30%), radial-gradient(circle at 50% 50%, rgba(255, 193, 37, 0.35) 0%, transparent 30%), radial-gradient(circle at 70% 20%, rgba(205, 127, 50, 0.4) 0%, transparent 25%), radial-gradient(circle at 30% 80%, rgba(255, 223, 128, 0.3) 0%, transparent 25%);
  animation: gradientMeshFlow 6s ease-in-out infinite;
  opacity: 1;
  pointer-events: none;
}
.month-day.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 245, 214, 0.9), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255, 215, 0, 0.8), transparent), radial-gradient(1px 1px at 50% 50%, rgba(218, 165, 32, 0.9), transparent), radial-gradient(1px 1px at 80% 10%, rgba(255, 193, 37, 0.85), transparent), radial-gradient(2px 2px at 90% 60%, rgba(244, 229, 194, 0.9), transparent), radial-gradient(1px 1px at 15% 80%, rgba(205, 127, 50, 0.8), transparent), radial-gradient(2px 2px at 40% 20%, rgba(255, 223, 128, 0.8), transparent), radial-gradient(1px 1px at 65% 45%, rgba(255, 215, 0, 0.75), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particleFloat 15s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
.month-day.selected .month-day-number,
.month-day.selected .month-day-indicator {
  position: relative;
  z-index: 2;
}
.month-day.selected .month-day-number {
  color: #FFF4D6;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 25px rgba(218, 165, 32, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}
.month-day:active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.day-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}
@media (max-width: 768px) {
  .day-details-grid {
    grid-template-columns: 1fr;
  }
}

.day-details-left,
.day-details-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diary-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.diary-section .btn-sm {
  width: 100%;
}
.diary-section strong {
  font-size: 18px;
  font-weight: 300;
}
.diary-section .diary-textarea {
  flex: 1;
  min-height: 300px;
  max-height: 500px;
}
.diary-section .btn {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  white-space: nowrap;
  min-width: auto;
  width: auto;
  border-radius: 6px;
  background: rgba(254, 210, 2, 0.02);
  border: none;
  color: #fed202;
  box-shadow: none;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.diary-section .btn:hover {
  background: rgba(254, 210, 2, 0.09);
}
.diary-section .btn:active {
  background: rgba(254, 210, 2, 0.12);
  transform: translateY(1px);
}

.day-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.day-quick-actions .btn {
  white-space: nowrap;
}

@keyframes gradientMeshFlow {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(-10%, -10%) rotate(5deg) scale(1.1);
  }
  66% {
    transform: translate(10%, 10%) rotate(-5deg) scale(1.05);
  }
}
@keyframes particleFloat {
  0% {
    background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%;
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    background-position: 100% 100%, 110% 110%, 120% 120%, 130% 130%, 140% 140%, 150% 150%, 160% 160%;
    opacity: 0.4;
  }
}
.nutrition-record {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(100, 116, 139, 0.15);
}
.nutrition-record h3 {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

.nutrition-items-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.nutrition-items-list::-webkit-scrollbar {
  height: 6px;
}
.nutrition-items-list::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 4px;
}
.nutrition-items-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 4px;
}
.nutrition-items-list::-webkit-scrollbar-thumb:hover {
  background: #fed202;
}

.nutrition-item {
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.15);
  padding: 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
  flex-shrink: 0;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.nutrition-item:hover {
  border-color: #fed202;
  background: rgba(26, 26, 26, 0.6);
}
.nutrition-item:hover .nutrition-item-delete {
  opacity: 1;
}

.nutrition-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nutrition-item-header i {
  font-size: 20px;
  color: #fed202;
}

.nutrition-item-name {
  font-weight: 300;
  color: #f8fafc;
  font-size: 14px;
}

.nutrition-item-macros {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nutrition-item-macros span {
  white-space: nowrap;
}

.nutrition-item-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  font-size: 16px;
}
.nutrition-item-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: scale(1.1);
}
.nutrition-item-delete:active {
  transform: scale(0.95);
}

.page-header .btn-back {
  padding: 8px 16px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  margin-bottom: 12px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-header .btn-back:hover {
  background: rgba(26, 26, 26, 0.9);
  border-color: #6b7280;
  box-shadow: none;
  transform: translateX(-4px);
}

.chart-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}
@media (max-width: 480px) {
  .chart-tabs {
    flex-direction: column;
    gap: 0;
  }
}
.chart-tabs .chart-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  color: #cbd5e1;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 480px) {
  .chart-tabs .chart-tab {
    padding: 12px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
    border-left: 2px solid transparent;
  }
}
.chart-tabs .chart-tab i {
  font-size: 30px;
}
.chart-tabs .chart-tab:hover {
  color: #f8fafc;
}
.chart-tabs .chart-tab.active {
  color: #f8fafc;
  border-bottom-color: #6b7280;
}
@media (max-width: 480px) {
  .chart-tabs .chart-tab.active {
    border-bottom-color: rgba(100, 116, 139, 0.3);
    border-left-color: #6b7280;
  }
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.period-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.period-selector .period-btn {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  border: none;
  background: rgba(254, 210, 2, 0.05);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  color: #fed202;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}
.period-selector .period-btn:hover {
  background: rgba(254, 210, 2, 0.09);
}
.period-selector .period-btn.active {
  background: rgba(254, 210, 2, 0.15);
  color: #fed202;
}

.chart-section {
  margin-bottom: 32px;
}
.chart-section h2 {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 16px;
  color: #ffffff;
}

.chart-container {
  position: relative;
  height: 300px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 12px;
  border-radius: 8px;
}
@media (min-width: 480px) {
  .chart-container {
    height: 350px;
    padding: 16px;
  }
}
@media (min-width: 768px) {
  .chart-container {
    height: 450px;
  }
}
.chart-container canvas {
  position: relative;
  z-index: 1;
}

.no-data-message {
  text-align: center;
  padding: 48px;
  color: #64748b;
  font-size: 18px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 10px;
  position: relative;
}

.stats-section {
  margin-bottom: 32px;
}
.stats-section h2 {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 16px;
  color: #ffffff;
}

.stats-grid-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .stats-grid-charts {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .stats-grid-charts {
    gap: 16px;
  }
}

.stat-card {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .stat-card {
    padding: 16px;
  }
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(82, 82, 91, 0.15) 0%, rgba(39, 39, 42, 0.15) 100%);
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  box-shadow: none, none;
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card .stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  position: relative;
  z-index: 1;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 300;
  color: #f8fafc;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.stat-card .stat-value.positive {
  color: #ef4444;
}
.stat-card .stat-value.negative {
  color: #4ade80;
}
.stat-card .stat-value .stat-percent {
  font-size: 14px;
  font-weight: 300;
  color: #64748b;
  display: block;
  margin-top: 4px;
}

.meal-stats {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 16px;
  border-radius: 8px;
  position: relative;
}

.progress-item {
  margin-bottom: 16px;
}
.progress-item:last-child {
  margin-bottom: 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-header .progress-label {
  font-size: 16px;
  font-weight: 300;
  color: #f8fafc;
}
.progress-header .progress-value {
  font-size: 14px;
  font-weight: 300;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.progress-bar {
  height: 6px;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  border-radius: 9999px;
  transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.export-section {
  margin-top: 32px;
  padding: 24px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 10px;
  position: relative;
}
.export-section h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 300;
  color: #f8fafc;
}

.export-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-export,
.btn-import {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 300;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-export::before,
.btn-import::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-export:hover::before,
.btn-import:hover::before {
  opacity: 1;
}

.btn-export {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #f8fafc;
  box-shadow: none;
}
.btn-export:hover {
  box-shadow: none;
}

.btn-import {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
  color: #f8fafc;
  box-shadow: none;
}
.btn-import:hover {
  box-shadow: none;
}

.export-note {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  text-align: center;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(107, 114, 128, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(107, 114, 128, 0.6);
  }
}
.scan-page .page-header {
  margin-bottom: 32px;
}

.scan-container {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.scan-section {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 24px;
  border-radius: 8px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.scan-section h3 {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

#scanner-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 116, 139, 0.3);
  position: relative;
}
#scanner-container:not(:empty) {
  background: transparent;
  border-color: #fed202;
}
#scanner-container video {
  width: 100%;
  height: auto;
  display: block;
}

.scanner-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}
.scanner-placeholder i {
  display: block;
  font-size: 64px;
  margin-bottom: 16px;
  color: rgba(100, 116, 139, 0.3);
}
.scanner-placeholder p {
  font-size: 14px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scanner-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.scanner-controls button {
  flex: 1;
  min-width: 140px;
}

.manual-search {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 24px;
  border-radius: 8px;
}
.manual-search h3 {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}
.manual-search .form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.manual-search .form-group input {
  width: 100%;
}
.manual-search .form-group button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.manual-search .manual-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.manual-search .manual-divider::before, .manual-search .manual-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}
.manual-search .manual-divider span {
  padding: 0 12px;
}
.manual-search .manual-entry-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.manual-search .manual-entry-form > input:first-child {
  grid-column: 1/-1;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #f8fafc;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  font-size: 16px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.manual-search .manual-entry-form > input:first-child:focus {
  outline: none;
  border-color: #fed202;
  background: rgba(26, 26, 26, 0.8);
}
.manual-search .manual-entry-form > input:first-child::placeholder {
  color: #94a3b8;
  font-size: 14px;
}
.manual-search .manual-entry-form .nutrition-inputs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .manual-search .manual-entry-form .nutrition-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .manual-search .manual-entry-form .nutrition-inputs {
    grid-template-columns: 1fr;
  }
}
.manual-search .manual-entry-form .nutrition-inputs input {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #f8fafc;
  padding: 12px;
  border-radius: 4px;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  font-size: 14px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.manual-search .manual-entry-form .nutrition-inputs input:focus {
  outline: none;
  border-color: #fed202;
  background: rgba(26, 26, 26, 0.8);
}
.manual-search .manual-entry-form .nutrition-inputs input::placeholder {
  color: #94a3b8;
  font-size: 12px;
}
.manual-search .manual-entry-form input {
  width: 100%;
}
.manual-search .manual-entry-form button {
  white-space: nowrap;
}

.scan-results {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 24px;
  border-radius: 8px;
  grid-column: 1/-1;
  animation: slideUp 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scan-results h3 {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: normal;
}

.food-card {
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.15);
  padding: 24px;
  border-radius: 6px;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .food-card {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
}
.food-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(100, 116, 139, 0.3);
  align-self: start;
}
.food-card h4 {
  font-size: 24px;
  font-weight: 300;
  color: #f8fafc;
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.food-card p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 16px;
}
.food-card p strong {
  color: #cbd5e1;
}
.food-card h5 {
  font-size: 16px;
  font-weight: 300;
  color: #fed202;
  margin: 16px 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.food-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  gap: 8px;
}
@media (min-width: 768px) {
  .food-card ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.food-card li {
  padding: 12px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.15);
  border-radius: 4px;
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.food-card li:hover {
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(10, 10, 10, 0.7);
}
.food-card li strong {
  color: #f8fafc;
  font-weight: 300;
}
.food-card .nutrition-warning {
  background: rgba(255, 165, 0, 0.05);
  padding: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 165, 0, 0.2);
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.food-card .nutrition-warning i {
  font-size: 24px;
  color: #fbbf24;
  flex-shrink: 0;
}
.food-card .nutrition-warning span {
  color: #fbbf24;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.food-card .food-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  grid-column: 1/-1;
}
.food-card .food-card-actions button {
  flex: 1;
}

.saved-items {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(100, 116, 139, 0.15);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 768px) {
  .saved-items {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
}
.saved-items h3 {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  text-transform: none;
  letter-spacing: normal;
}

.saved-items-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.saved-items-list::-webkit-scrollbar {
  height: 6px;
}
.saved-items-list::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 4px;
}
.saved-items-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 4px;
}
.saved-items-list::-webkit-scrollbar-thumb:hover {
  background: #fed202;
}
.saved-items-list:empty::before {
  content: "";
  display: flex;
  gap: 12px;
}

.saved-items-list:empty::after {
  content: "";
  display: flex;
  gap: 12px;
}

.skeleton-item {
  background: rgba(26, 26, 26, 0.2);
  border: 1px dashed rgba(100, 116, 139, 0.3);
  padding: 16px;
  border-radius: 6px;
  height: 80px;
  flex: 1;
  min-width: 200px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.2;
  }
}
.saved-item {
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.15);
  padding: 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
  flex-shrink: 0;
}
.saved-item:hover {
  border-color: #fed202;
  background: rgba(26, 26, 26, 0.6);
}
.saved-item:hover i {
  transform: scale(1.1);
  color: #fed202;
}

.saved-item-info {
  flex: 1;
  min-width: 0;
}

.saved-item-name {
  font-weight: 300;
  color: #f8fafc;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-item-macros {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meal-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.meal-button {
  padding: 24px;
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", monospace;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.meal-button i {
  font-size: 32px;
  display: block;
}
.meal-button:hover {
  border-color: #fed202;
  background: rgba(254, 210, 2, 0.05);
  color: #f8fafc;
  transform: translateY(-2px);
}
.meal-button.selected {
  background: rgba(254, 210, 2, 0.1);
  border-color: #fed202;
  color: #fed202;
}
.meal-button:active {
  transform: translateY(0);
}

#manualNutritionModal .form-group label {
  font-size: 12px;
}
#manualNutritionModal .form-group input {
  font-size: 16px;
}

@media (max-width: 768px) {
  .scan-container {
    grid-template-columns: 1fr;
  }
  .food-card {
    grid-template-columns: 1fr;
  }
  .food-card img {
    margin: 0 auto;
  }
  .food-card ul {
    grid-template-columns: 1fr;
  }
  .food-card .food-card-actions {
    flex-direction: column;
  }
  .saved-items-list {
    grid-template-columns: 1fr;
  }
  .meal-selection {
    grid-template-columns: 1fr;
  }
}
