/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Plenti Checker Library - Browser Demo CSS */
/* ...existing code from <style> will be appended here... */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

@media (min-width: 768px) {
  body {
    padding: 2rem;
  }
}

h1 {
  color: #2c5aa0;
  margin: 1rem 0;
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  color: #444;
  margin: 1.5rem 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  color: #444;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 1rem 0;
}

ul,
ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  list-style: revert;
}

li {
  margin: 0.25rem 0;
}

form {
  margin: 2rem 0;
  max-width: 800px;
}

.file-drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 1.5rem;
  position: relative;
}

.file-drop-zone:hover {
  border-color: #2c5aa0;
  background: #f0f4f8;
}

.file-drop-zone.drag-over {
  border-color: #2c5aa0;
  background: #e8f2ff;
  transform: scale(1.02);
}

.drop-zone-content {
  pointer-events: none;
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.drop-zone-text {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

.browse-link {
  color: #2c5aa0;
  text-decoration: underline;
  cursor: pointer;
}

.drop-zone-hint {
  font-size: 0.9rem;
  color: #6c757d;
}

.file-input-hidden {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.selected-file {
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 1rem;
  background: #f8fff9;
  margin-bottom: 1.5rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-icon {
  font-size: 2rem;
  color: #28a745;
}

.file-details {
  flex: 1;
  text-align: left;
}

.file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.file-size {
  font-size: 0.9rem;
  color: #6c757d;
}

.remove-file {
  background: none;
  color: green;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.remove-file:hover {
  color: #c82333;
}

.options-section {
  margin-bottom: 1.5rem;
}

.option-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
}

.option-checkbox:hover {
  border-color: #2c5aa0;
  background: #f8f9fa;
}

.option-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #2c5aa0;
  border-color: #2c5aa0;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-text strong {
  color: #333;
}

.option-text small {
  color: #6c757d;
  font-size: 0.85rem;
}

.analyze-button {
  background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(44, 90, 160, 0.3);
  width: 100%;
  justify-content: center;
}

.analyze-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e3d6f, #2c5aa0);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(44, 90, 160, 0.4);
}

.analyze-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.button-icon {
  font-size: 1.2rem;
}

#output {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid #dee2e6;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

th {
  background-color: #e9ecef;
  font-weight: 600;
  color: #495057;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

pre {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.85rem;
}

ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

li {
  margin: 0.25rem 0;
}

details {
  margin-top: 1rem;
}

summary {
  cursor: pointer;
  padding: 0.5rem;
  background: #e9ecef;
  border-radius: 4px;
  font-weight: 600;
}

summary:hover {
  background: #dee2e6;
}

.note {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #856404;
}

.setup-note {
  background: #e8f5e8;
  border: 1px solid #b2dfdb;
  border-radius: 6px;
  padding: 1em;
  margin-bottom: 2em;
}

.setup-note strong {
  display: block;
  margin-bottom: 0.5em;
}

.setup-note ul {
  margin: 0.5em 0 0 1.5em;
}

.setup-note li {
  margin: 0.25em 0;
}

#status-details {
  width: unset;
  border: none;
  background: transparent;
  box-shadow: none;
}

#status-details td,
#status-details tr {
  padding: 0.5rem;
  margin-left: 0;
  padding-left: 0;
  padding-right: 2rem;
  border: none;
  background: transparent;
}
