/* Platinum — mirrors the main Inventory Different web app style */
body {
  margin: 0;
  padding: 0;
  background-color: #e8e8e8;
  color: #1a1c1f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: #0058bc; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #0058bc; }
h1 { font-size: 20px; font-weight: 700; margin: 10px 0 6px 0; color: #1a1c1f; }
h2 { font-size: 16px; font-weight: 600; margin: 8px 0 4px 0; }
h3 { font-size: 14px; font-weight: 600; margin: 6px 0 3px 0; }
code { font-family: "SF Mono", Monaco, "Courier New", monospace; font-size: 12px; }

.rainbow-stripe {
  height: 4px;
  background: linear-gradient(to right,
    #5EBD3E 0%, #5EBD3E 16.66%,
    #FFB900 16.66%, #FFB900 33.33%,
    #F78200 33.33%, #F78200 50%,
    #E23838 50%, #E23838 66.66%,
    #973999 66.66%, #973999 83.33%,
    #009CDF 83.33%, #009CDF 100%
  );
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px 24px 16px; }

/* Navigation */
.nav-bar {
  background-color: #f5f5f5;
  border-bottom: 1px solid #a0a0a0;
  padding: 10px 16px;
  margin: 0 -16px 12px -16px;
  font-size: 13px;
  display: block;
}
.nav-bar a {
  color: #1a1c1f; text-decoration: none;
  font-weight: 600; margin-right: 16px;
}
.nav-bar a:hover { color: #0058bc; }
.nav-sep { color: #a0a0a0; margin-right: 16px; }
.breadcrumb { font-size: 13px; color: #717786; margin: 8px 0; }
.breadcrumb a { color: #0058bc; }

/* Card / window */
.window {
  background-color: #f5f5f5;
  border: 1px solid #a0a0a0;
  border-radius: 6px;
  margin: 10px 0;
  overflow: hidden;
}
.title-bar {
  background-color: #d1d1d1;
  border-bottom: 1px solid #a0a0a0;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1c1f;
}
.window-body { padding: 12px; }

/* Search form */
.search-form { font-size: 13px; }
.search-form label { margin-right: 4px; color: #717786; font-size: 12px; }
.search-form input[type="text"] {
  border: 1px solid #a0a0a0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  background-color: #ffffff;
  color: #1a1c1f;
}
.search-form select {
  border: 1px solid #a0a0a0;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
  background-color: #ffffff;
  color: #1a1c1f;
}
.btn {
  background-color: #0058bc;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background-color: #0046a3; }

/* Device grid */
.count-info { font-size: 13px; color: #717786; margin: 6px 0 10px 0; }
.devices-table { width: 100%; border-collapse: collapse; }
.device-cell { padding: 6px; vertical-align: top; width: 25%; }
.device-card {
  background-color: #ffffff;
  border: 1px solid #c1c6d7;
  border-radius: 8px;
  padding: 10px;
  display: block; text-decoration: none; color: #1a1c1f;
  min-height: 130px; overflow: hidden;
}
.device-card:hover { border-color: #0058bc; background-color: #f0f4ff; }
.device-thumb {
  width: 72px; height: 72px; object-fit: contain;
  float: left; margin-right: 10px;
  border-radius: 4px; background-color: #f5f5f5;
}
.device-thumb-placeholder {
  width: 72px; height: 72px; float: left; margin-right: 10px;
  border: 1px solid #c1c6d7; border-radius: 4px; background-color: #f5f5f5;
}
.device-name { font-size: 13px; font-weight: 700; display: block; margin-bottom: 2px; }
.device-meta { font-size: 12px; color: #717786; display: block; line-height: 1.4; }
.status-badge {
  font-size: 11px; border-radius: 10px;
  padding: 2px 8px; display: inline-block; margin-top: 4px;
  background-color: #e8f0fe; color: #0058bc; font-weight: 600;
}

/* Pagination */
.pagination { text-align: center; padding: 12px 0; font-size: 13px; }
.pagination a {
  border: 1px solid #a0a0a0; border-radius: 4px;
  padding: 3px 10px; background-color: #f5f5f5;
  text-decoration: none; color: #1a1c1f; margin: 0 3px;
}
.pagination a:hover { background-color: #e8f0fe; border-color: #0058bc; color: #0058bc; }
.pagination .current {
  border: 1px solid #0058bc; border-radius: 4px;
  padding: 3px 10px; background-color: #0058bc;
  color: #ffffff; font-weight: 600; margin: 0 3px;
}

/* Device detail */
.detail-image {
  float: right; max-width: 240px; max-height: 240px;
  border: 1px solid #c1c6d7; border-radius: 8px;
  margin: 0 0 12px 12px; background-color: #f5f5f5;
  object-fit: contain;
}
.detail-specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-specs td {
  padding: 5px 10px; border-bottom: 1px solid #e0e0e0; vertical-align: top;
}
.detail-specs tr:last-child td { border-bottom: none; }
.detail-specs td:first-child {
  font-weight: 600; width: 35%; color: #717786;
}
.device-info { font-size: 13px; line-height: 1.6; white-space: pre-wrap; margin: 0; }

/* Lists */
.notes-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.notes-list li { border-bottom: 1px solid #e0e0e0; padding: 6px 0; }
.notes-list li:last-child { border-bottom: none; }
.note-date { font-size: 12px; color: #717786; }
.tags-list { font-size: 13px; }
.tag {
  background-color: #e8f0fe; color: #0058bc;
  border: 1px solid #c1c6d7; border-radius: 12px;
  padding: 2px 10px; margin: 3px; display: inline-block;
  font-size: 12px; font-weight: 500;
}

/* Footer */
.footer {
  text-align: center; font-size: 12px; color: #717786;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid #c1c6d7;
}
