/* Alpine Operations Center - Unified Styles */

body {
  font-family: Verdana, Geneva, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #006699, #00aaff);
  color: white;
  padding: 2em 1em 1.5em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

header h1 {
  font-size: 2em;
  margin: 0 0 0.3em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

header p {
  font-size: 1em;
  margin: 0;
  opacity: 0.95;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 10px;
  width: 100%;
  background: linear-gradient(to right, #00aaff, #66ccff);
}

/* CONTAINERS */
.container {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.banner {
  background: linear-gradient(90deg, #0077cc, #00aaff);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3em;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* LABELS + INPUTS */
label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  box-sizing: border-box;
  font-size: 1em;
}

textarea[readonly], .readonly {
  background: #eee;
  color: #555;
}

/* BUTTONS */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.buttons button {
  font-size: 1.1em;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #0077cc, #00aaff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.buttons button:hover {
  background: linear-gradient(135deg, #005fa3, #008ecc);
  transform: scale(1.02);
}

/* BACK LINK */
.back-link {
  background: #e9f1f7;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.9em;
}

.back-link a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}

/* UTILITIES */
.section-title {
  font-weight: bold;
  margin-top: 25px;
}

.parts-group {
  display: block;
  margin: 10px 0;
}

.parts-group label {
  display: block;
  font-size: 0.85em;
  margin: 4px 0;
  line-height: 1.3;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

a.tool {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
  color: #0d4a6b;
  font-weight: bold;
  text-decoration: none;
  display: block;
}

a.tool:hover {
  transform: translateY(-4px);
  background-color: #f5faff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

footer {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  padding: 20px;
}

/* DOWNLOAD BOXES */
.download-box {
  background: #eef5ff;
  border: 1px solid #99c2ff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.download-box a {
  font-weight: bold;
  color: #0055aa;
  text-decoration: none;
}

.download-box a:hover {
  text-decoration: underline;
}

/* SDS TABLE STYLING */
.sds-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95em;
}

.sds-table th, .sds-table td {
  border: 1px solid #ccddee;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.sds-table th {
  background-color: #e7f3fa;
  color: #004b7c;
  font-size: 1em;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sds-table tbody tr:nth-child(even) {
  background-color: #f9fcff;
}

.sds-table a {
  color: #0077cc;
  font-weight: bold;
}

.sds-table a:hover {
  text-decoration: underline;
  color: #005fa3;
}

/* Smaller font size for SDS tables */
.sds-table.small-font td,
.sds-table.small-font th {
  font-size: 0.85em;
}

/* RESPONSIVE TABLE WRAPPER */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Optional: Improve horizontal scrollbar look */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
