/* RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

.homepage-header {
  color: #0b2545;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 0.8rem; /* 1rem = base font size (typically 16px in most browsers) */
}

li {
  font-size: 0.8rem;      /* Adjust size relative to root font (16px = 1rem) */
  line-height: 1.5;     /* Improve readability */
  margin-bottom: 0.5rem; /* Space between list items */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.site-header2 {
  background: #193d66;
  color: white;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1100;
}
.site-header {
  background: #193d66;
  color: white;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1100;
}


.header-inner {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-left: auto;
}

/* BUTTON STYLES */
.btn-primary {
  display: inline-block;
  background-color: #333;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 140px;
  white-space: nowrap;
  user-select: none;
  position: relative;
  z-index: 9999;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #1c86ee;
}
.btn-primary:active {
  background-color: #187bcd;
}

/* SECTION STYLES */
section {
  /* top | right | bottom | left */
  padding: 0.1rem 20rem 1rem 1rem;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}
section h2,
section h3 {
  color: #0b2545;
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
section p,
section ul {
  max-width: 700px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}
section ul {
  padding-left: 1.2rem;
}
section li {
  margin-bottom: 0.5rem;
}

/* SIDEBAR NAV */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: #0b2545;
  padding-top: 3.5rem;
  transition: transform 0.3s ease;
  z-index: 1000;
}
.sidebar.closed {
  transform: translateX(-100%);
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  border-bottom: 2px solid #406080;
}
.sidebar a {
  display: block;
  padding: 1rem 1.25rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.sidebar a:hover {
  background-color: #00bdb7;
}

/* HAMBURGER MENU */
.menu-toggle {
  position: fixed;
  top: 0.00rem; 
  left: 0.75rem;
  font-size: 1.70rem;
  background: none;
  border: none;
  color: white;
  z-index: 1100;
  display: none;
  cursor: pointer;
}


/* RESPONSIVE: SIDEBAR BEHAVIOR */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  #menu-toggle-checkbox:checked ~ .sidebar {
    transform: translateX(0);
  }
}

/* SHIFT MAIN CONTENT WHEN SIDEBAR IS VISIBLE (desktop only) */
@media (min-width: 769px) {
  main {
    margin-left: 220px;
  }
}

#tools {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
  /*background-color:#753895;*/
  max-width: 1040px;
}

#tools {
  border-top: none !important;
}

#epoch-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

#epoch-input {
  padding: 0.5rem;
  font-size: 1rem;
  width: 100%;
}

.result-block p {
  margin: 0.5rem 0;

  margin-top: 1rem;
}

/*.result-block {
  display: none;
}*/

.copy-btn {
  margin-left: 10px;
  padding: 2px 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.live-timestamp {
  margin-top: 1.5rem;
  font-size: 0.8rem;
}


.sql-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
  margin-top: 1rem;
  border: 1px solid #c3d6ec;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff08;
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  min-height: 35px;
}

.sql-table td, 
.sql-table th {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  text-align: left;
  color: #334f71;
  border-bottom: 1px solid #c3d6ec;
}

.sql-table tr:nth-child(even) {
  background-color: #ebf6fc;
}

.sql-table strong {
  font-weight: 600;
}

/* Responsive pivoting for mobile */
@media (max-width: 600px) {
  .sql-table {
    border: 0;
  }

  .sql-table thead {
    display: none;
  }

  .sql-table tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid #c3d6ec;
    background-color: #f8fbfe;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .sql-table td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: none;
    box-sizing: border-box;
    word-break: break-word;

  }

  .sql-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    color: #193d66;
    margin-bottom: 0.25rem;
    word-break: break-word;
    text-align: left;
  }

  .sql-table td:last-child {
    border-bottom: none;
  }
}



/* Optional: style for the Copy buttons inside the table */
.result-table .copy-btn {
  font-size: 0.85rem; /* You can keep this smaller for buttons */
  padding: 0.25rem 0.5rem;
  margin-left: 0;
}


.result-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem; /* Adjust this value to increase/decrease font size */
  margin-top: 1rem;
  border: 1px solid #c3d6ec; /* Dark blue border */
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff08; /* subtle translucent white on dark */
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  min-height: 35px;



}

.result-table td, 
.result-table th {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
  text-align: left;
  color: #334f71;
  border-bottom: 1px solid #c3d6ec;
}

.result-table tr:last-child td {
  border-bottom: none;
}

/*.result-table tr:nth-child(even) {
  background-color: #1c1f26;
}*/

.result-table strong {
  font-weight: 600;
  color: #2e7cdb;
}

#epoch-input {
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;

  font-size: 1rem;
  font-family: system-ui, sans-serif;
  color: #333;
  background-color: #fff;

  border: 1px solid #ccc;
  border-radius: 0.375rem;

  width: 100%;
  max-width: 600px;

  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#epoch-input:focus {
  border-color: #c3d6ec;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.date-input {
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;

  font-size: 1rem;
  font-family: system-ui, sans-serif;
  color: #333;
  background-color: #fff;

  border: 1px solid #ccc;
  border-radius: 0.375rem;

  width: 100%;
  max-width: 600px;

  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-input:focus {
  border-color: #c3d6ec;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  font-size: 0.8rem;
  font-weight: 400;
  font-family: system-ui, sans-serif;
  color: #1d4ed8; /* blue-600 */
  background-color: transparent;
  border: 1px solid transparent;

  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;

  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.copy-btn:hover,
.copy-btn:focus {
  color: #1e40af; /* blue-800 */
  background-color: #d7e8f7; /* light blue tint */
  outline: none;
}

.copy-btn:active {
  background-color: #dbeafe; /* active click */
  color: #1e3a8a;
}

@media (min-width: 769px) {
  main {
    padding-left: clamp(100px, 15vw, 300px);
    transition: padding-left 0.2s ease;
  }
}

@media (max-width: 768px) {
  main {
    padding-left: 1rem; /* match your px-4 */
  }
}


.site-footer {
  background: #f9f9f9;
  color: #666;
  font-size: 0.8rem;
  
  text-align: left;
  

  /* add section styles */
  padding-top: 0.1rem;
 
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .site-footer {
    padding-left: clamp(100px, 15vw, 300px);
    padding-right: 1rem; /* keep some right padding */
    transition: padding-left 0.2s ease;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-left: 1rem; /* match main on mobile */
    padding-right: 1rem;
  }
}
.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-header {
  background: #e1edf7;
  border: none;
  padding: 1rem 1.25rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0b2545;
  transition: background-color 0.2s ease;
  user-select: none;
  border-radius: 4px;
  margin-top: 0.75rem;
}

.accordion-header:hover,
.accordion-header:focus {
  background-color: #d7e8f7;
  outline: none;
}

.accordion-icon {
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1;
  color: #193d66;
  transition: transform 0.3s ease;
  user-select: none;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg); /* + becomes x shape */
}


.text-red-600 {
  color: #dc2626; /* Tailwind CSS red-600 hex color */
  font-size: 0.8rem;
}
.accordion-panel {
  padding: 0.25rem 0.5rem 0 0.5rem;
  color: #333;
  line-height: 1.5;
  background: #fafafa;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    margin-bottom 0.3s ease;
}


/* Code snippet styles */
.accordion-panel pre {
  background-color: #222;
  color: #eee;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 0.5rem 0 1rem 0;
}

/* Headings inside accordion */
.accordion-panel h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #193d66;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .accordion-header {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .accordion-panel {
    font-size: 0.9rem;
  }
}
#epoch-info {
  margin-top: 1rem;
  padding: 1rem 0;
  /*border-top: 1px solid #ccc;*/
  /*background-color:#753895;*/
  max-width: 1040px;
}

#epoch-info {
 {
  border-top: none !important;
}
pre {
  position: relative;
  padding-top: 2.5em; /* leave space for the button */
}
.code-copy-btn {
  position: absolute;
  top: 0.3em;
  right: 0.3em;
  font-size: 0.9em;
  cursor: pointer;
}}



.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 0));
  gap: 2rem;
  max-width: 1600px;
  padding-left: 0px;
  padding-right: 1rem;
  margin: 0 auto;
  margin-left: 0;  /* remove auto centering */
  justify-content: start; /* for CSS grid */
}

.tool-card {
  background-color: #ffffff08;
  backdrop-filter: blur(3px);
  border: 1px solid #c3d6ec;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
 backdrop-filter: blur(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

}

/*.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}*/

.tool-card svg {
  margin-bottom: 1rem;
  shape-rendering: geometricPrecision;
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
}
}

.tool-name {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.btn-secondary {
  margin-top: 1rem;
  background-color: #0073E6 ;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #00bdb7;
}
.page-section {
  padding: 0rem;
}
