/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */

.page-container {
  max-width: 800px;
  margin-left: 140px;
  margin: 0 auto;
  padding: 40px;
}

.overview {
    margin: 0;
    padding: 15px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #0d1b2a; /* Midnight Blue */
  color: #e0e6ed;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.home-header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1b263b;
  border-bottom: 2px solid #415a77;
}

.home-header h1 {
  font-size: 2.2rem;
  color: #e0e6ed;
}

.tagline {
  font-size: 1.1rem;
  color: #c7d3e0;
  margin-top: 0.5rem;
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #e0e6ed;
}

.hero-text p {
  font-size: 1rem;
  color: #c7d3e0;
}

/* --------------------------------------------------
   FEATURES SECTION
-------------------------------------------------- */

.features {
  padding: 2rem 1rem;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #1b263b;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  gap: 1rem;
  border: 1px solid #415a77;
}

.feature img {
  width: 100%;
  max-width: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.feature p {
  color: #c7d3e0;
}

/* --------------------------------------------------
   CTA SECTION
-------------------------------------------------- */

.cta {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #1b263b;
  border-top: 2px solid #415a77;
  border-bottom: 2px solid #415a77;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background-color: #415a77;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background-color: #527aa3;
}

/* Compare CSS */

.button-spacing {
    padding-top: 1.2em;
}

#compareTable td[contenteditable="true"] {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border: 2px solid #000 !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
}

.cell-color td[contenteditable="true"] {
    color: black !important; 
    background-color: #888888 !important; 
    font-weight: bold !important;
}

td.cell-color[contenteditable="true"] {
  background-color: #888888 !important;
  color: black !important;
  font-weight: bold !important;
  font-size: 18px !important;
  -webkit-text-fill-color: black !important; /* Chrome/Safari force */
}

/* Bigger buttons */
#addRowBtn,
#clearComparisonBtn {
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  background-color: #0055ff;
  color: white;
  border: none;
  margin-right: 10px;
  cursor: pointer;
}

/* Button hover (desktop only) */
#addRowBtn:hover,
#clearComparisonBtn:hover {
  background-color: #003bbd;
}

/* Bigger input fields */
#storeNames input {
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #333;
  border-radius: 8px;
  width: 240px;
  margin-right: 20px;
  background-color: #fff;
  color: #000;
}

#bestStoreBox {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.home-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #0d1b2a;
  color: #c7d3e0;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------- */

@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature img {
    max-width: 200px;
  }

  .cta h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {

  .home-header h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    padding: 1rem;
  }
}

table {
  width: 100%;
  font-size: 0.9rem;
}

td, th {
  padding: 6px;
}

/* --------------------------------------------------
   LEFT SIDEBAR (RESTORED LARGE ICON VERSION)
-------------------------------------------------- */

.sidebar {
  position: fixed;
  left: 0;
  top: 95px; /* pushes below top menu */
  width: 140px;
  height: calc(100vh - 95px);
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 25px;
  gap: 40px; /* larger spacing like original */
  box-shadow: 3px 0 8px rgba(0,0,0,0.35);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #e0e6ed;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
}

.nav-item i {
  font-size: 48px; /* restored large icon size */
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover i {
  transform: scale(1.18);
  color: #4db8ff;
}

.nav-item:hover span {
  color: #4db8ff;
}

/* Active page highlight */
.nav-item.active i,
.nav-item.active span {
  color: #4db8ff;
}

/* --------------------------------------------------
   PAGE CONTENT OFFSET
-------------------------------------------------- */

/* --- PAGE CONTENT --- */
.page-content {
  margin-left: 140px;
  padding: 40px;
  color: #e0e0e0;
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  margin-bottom: 30px;
  color: #b0b0b0;
}

/* --- GRAPH GRID --- */
.graph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 30px;
}

.graph-card {
  background: #1f1f1f;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.graph-card h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}


/* --------------------------------------------------
   SETTINGS PAGE
-------------------------------------------------- */

.settings-title {
  font-size: 32px;
  margin-bottom: 10px;
  color: #e0e6ed;
}

.settings-description {
  font-size: 16px;
  margin-bottom: 30px;
  color: #c7d3e0;
}

/* Grid layout */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
}

/* Card */
.settings-card {
  background: #1b263b;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #415a77;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.settings-card h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}

/* Label rows */
.settings-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 16px;
  color: #e0e6ed;
}

.settings-label input[type="text"],
.settings-label input[type="number"] {
  width: 160px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #415a77;
  background: #ffffff;
  color: #000000;
  font-size: 15px;
}

/* Buttons */
.settings-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background-color: #415a77;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-btn:hover {
  background-color: #527aa3;
}




@media (max-width: 600px) {
  table {
    font-size: 0.75rem;
  }
  td:nth-child(3),
  th:nth-child(3) {
    display: none; /* hide description on small screens */
  }
}

/* Compare CSS: Mobile */

/* Mobile spacing */
@media (max-width: 600px) {
  #storeNames {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #storeNames input {
    width: 100%;
  }

  #addRowBtn,
  #clearComparisonBtn {
    width: 100%;
    margin-bottom: 10px;
  }
}


