:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  /* --accent: #d88622;
  --accent-2: #f0a64c; */
  /* --accent: #f59e0b;
  --accent-2: #fbbf24; */
  --accent: #ff7b00;
  --accent-2: #ff9900;
  --border: #374151;
  --good: #10b981;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-family: "Share Tech Mono", Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1020 0%, #111827 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* filter: blur(4px); */
  filter: blur(4px);
  transform: scale(1.04);
  /* opacity: 0.32; */
  opacity: 0.75; 
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.72) 0%, rgba(17, 24, 39, 0.82) 100%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, .button, .file-label {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.04em;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #ff7b0024, #ff990005);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.content {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.drop-zone {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255, 145, 0, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 145, 0, 0.25),
    0 10px 26px rgba(255, 145, 0, 0.12);
}

.drop-zone-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.drop-zone-text i {
  color: var(--accent-2);
  font-size: 16px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: 0.18s ease;
}

.file-label {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 15%, transparent),
    color-mix(in srgb, var(--accent-2) 30%, transparent)
  );
  /* background: linear-gradient(135deg, var(--accent), var(--accent-2)); */
  /* color: #111827; */
  /* border-color: transparent; */
  color: #f8f8f8;
  border-color: var(--accent);
}

.button:hover,
.file-label:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 45%, transparent),
    color-mix(in srgb, var(--accent-2) 60%, transparent)
  );
  transform: translateY(-1px);
  filter: brightness(1.05);
}
/* .file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 0;
  border-color: var(--accent-2);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: 0.18s ease;
}

.file-label {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111827;
  border-color: transparent;
}

.button:hover,
.file-label:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
} */

.file-label:hover {
  box-shadow:
    0 6px 18px rgba(255, 145, 0, 0.35),
    0 2px 6px rgba(255, 146, 57, 0.22);
    /* 0 6px 18px rgba(217, 70, 239, 0.35),
    0 2px 6px rgba(244, 114, 182, 0.22); */
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

input[type="file"] {
  display: none;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.stat .label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stat .value {
  color: var(--accent-2);
  font-family: "Orbitron", monospace;
  font-size: 24px;
  font-weight: 700;
  word-break: break-word;
}

/* .status {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(31, 41, 55, 0.65);
  color: var(--muted);
  white-space: pre-wrap;
} */

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(31, 41, 55, 0.65);
  color: var(--muted);
}

.status-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.status-text {
  flex: 1;
}

.status.good {
  border-color: rgba(16, 185, 129, 0.5);
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.1);
}

.status.warning {
  border-color: rgba(234, 179, 8, 0.6);
  color: #fde68a;
  background: rgba(234, 179, 8, 0.12);
}

.status.error {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  background: rgba(17, 24, 39, 0.7);
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: "Orbitron", sans-serif;
  background: rgba(31, 41, 55, 0.95);
  position: sticky;
  top: 0;
  z-index: 1;
}

.odf-icon {
  width: 36px;
  text-align: center;
}

.odf-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
}

/* .site-footer {
  margin-top: 28px;
  padding: 26px 24px;
  border-top: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
} */

.site-footer {
  margin-top: 28px;
  padding: 26px 24px;
  border-top: 2px solid var(--border);

  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));

  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.footer-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}

.footer-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-links i {
  font-size: 15px;
  color: var(--accent-2);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06); 
  font-size: 12px;
  color: var(--muted);
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-row input,
.search-row select {
  font-family: "Share Tech Mono", monospace;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 180px;
  outline: none;
}

.search-row input:not(:placeholder-shown) {
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .wrap {
    padding: 18px 12px 28px;
  }

  .content {
    padding: 18px;
  }

  .controls,
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .file-label,
  .search-row input,
  .search-row select {
    width: 100%;
  }
}