/* ===== Base Styles ===== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4fa;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 60px;
}

.center {
  text-align: center;
}
.logo {
  max-width: 150px;
  margin: 0 auto 20px auto;
  display: block;
}

h1 {
  margin-bottom: 15px;
  color: #1a73e8;
  font-size: 1.8rem;
  text-align: center;
}
p {
  margin-bottom: 25px;
  color: #333;
  font-size: 1rem;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #1a73e8;
  color: #fff;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1100;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  background-color: #155ab6;
}

/* ===== Dark Mode ===== */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}
body.dark-mode .container {
  background: #1e1e1e;
  color: #e0e0e0;
}
body.dark-mode h1 {
  color: #90caf9;
}
body.dark-mode p {
  color: #ddd;
}
body.dark-mode button,
body.dark-mode select {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}
body.dark-mode button:hover {
  background-color: #555;
}
body.dark-mode table th {
  background-color: #333;
  color: #fff;
}
body.dark-mode tr:nth-child(even):not(.unticked) td {
  background-color: #2a2a2a;
}
body.dark-mode td {
  color: #e0e0e0;
}
body.dark-mode .caps-highlight {
  color: #90caf9;
}
body.dark-mode .disclaimer {
  background-color: #2a2a2a;
  border-color: #555;
  color: #e0e0e0;
}
body.dark-mode .disclaimer strong {
  color: #90caf9;
}
body.dark-mode footer {
  background-color: #1a1a1a;
  color: #90caf9;
}
body.dark-mode .unticked td {
  background-color: #662222 !important;
}

/* ===== Select & Buttons ===== */
select,
button {
  padding: 12px 20px;
  margin: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}
button {
  border: none;
  background-color: #1a73e8;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}
button:hover {
  background-color: #155ab6;
}
button:active {
  transform: scale(0.97);
}
.button-group {
  margin-top: 20px;
  text-align: center;
}

/* ===== Floating Home Button ===== */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 100px; /* avoid theme toggle */
  background-color: #1a73e8;
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1100;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-btn:hover {
  background-color: #155ab6;
}

/* ===== Table Styling ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th,
td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
}
th {
  background-color: #1a73e8;
  color: #fff;
  font-weight: 600;
}
.caps-highlight {
  color: #1a73e8;
  font-weight: bold;
}
tr:nth-child(even):not(.unticked) td {
  background-color: #f0f4fa;
}
.unticked td {
  background-color: #ffdddd !important;
}

/* ===== Disclaimer ===== */
.disclaimer {
  background-color: #f8f9fa;
  padding: 15px;
  margin-top: 30px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
  max-width: 900px;
  margin: 30px auto;
}
.disclaimer strong {
  color: #1a73e8;
}

/* ===== Footer ===== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #e8f0fe;
  color: #1a73e8;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 768px) {
  body {
    font-size: 18px;
  }
  button,
  select {
    width: 100%;
    font-size: 18px;
    padding: 16px;
  }
  .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none;
    font-size: 1rem;
  }
  td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #1a73e8;
    flex: 1;
    text-align: left;
    padding-right: 10px;
  }
  td:last-child {
    text-align: right;
  }
  .logo {
    max-width: 100px;
  }

  .floating-btn {
    bottom: 75px;
    right: 75px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  .theme-toggle {
    bottom: 125px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
    top: auto;
  }
  input[type="checkbox"] {
    width: 28px;
    height: 28px;
    transform: scale(1.3);
    margin-right: 8px;
  }

  td[data-label="Done"] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}
