@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  background-color: #111827;
  margin: 0;
  padding: 0;
  color: #f3f4f6;
}


header {
  background: linear-gradient(135deg, #1f1f2e, #292942);
  color: #f9fafb;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #00d9ff;
}

h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 0 5px #00d9ff;
}

p.tagline {
  margin-top: 10px;
  font-size: 1.1em;
  color: #00d9ff;
}

main {
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
}

.tools-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.tool-box {
  background-color: #1f2937;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  padding: 25px;
  width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #374151;

  display: flex;
  flex-direction: column;       /* stack children vertically */
  align-items: center;          /* center children horizontally */
  justify-content: flex-start;  /* start from top vertically */

  cursor: pointer;
  user-select: none;
}

.tool-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.tool-box h2 {
  margin-top: 0;
  font-size: 1.4em;
  color: #00d9ff;
}

.tool-box p {
  color: #d1d5db;
  font-size: 1em;
  margin: 10px 0 20px;
}

.tool-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #00d9ff;
  color: #0f172a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.tool-box a:hover {
  background-color: #14e3ff;
  color: #000;
}

.full-width-box {
  background-color: #1f2937;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  padding: 30px;
  margin: 40px auto;
  max-width: 720px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #374151;
}

.full-width-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.full-width-box h2 {
  margin-top: 0;
  font-size: 1.4em;
  color: #00d9ff;
}

.full-width-box a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #00d9ff;
  color: #0f172a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.full-width-box a:hover {
  background-color: #14e3ff;
  color: #000;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #9ca3af;
  margin-top: 60px;
  border-top: 1px solid #374151;
  background-color: #1a202c;
}

.footer-credits,
.disclaimer {
  font-size: 0.8em;
  color: #6b7280;
  margin-top: 5px;
}

.summary-box {
  max-width: 900px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px; /* override default padding if you want */
  border-radius: 18px; /* if different from .tool-box */
  /* background, box-shadow etc. already in .tool-box */
}

.building-box {
  background-color: #1f2937;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  padding: 18px 24px;
  width: 320px;
  display: flex;
  align-items: center;   /* vertically center checkbox and text */
  gap: 16px;             /* spacing between checkbox and label */
  border: 1px solid #374151;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}
.building-box input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.building-box input[type="checkbox"]:checked {
  accent-color: #14e3ff; /* brighter blue when checked */
}

.building-box label {
  font-weight: 600;
  font-size: 1.1em;
  color: #f3f4f6;
  cursor: pointer;
  user-select: none;
}

.building-speed-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background-color: #f3f4f6;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  vertical-align: middle;
  margin-right: 8px;
}

.building-speed-row input[type="checkbox"]:checked {
  background-color: #00d9ff;
  border-color: #14e3ff;
}

.building-speed-row input[type="checkbox"]:checked::after {
  color: #0f172a;
  font-weight: bold;
  position: absolute;
  top: 1px;
  left: 5px;
  font-size: 18px;
  user-select: none;
}

.updates-list {
  text-align: left;
}

.updates-list a {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 16px;
  background-color: #00d9ff;
  color: #0f172a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
  text-align: center;
}

.updates-list a:hover {
  background-color: #14e3ff;
  color: #000;
}

.expand-box {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 15px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.expand-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.expand-box summary {
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #00d9ff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.expand-box summary::-webkit-details-marker {
  display: none;
}

.expand-box summary::after {
  content: "▼";
  font-size: 0.8em;
  margin-left: 12px;
  color: #00d9ff;
  transition: transform 0.3s ease;
}

.expand-box[open] summary::after {
  content: "▲";
  color: #14e3ff;
}

.expand-box p,
.expand-box ul {
  margin-top: 12px;
  color: #d1d5db;
  line-height: 1.6;
}

.expand-box ul {
  padding-left: 20px;
}

.icon-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.icon-button {
  background-color: #00d9ff;
  color: #0f172a;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  box-shadow: 0 6px 15px rgba(0, 217, 255, 0.3);
}

.icon-button:hover {
  background-color: #14e3ff;
  color: #000;
}


.expandable-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1f2937;
  color: #f3f4f6;
  margin-top: 12px;
  border: 1px solid #374151;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.expandable-table thead tr {
  background-color: #111827;
}

.expandable-table th,
.expandable-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #374151;
  text-align: left;
}

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

.copy-id-button {
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #00d9ff;
  color: #0f172a;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.copy-id-button:hover {
  background-color: #14e3ff;
  color: #000;
}

.day-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-button {
  background-color: #1f2937;
  color: #00d9ff;
  border: 1px solid #374151;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-button:hover {
  background-color: #00d9ff;
  color: #0f172a;
}

.tab-button.active {
  background-color: #00d9ff;
  color: #0f172a;
}

.tab-content {
  display: none;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #00d9ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

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

.upgrade-box {
  display: grid;
  grid-template-columns: 1fr 120px 80px;
  align-items: center;
  gap: 12px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px; /* increased spacing */
}

.upgrade-name {
  color: #f3f4f6;
}

.material-input {
  width: 100%;
  padding: 6px;
  border: 1px solid #374151;
  border-radius: 6px;
  background-color: #111827;
  color: #f3f4f6;
}

.material-input:focus {
  outline: none;
  border-color: #00d9ff;
}

.points {
  text-align: right;
  font-weight: 600;
  color: #f3f4f6;
}

.upgrade-total {
  margin-top: 16px; /* slightly more space above total */
  font-size: 1.1em;
  color: #f3f4f6;
  background-color: #111827;
  padding: 8px;
  border-radius: 8px;
  text-align: right;
}

/* Category headers */
.category-header {
  margin-top: 20px; /* more space before category title */
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 1.1em;
  color: #f3f4f6;
}

/* Space between buttons and content */
.day-tabs {
  margin-bottom: 20px;
}

.day-total-box {
  background-color: #111827; /* darker or just different from #1f2937 */
  border: 2px solid #00d9ff; /* brighter border to stand out */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
  padding: 30px 25px;
  width: 320px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 1.5em;
  color: #00d9ff;
  user-select: none;
  margin: 20px auto; /* center horizontally with some spacing */
}

