/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #000;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Mobile Container */
.mobile-container {
  
  background-color: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Status Bar */
.status-bar {
  height: 44px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: none;
  position: relative;
  z-index: 5;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.time {
  font-weight: 600;
}

.signal,
.signal-bars,
.wifi,
.battery {
  font-size: 14px;
}

/* Burger Menu */
.burger-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  z-index: 1000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.burger-menu.active {
  left: 0;
}

.menu-header {
  padding: 80px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.menu-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.menu-nav {
  padding: 20px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  text-decoration: none;
  color: #000;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: #f8f9fa;
}

.menu-item.signout {
  color: #dc3545;
  border-top: 1px solid #f0f0f0;
  margin-top: 20px;
}

.menu-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* optional: subtle shadow */
}

@media (max-width: 768px) {
  .mobile-container {
    padding-bottom: 70px;
  }
}

.menu-btn,
.notification-btn,
.share-btn,
.calendar-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  border-radius: 8px;
}

.menu-btn:hover,
.notification-btn:hover,
.share-btn:hover,
.calendar-btn:hover {
  background-color: #f8f9fa;
}

.logo-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
  margin-left: 15px;
}

.logo-image {
	width: 150px;
  /*width: auto;*/
  object-fit: contain;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

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

/* User Greeting */
.user-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
}

.user-greeting h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
}

.date {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* Page Title */
.page-title {
  padding: 20px;
  background-color: #fff;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
}

.page-date {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* Calorie Card */
.calorie-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calorie-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.calorie-item {
  text-align: center;
}

.calorie-label {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 5px;
}

.calorie-value {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

/* Macro Grid */
.macro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.macro-item {
  margin-bottom: 10px;
}

.macro-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.macro-label {
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.macro-value {
  font-size: 14px;
  color: #6c757d;
}

.progress-bar {
  height: 4px;
  background-color: #f8f9fa;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-fill.protein {
  background-color: #4285f4;
}

.progress-fill.carb {
  background-color: #ea4335;
}

.progress-fill.fat {
  background-color: #fbbc04;
}

.progress-fill.fiber {
  background-color: #34a853;
}

.calorie-limit {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 20px;
}

/* Capture Button */
.capture-btn {
  width: 100%;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.capture-btn:hover {
  background-color: #333;
}

.camera-icon {
  font-size: 18px;
}

/* Water Card */
.water-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.water-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.water-amount {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.water-time {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

.water-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.water-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #f8f9fa;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.water-btn:hover {
  background-color: #e9ecef;
}

/* Activity Section */
.activity-section,
.activity-content {
  padding: 0 20px 20px;
}

.activity-section h2,
.day-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

.activity-day-section {
  margin-bottom: 30px;
}

.food-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.food-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.food-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.food-info {
  flex: 1;
}

.food-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.food-info p {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

.food-actions {
  display: flex;
  gap: 10px;
}

.edit-btn,
.delete-btn,
.info-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.2s;
}

.edit-btn:hover,
.delete-btn:hover,
.info-btn:hover {
  opacity: 0.7;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  max-width: 100%;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-around;
  padding: 1px 0;
  z-index: 100;
}

.nav-item {
  text-decoration: none;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  transition: color 0.2s;
}

.nav-item.active {
  color: #000;
}

.nav-icon {
  font-size: 20px;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  border-radius: 20px;
  padding: 0;
  width: 320px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* Water Modal */
.water-modal {
  text-align: center;
}

.water-input-section {
  padding: 30px 20px 20px;
}

.water-amount-input {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  border: none;
  background: none;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  outline: none;
}

.unit-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.unit-btn {
  padding: 10px 30px;
  border: none;
  border-radius: 25px;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.unit-btn.active {
  background-color: #000;
  color: #fff;
}

.quick-amounts {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 20px;
}

.quick-amount {
  flex: 1;
  padding: 12px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  background-color: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-amount:hover {
  border-color: #000;
}

.add-water-btn {
  width: calc(100% - 40px);
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 20px 20px;
  transition: background-color 0.2s;
}

.add-water-btn:hover {
  background-color: #333;
}

/* Edit Food Modal */
.edit-modal {
  width: 300px;
}

.edit-section {
  padding: 20px;
}

.edit-section label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 10px;
}

#foodObservation {
  width: 100%;
  min-height: 100px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 15px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}

#foodObservation:focus {
  border-color: #000;
}

.reprocess-btn {
  width: calc(100% - 40px);
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 20px 20px;
  transition: background-color 0.2s;
}

.reprocess-btn:hover {
  background-color: #333;
}

/* Camera Modal */
.camera-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  max-width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 3000;
}

.camera-header {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 10;
}

.camera-back,
.camera-flash {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-content {
  position: relative;
  width: 100%;
  height: 100%;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scan-frame {
  width: 250px;
  height: 250px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
  margin-bottom: 50px;
}

.scan-corners::before,
.scan-corners::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
}

.scan-corners::before {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
}

.scan-corners::after {
  bottom: -3px;
  right: -3px;
  border-left: none;
  border-top: none;
}

.scanning-status {
  text-align: center;
  color: #fff;
}

.scan-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

.scan-loader.active {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.scanning-status p {
  font-size: 16px;
  font-weight: 500;
}

.camera-controls {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
}

.gallery-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
}

.capture-camera-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.capture-ring {
  width: 80px;
  height: 80px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: relative;
}

.capture-ring::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background-color: #fff;
  border-radius: 50%;
}

/* Tracker Tabs */
.tracker-tabs {
  display: flex;
  background-color: #fff;
  margin: 0 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background-color: transparent;
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab-btn.active {
  color: #000;
  background-color: #f8f9fa;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #6366f1;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

/* Report Tab */
.report-header,
.weight-header,
.calorie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.report-header h2,
.weight-header h2,
.calorie-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.period-selector {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.report-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.report-info p {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
  margin: 0;
}

.download-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  color: #6c757d;
  transition: color 0.2s;
}

.download-btn:hover {
  color: #000;
}

/* Chart Container */
.chart-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 300px;
}

/* Summary Card */
.summary-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: 14px;
  color: #6c757d;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.summary-value.change-negative {
  color: #28a745;
}

/* Profile Styles */
.profile-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.profile-content {
  padding: 20px;
  padding-bottom: 100px;
}

.profile-user-section {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.profile-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #000;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
}

.profile-username {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.profile-phone,
.profile-email {
  font-size: 12px;
  color: #6c757d;
  margin: 2px 0;
}

.profile-info-section,
.profile-settings-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.edit-info-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #6c757d;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
  font-size: 14px;
  color: #6c757d;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

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

.settings-item:hover {
  background-color: #f8f9fa;
}

.settings-item.danger {
  color: #dc3545;
}

.settings-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.settings-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.settings-value {
  font-size: 12px;
  color: #6c757d;
}

/* Profile Edit Modal */
.profile-edit-modal {
  width: 350px;
}

.edit-form {
  padding: 20px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: #000;
}

.form-group input[readonly] {
  background-color: #f8f9fa;
  color: #6c757d;
}

.form-group .unit {
  position: absolute;
  right: 12px;
  top: 32px;
  font-size: 14px;
  color: #6c757d;
}

.save-btn {
  width: calc(100% - 40px);
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 20px 20px;
}

/* Password Modal */
.password-modal {
  width: 320px;
  text-align: center;
}

.password-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.password-logo .logo-image,
.language-logo .logo-image {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.password-instruction {
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  margin: 0 20px 20px;
  line-height: 1.4;
}

.password-form {
  padding: 0 20px 20px;
}

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

.password-input {
  width: 100%;
  padding: 15px 45px 15px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}

.password-input:focus {
  border-color: #000;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #6c757d;
}

.reset-password-btn {
  width: calc(100% - 40px);
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 20px 20px;
}

/* Language Modal */
.language-modal {
  width: 320px;
  text-align: center;
}

.language-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.language-options {
  padding: 0 20px 20px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s;
}

.language-option input[type="radio"]:checked + .radio-custom {
  border-color: #000;
}

.language-option input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background-color: #000;
  border-radius: 50%;
}

.language-info {
  flex: 1;
  text-align: left;
}

.language-name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin-bottom: 2px;
}

.language-code {
  font-size: 12px;
  color: #6c757d;
}

.update-language-btn {
  width: calc(100% - 40px);
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 20px 20px;
}

/* Settings Page */
.settings-content {
  padding: 20px;
  padding-bottom: 100px;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

/* Food Detail Page Styles */
.food-detail-container {
  background-color: #fff;
  min-height: 100vh;
}

.food-hero-section {
   width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* centers the image horizontally */
}

.food-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.food-detail-content {
  padding: 20px;
  background-color: #fff;
}

.calories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.calories-info {
  flex: 1;
}

.calories-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px 0;
}

.food-timestamp {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.food-actions-detail {
  display: flex;
  gap: 15px;
  align-items: center;
}

.food-action-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  color: #6c757d;
  transition: color 0.2s;
}

.food-action-btn.delete-btn {
  color: #dc3545;
}

.food-action-btn:hover {
  opacity: 0.7;
}

.macro-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.macro-detail-item {
  text-align: center;
}

.macro-detail-value {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.macro-detail-label {
  font-size: 16px;
  font-weight: 500;
  text-transform: capitalize;
}

.macro-detail-label.proteins {
  color: #4285f4;
}

.macro-detail-label.fats {
  color: #fbbc04;
}

.macro-detail-label.carbs {
  color: #ea4335;
}

.macro-detail-label.fiber {
  color: #34a853;
}

.detail-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

.section-content {
  font-size: 16px;
  color: #000;
  line-height: 1.5;
  margin: 0;
}

.observations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.observation-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.observation-label {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  min-width: 80px;
}

.observation-value {
  font-size: 16px;
  color: #6c757d;
}

.ai-analysis {
  background-color: #e3f2fd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.ai-title {
  font-size: 16px;
  font-weight: 600;
  color: #1565c0;
  margin: 0 0 12px 0;
}

.ai-content {
  font-size: 14px;
  color: #1565c0;
  margin: 0;
  line-height: 1.5;
}

.note-section {
  background-color: #fff3cd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.note-title {
  font-size: 16px;
  font-weight: 600;
  color: #856404;
  margin: 0 0 12px 0;
}

.note-content {
  font-size: 14px;
  color: #856404;
  margin: 0;
  line-height: 1.5;
}

/* Button Styles */
.btn-primary-custom {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  opacity: 1;
}

.btn-primary-custom:hover {
  background-color: #333;
}

.btn-primary-custom:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary-custom {
  background-color: #f8f9fa;
  color: #6c757d;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s;
  width: 100%;
  opacity: 0.6;
}

.btn-secondary-custom:hover {
  background-color: #e9ecef;
}

/* Form Control Styles */
.form-control-custom {
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  padding: 15px 0;
  background-color: transparent;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-control-custom:focus {
  outline: none;
  border-bottom-color: #000;
  box-shadow: none;
}

.form-control-custom::placeholder {
  color: #6c757d;
}

/* Form Container */
.form-container {
  padding: 0 20px 40px;
}

/* Header Container */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
}

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

/* Responsive adjustments */
@media (max-width: 390px) {
  .mobile-container {
    max-width: 100vw;
  }

  .bottom-nav {
    width: 100vw;
  }

  .camera-container {
    width: 100vw;
  }
}
