﻿:root {
  --ghs-black: #111;
  --ghs-silver-1: #f7f7f7;
  --ghs-silver-2: #d4d4d4;
  --ghs-silver-3: #6f6f6f;
  --ghs-border: #dedede;
}

body {
  font-family: "Montserrat", "Segoe UI", Tahoma, Arial, sans-serif;
  color: #111;
  background: linear-gradient(to right, #f5f5f5 0%, var(--ghs-silver-2) 50%, var(--ghs-silver-3) 100%);
}

.panel {
  background: #efefef;
  border: 1px solid var(--ghs-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.hidden { display: none !important; }
.note { color: #606060; font-size: 13px; min-height: 18px; }

.note.status-success { color: #0f8f3b; font-weight: 700; }
.note.status-error { color: #d90429; font-weight: 700; }
.note.status-progress { color: #1d4ed8; font-weight: 700; }

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-wrap img { height: 42px; }

.admin-main { min-height: 60vh; }

.admin-title {
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 800;
}

.admin-logout {
  border: 0;
  background: transparent;
  color: #e00000;
  font-weight: 700;
}

.admin-edit-panel {
  min-height: 1180px;
}

.admin-edit-panel .form-control {
  border-color: #b9b9b9;
}

.admin-primary-btn,
.admin-secondary-btn,
.admin-creds-btn,
.admin-reset-btn {
  width: 100%;
}

.admin-creds-btn {
  background: #192335;
  border-color: #192335;
}

.admin-reset-btn {
  background: #e50000;
  border-color: #e50000;
}

.list { display: grid; gap: 10px; max-height: 900px; overflow: auto; }
.item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.item small {
  color: #6b6b6b;
}

.item button {
  border: 0;
  background: transparent;
  color: #333;
  padding: 2px 4px;
}

.item button.secondary {
  color: #0d63ff;
}

.item button.danger {
  color: #e50000;
}

.upload {
  display: grid;
  gap: 4px;
  border: 1px dashed #c9c9c9;
  border-radius: 10px;
  padding: 10px;
  background: #f8f8f8;
  font-size: 13px;
}

.upload-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fafafa;
}

.upload-msg {
  font-size: 13px;
  font-weight: 700;
}

.upload-msg--progress { color: #1d4ed8; }
.upload-msg--success { color: #0f8f3b; }
.upload-msg--error { color: #d90429; }

.upload-percent {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #2a2a2a;
}

.thumbnail-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
}

.thumbnail {
  position: relative;
  width: 80px;
  height: 80px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.thumbnail--spec {
  padding: 6px;
  flex-direction: column;
  text-align: center;
}

.spec-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.spec-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.spec-preview .spec-icon {
  font-size: 28px;
  color: #c21717;
}

.spec-label {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.spec-name {
  margin-top: auto;
  font-size: 11px;
  word-break: break-word;
  max-width: 100%;
}

.thumbnail-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #d90429;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-footer {
  margin-top: 2rem;
}
