/*
RESET STYLE OF ALL ELEMENTS
Reference: http://meyerweb.com/eric/tools/css/reset/
*/
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;
}

/*
LAYOUT STYLE
 */
body {
    position: relative;
    background-color: black;
    overflow: hidden;
}

.media-player-window,
.area,
.player {
    position: absolute;
    overflow: hidden;
    cursor: none;
}

.loader {
    width: 100% !important;
    height: 100% !important;
}

.player {
    object-fit: fill;
    background-color: black;
}

.media-player-window {
    left: 0;
    top: 0;
    cursor: none;
    --offset-x: 0px;
    --offset-y: 0px;
}

/* Horizontal alignment classes */
.align-left {
    left: calc(0px + var(--offset-x)) !important;
    right: auto !important;
}

.align-center {
    left: calc(50vw + var(--offset-x)) !important;
    right: auto !important;
}

.align-right {
    left: auto !important;
    right: calc(0px - var(--offset-x)) !important;
}

/* Vertical alignment classes */
.valign-top {
    top: calc(0px + var(--offset-y)) !important;
    bottom: auto !important;
}

.valign-middle {
    top: calc(50vh + var(--offset-y)) !important;
    bottom: auto !important;
}

.valign-bottom {
    top: auto !important;
    bottom: calc(0px - var(--offset-y)) !important;
}

/* Combined alignment classes (horizontal + vertical) */
.align-center.valign-middle {
    left: calc(50vw + var(--offset-x)) !important;
    right: auto !important;
    top: calc(50vh + var(--offset-y)) !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
}

.align-center.valign-top {
    left: calc(50vw + var(--offset-x)) !important;
    right: auto !important;
    top: calc(0px + var(--offset-y)) !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
}

.align-center.valign-bottom {
    left: calc(50vw + var(--offset-x)) !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(0px - var(--offset-y)) !important;
    transform: translateX(-50%) !important;
}

.align-left.valign-middle {
    left: calc(0px + var(--offset-x)) !important;
    right: auto !important;
    top: calc(50vh + var(--offset-y)) !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.align-right.valign-middle {
    left: auto !important;
    right: calc(0px - var(--offset-x)) !important;
    top: calc(50vh + var(--offset-y)) !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.align-left.valign-top {
    left: calc(0px + var(--offset-x)) !important;
    right: auto !important;
    top: calc(0px + var(--offset-y)) !important;
    bottom: auto !important;
}

.align-left.valign-bottom {
    left: calc(0px + var(--offset-x)) !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(0px - var(--offset-y)) !important;
}

.align-right.valign-top {
    left: auto !important;
    right: calc(0px - var(--offset-x)) !important;
    top: calc(0px + var(--offset-y)) !important;
    bottom: auto !important;
}

.align-right.valign-bottom {
    left: auto !important;
    right: calc(0px - var(--offset-x)) !important;
    top: auto !important;
    bottom: calc(0px - var(--offset-y)) !important;
}

/* Single axis centering with transform */
.align-center:not(.valign-top):not(.valign-middle):not(.valign-bottom) {
    left: calc(50vw + var(--offset-x)) !important;
    transform: translateX(-50%) !important;
}

.valign-middle:not(.align-left):not(.align-center):not(.align-right) {
    top: calc(50vh + var(--offset-y)) !important;
    transform: translateY(-50%) !important;
}

.vanish {
    display: none
}

.hidden {
    visibility: hidden;
}

.visible {
    display: block;
}

.showcursor {
    cursor: default;
}

.showcursor * {
    cursor: default;
}

.stretch {
    object-fit: fill;
}

.no-stretch {
    object-fit: contain;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2;
}

.iframe {
    border: none;
}

.portrait {
    background-color: red;
}


/**
* LOGGER
*/
/* ========== Overlay container ========== */
#logOverlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #f0f0f0;
  font-family: monospace, monospace;
  font-size: 20px;
  line-height: 1.6;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 9999;
  opacity: 1;                /* deixei visível para teste */
  pointer-events: auto;
}

/* Portrait = full width */
@media (orientation: portrait) {
  #logOverlay { width: 100%; }
}

/* ========== Header: aceita <header> ou .header ========== */
#logOverlay header,
#logOverlay .header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  box-sizing: border-box;
  background-color: rgba(20,20,20,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Tabs container (à esquerda) */
#logOverlay #tabs,
#logOverlay .tabs {
  display: flex;
  flex: 1 1 auto;       /* ocupa todo o espaço disponível */
  gap: 6px;
  align-items: stretch; /* faz as tabs terem mesma altura */
  min-width: 0;         /* evita overflow por conteúdo largo */
}

/* Cada tab ocupa espaço igual e fica em uma única linha */
#logOverlay .tab {
  flex: 1 1 0;          /* grow e shrink = 1, basis=0 garante divisão igual */
  text-align: center;
  padding: 6px 8px;
  background: rgba(255,255,255,0.06);
  color: #ccc;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;  /* evita wrap do texto da aba */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Destaque da aba ativa */
#logOverlay .tab.active {
  background: rgba(0,200,0,0.25);
  color: #fff;
  font-weight: 600;
}

/* Caixa de busca (à direita) */
#logOverlay #logSearch,
#logOverlay .search,
#logOverlay #searchBox {
  flex: 0 0 160px;       /* fixa largura de busca; ajuste se quiser */
  margin-left: 8px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  color: #0f0;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  white-space: nowrap;
}

/* ========== Conteúdo de logs ========== */
#logOverlay .content,
#logOverlay #logContainer,
#logOverlay .tab-content {
  overflow-y: auto;
  height: calc(100% - 44px); /* reduz pela altura do header */
  padding: 10px;
  white-space: pre-wrap;
  box-sizing: border-box;
}

/* Cores por nível */
.log-line { margin-bottom: 4px; }
.TRACE  { color: #f0f0f0; }
.DEBUG  { color: #f0f0f0; }
.INFORMATION  { color: #00ff88; }
.WARNING  { color: #ffcc00; }
.ERROR { color: #ff4444; }

/* Scrollbar (opcional) */
#logOverlay .content::-webkit-scrollbar { width: 8px; }
#logOverlay .content::-webkit-scrollbar-thumb { background: rgba(0,255,0,0.35); border-radius: 4px; }


/* Installshield */
/* Installshield */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
}

body {
    overflow: hidden;
}

.installshield {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

.bg-wave {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: none;
}

.screen.active {
    display: flex;
}

/* STEP 1 */
.step1 {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.step1-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.step1-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    align-self: center;
    padding: 30px 20px 70px;
    object-fit: contain;
}

.step1-field-wrap,
.step1-button-wrap {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

.step1-field-wrap {
    margin-bottom: 5px;
}

.step1-button-wrap {
    margin-top: 5px;
    margin-bottom: 50px;
}

/* STEP 2 */
.step2 {
    flex-direction: column;
    padding: 16px;
}

.step2-logo {
    width: auto;
    height: 30px;
    object-fit: contain;
    align-self: flex-start;
}

.search-wrap {
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Shared inputs/buttons */
.rounded-input {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    outline: none;
    font-size: 16px;
    background: #1a1a1a;
    color: #fff;
}

.customer-code {
    padding: 5px 5px 5px 15px;
    background: #fff;
    color: #000;
}

.customer-code::placeholder {
    color: #777;
}

.search-input {
    padding: 12px;
    color: #fff;
}

.search-input::placeholder {
    color: #888888;
}

.advance-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: #2f80ed;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.advance-btn:hover {
    opacity: 0.92;
}

.advance-btn:active {
    transform: scale(0.99);
}

.advance-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.progress {
    display: none;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress.show {
    display: block;
}

.monitor-list {
    flex: 1;
    width: 100%;
    background: rgba(16, 16, 16, 0.93);
    border-radius: 8px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    min-height: 0;
}

.monitor-item {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.monitor-item:last-child {
    border-bottom: none;
}

.empty-state {
    display: none;
    padding: 16px 12px;
    color: #888;
}

.empty-state.show {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .step1-logo {
        max-width: 320px;
    }

    .rounded-input,
    .advance-btn,
    .monitor-item {
        font-size: 15px;
    }
}

/* Installshield */

.install-shield {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.bg-wave {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: none;
}

.screen.active {
    display: flex;
}

/* STEP 1 */
.step1 {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.step1-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.step1-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    align-self: center;
    padding: 30px 20px 70px;
    object-fit: contain;
}

.step1-field-wrap,
.step1-button-wrap {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

.step1-field-wrap {
    margin-bottom: 5px;
}

.step1-button-wrap {
    margin-top: 5px;
    margin-bottom: 50px;
}

/* STEP 2 */
.step2 {
    flex-direction: column;
    padding: 16px;
}

.step2-logo {
    width: auto;
    height: 30px;
    object-fit: contain;
    align-self: flex-start;
}

.search-wrap {
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Shared inputs/buttons */
.rounded-input {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    outline: none;
    font-size: 16px;
    background: #1a1a1a;
    color: #fff;
}

.customer-code {
    padding: 5px 5px 5px 15px;
    background: #fff;
    color: #000;
}

.customer-code::placeholder {
    color: #777;
}

.search-input {
    padding: 12px;
    color: #fff;
}

.search-input::placeholder {
    color: #888888;
}

.advance-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: #2f80ed;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.advance-btn:hover {
    opacity: 0.92;
}

.advance-btn:active {
    transform: scale(0.99);
}

.advance-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.progress {
    display: none;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress.show {
    display: block;
}

.monitor-list {
    flex: 1;
    width: 100%;
    background: rgba(16, 16, 16, 0.93);
    border-radius: 8px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    min-height: 0;
}

.monitor-item {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.monitor-item:last-child {
    border-bottom: none;
}

.empty-state {
    display: none;
    padding: 16px 12px;
    color: #888;
}

.empty-state.show {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .step1-logo {
        max-width: 320px;
    }

    .rounded-input,
    .advance-btn,
    .monitor-item {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    .step1-inner,
    .step2 {
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .step1-field-wrap,
    .step1-button-wrap,
    .step2 {
        padding-left: 0;
        padding-right: 0;
    }
}