/* Modern CSS Redesign for Moving Website 
   This stylesheet replaces the original style.css file with a more modern design 
   that incorporates 2025 design trends including clean typography, purposeful 
   white space, modern color palette, and subtle animations.
*/

/* Modern Color Palette */
:root {
  --primary-color: #2563eb;     /* Modern bright blue */
  --secondary-color: #1e40af;   /* Darker blue */
  --accent-color: #f97316;      /* Orange accent */
  --light-color: #f8fafc;       /* Very light gray/blue */
  --dark-color: #0f172a;        /* Very dark blue/black */
  --success-color: #10b981;     /* Emerald green */
  --danger-color: #ef4444;      /* Modern red */
  --warning-color: #f59e0b;     /* Amber */
  --border-color: #e2e8f0;      /* Light gray for borders */
  --shadow-color: rgba(15, 23, 42, 0.08); /* Subtle shadow */
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --card-bg: white;
}

/* Dark Mode Colors */
.dark-mode {
  --primary-color: #3b82f6;
  --secondary-color: #60a5fa;
  --accent-color: #fb923c;
  --light-color: #0f172a;
  --dark-color: #f8fafc;
  --success-color: #34d399;
  --danger-color: #f87171;
  --warning-color: #fbbf24;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.25);
  --card-bg: #1e293b;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--gray-600);
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  background-color: rgba(100, 116, 139, 0.1);
}

.dark-mode-toggle:hover {
  background-color: rgba(100, 116, 139, 0.2);
  color: var(--primary-color);
}

.dark-mode-toggle .fa-moon {
  display: block;
}

.dark-mode-toggle .fa-sun {
  display: none;
}

.dark-mode .dark-mode-toggle .fa-moon {
  display: none;
}

.dark-mode .dark-mode-toggle .fa-sun {
  display: block;
  color: var(--accent-color);
}

.dark-mode .dark-mode-toggle {
  color: var(--light-color);
  background-color: rgba(203, 213, 225, 0.1);
}

.dark-mode .dark-mode-toggle:hover {
  background-color: rgba(203, 213, 225, 0.2);
}

/* Dark Mode Tweaks */
.dark-mode body {
  background-color: var(--light-color);
  color: var(--dark-color);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: var(--dark-color);
}

.dark-mode .table tr:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.5);
}

.dark-mode .table tr:hover {
  background-color: rgba(71, 85, 105, 0.3);
}

.dark-mode .nav-link {
  color: var(--gray-300);
}

.dark-mode .nav-link.active {
  color: var(--primary-color);
}

.dark-mode .checklist-item.completed {
  background-color: rgba(30, 41, 59, 0.7);
}

.dark-mode .form-control {
  background-color: var(--card-bg);
  color: var(--dark-color);
}

.dark-mode #user-display {
  color: var(--gray-300) !important;
}

/* Dark Mode Animation */
html.color-theme-in-transition,
html.color-theme-in-transition *,
html.color-theme-in-transition *:before,
html.color-theme-in-transition *:after {
  transition: background-color 750ms ease-out, color 750ms ease-out, border-color 750ms ease-out, box-shadow 750ms ease-out !important;
  transition-delay: 0 !important;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
  margin-top: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

a:hover {
  color: var(--accent-color);
}

/* Header Styles */
header {
  background-color: var(--card-bg);
  box-shadow: 0 4px 6px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary-color);
  border-radius: 4px;
  transform: rotate(45deg);
}

.logo:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Animated underline for nav links */
.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: transform 0.2s;
}

.user-image:hover {
  transform: scale(1.05);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
  color: white;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-danger {
  background-color: var(--danger-color);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.btn-success {
  background-color: var(--success-color);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background-color: #059669;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-add {
  background-color: var(--accent-color);
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.btn-add:hover {
  background-color: #ea580c;
  box-shadow: 0 4px 6px rgba(249, 115, 22, 0.25);
}

/* Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px var(--shadow-color);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(37, 99, 235, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.card-body {
  padding: 1.5rem;
}

/* Welcome Section */
.welcome-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-600);
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.feature-description {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* Form Styles */
.form-container {
  max-width: 550px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.form-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: rgba(37, 99, 235, 0.05);
  font-weight: 600;
  color: var(--primary-color);
  position: sticky;
  top: 0;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background-color: rgba(37, 99, 235, 0.03);
}

.table tr:nth-child(even) {
  background-color: rgba(241, 245, 249, 0.5);
}

.total-row {
  font-weight: 700;
  background-color: rgba(37, 99, 235, 0.05) !important;
}

/* Highlighting for new rows */
.highlight-new-row {
  animation: highlight-fade 2s ease-in-out;
}

@keyframes highlight-fade {
  0% { background-color: rgba(249, 115, 22, 0.2); }
  100% { background-color: transparent; }
}

/* Checklist Styles */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.checklist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px var(--shadow-color);
}

.checklist-item input[type="checkbox"] {
  margin-right: 1rem;
  transform: scale(1.2);
  accent-color: var(--primary-color);
  cursor: pointer;
}

.checklist-item label {
  flex: 1;
  cursor: pointer;
}

.checklist-item.completed {
  opacity: 0.7;
  text-decoration: line-through;
  background-color: rgba(241, 245, 249, 0.7);
}

.added-by-tag {
  margin-left: auto;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}

/* Section Tabs */
.section-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.section-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.section-tab {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-right: 0.5rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -2px;
}

.section-tab:hover {
  color: var(--primary-color);
}

.section-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
}

.section-content {
  display: none;
}

.section-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  z-index: 1000;
  overflow: auto;
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlideIn 0.3s;
  border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  transition: color 0.2s;
  background: none;
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: var(--danger-color);
  background-color: rgba(239, 68, 68, 0.1);
}

.modal-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  padding-right: 2rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 350px;
}

.toast {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: toast-in-right 0.5s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.toast-success {
  background-color: var(--success-color);
}

.toast-error {
  background-color: var(--danger-color);
}

.toast-info {
  background-color: var(--primary-color);
}

.toast-close {
  cursor: pointer;
  padding-left: 1rem;
  font-weight: bold;
  font-size: 1.25rem;
}

@keyframes toast-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 0.75rem;
  background-color: var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 0.75rem;
  transition: width 0.5s ease;
}

/* Category Progress */
.category-progress {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.progress-bar-container {
  height: 0.75rem;
  background-color: var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Footer Styles */
footer {
  background-color: var(--card-bg);
  color: var(--gray-600);
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Responsive Styles */
/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.mobile-nav-toggle:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.mobile-nav-toggle i {
  transition: transform 0.3s ease;
}

.mobile-nav-toggle.active i.fa-bars {
  display: none;
}

.mobile-nav-toggle:not(.active) i.fa-times {
  display: none;
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .features-section {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .hero-section {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .navbar {
    padding: 1rem 0;
    flex-wrap: wrap;
  }
  
  .logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
    display: none;
    margin-top: 1rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .auth-buttons {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    display: none;
  }
  
  .auth-buttons.active {
    display: flex;
  }
  
  .features-section {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .card-header, .card-body {
    padding: 1rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
}

/* Custom Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-in;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-in;
}

.slide-in-bottom {
  animation: slideInBottom 0.5s ease-in;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Budget Summary Styles */
.budget-summary {
  margin-bottom: 2rem;
}

.budget-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.budget-total h4 {
  margin: 0 0 0.5rem 0;
  color: var(--dark-color);
  font-size: 1.125rem;
}

.budget-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.budget-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.budget-category {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.budget-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.budget-category-header h5 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

.budget-category-amount {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.125rem;
}

.budget-category .progress-bar {
  background-color: var(--accent-color);
}

/* Simple Summary View */
.simple-summary {
  padding: 1rem;
  background-color: var(--light-color);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.simple-summary ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.simple-summary li {
  margin-bottom: 0.5rem;
}

.simple-summary p:last-child {
  margin-bottom: 0;
}

/* Loading Indicator */
.loading-indicator {
  padding: 2rem;
  font-size: 1.25rem;
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px var(--shadow-color);
  animation: pulse 1.5s infinite;
}

.loading-indicator i {
  margin-right: 0.5rem;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Dashboard Highlights */
.dashboard-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.highlight-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px var(--shadow-color);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.highlight-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

.highlight-info p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* House Specifics Page Styles */
.home-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.home-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.home-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}

.home-stats {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.home-stats h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.home-stats-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-stats-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-stats-icon {
  color: var(--primary-color);
  font-size: 1.25rem;
  width: 1.25rem;
  text-align: center;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.room-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px var(--shadow-color);
}

.room-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-header span {
  font-weight: 600;
  font-size: 1.125rem;
}

.room-content {
  padding: 1.25rem;
}

.room-dimensions {
  font-style: italic;
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.measurement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.measurement-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.measurement-name {
  font-weight: 500;
  color: var(--gray-600);
}

.measurement-value {
  font-weight: 600;
  color: var(--primary-color);
}

.measurement-input-group {
  padding: 1rem;
  background-color: rgba(37, 99, 235, 0.03);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.room-notes h4,
.measurement-list + h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  font-size: 1rem;
}

.room-notes p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.todo-item:hover {
  background-color: rgba(37, 99, 235, 0.03);
}

.todo-item input[type="checkbox"] {
  margin-right: 1rem;
  accent-color: var(--primary-color);
}

.todo-item label {
  flex: 1;
  cursor: pointer;
}

.todo-item.completed {
  text-decoration: line-through;
  opacity: 0.7;
  background-color: rgba(241, 245, 249, 0.5);
}

@media (min-width: 768px) {
  .home-details {
    flex-direction: row;
  }
  
  .home-image {
    flex: 3;
  }
  
  .home-stats {
    flex: 2;
  }
}