/* ─── Marca CX Value Hub (alineada con el portal: Sky Blue + Slate + Inter) ─── */
:root {
    --brand-primary: #0284c7;       /* sky-600 */
    --brand-primary-hover: #0369a1; /* sky-700 */
    --brand-primary-dark: #075985;  /* sky-800 */
    --brand-accent: #0ea5e9;        /* sky-500 */
    --brand-ink: #0f172a;           /* slate-900 */
    --brand-text: #334155;          /* slate-700 */
    --brand-muted: #64748b;         /* slate-500 */
    --brand-success: #10b981;       /* emerald-500 */
    --brand-error: #dc2626;         /* red-600 */
    --brand-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0px;
    padding: 0px;
    border: 0px;
}

html, body {
    height: 100%;
  }

body {
    color: var(--brand-text);
    font-family: var(--brand-font);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
}

#background {
    position: fixed; 
    top:0; 
    left:0; 
    z-index: -10; 
    background: #F6F6F6; 
    width: 100%; 
    height: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 5px 0px 2px 10px;
    background-color: #FFF;
    box-shadow: 0px 2px 5px #dddddd;
}

.content {
    padding-top: 20px;
    padding-bottom: 40px;
    flex: 1 0 auto;
}

footer img {
    height: 40px;
    margin-left: 10px;
    float: right;
    margin: 0px 20px;
}

footer {
    /* margin-top: 50px; */
    padding-top: 10px;
    border-top: 2px solid #DDDDDD;
    background: #FFF;
    height: 50px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

/* Label de version (esquina inferior izquierda, discreto).
   Va a la izquierda porque el logo del footer flota a la derecha. */
#build-label {
    position: absolute;
    left: 20px;
    bottom: 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.3px;
    user-select: text;
}
#build-label:empty {
    display: none;
}

#loading {
    color: #DDDDDD;
}

main {
    margin: auto;
    padding: 40px 20px;
    margin-top: 40px;
    width: 70%;
    min-width: 800px;
    text-align: center;
    background: #FFF;
    overflow: hidden;

    border-radius: 30px 30px;
    box-shadow: 0px 0px 20px 8px #ddd;
}

#main-text {
    display: none
}

p {
    margin: 12px;
}

.success {
    color: var(--brand-success);
    margin: 6px;
}

.error {
    color: var(--brand-error);
}

.txt-product-available {
    color: var(--brand-success);
}

.fail {
    color: #f54141e3;
}

.txt-available-message {
    text-align: left;
}

.reminder-list {
    text-align: left;
    padding-left: 30px;
}

/* Font awesmoe modifiers */
.enlarge {
    font-size: 2em;
    vertical-align: middle;
}

.hidden {
    display: none;
}

/* Contenido visible solo para lectores de pantalla (accesibilidad). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sink-more {
    margin-top:25px;
}

/* Buttons */
button {
    border-radius: 100px;
    padding: 15px 32px;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;

    background-color: var(--brand-primary);
    color: #fff;
}

/* Accesibilidad: indicador de foco por teclado (WCAG 2.4.7).
   Antes era `outline: 0` global, que eliminaba el foco en todos los botones.
   Ahora solo se oculta el outline del clic de mouse, no el de teclado. */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}


button:hover {
    background-color: var(--brand-primary-hover);
}

button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: #ccc;
}

button.btn-prev {
    background-color: #F3F3F3;
    color: #8d8d8d;
}

button.btn-prev:hover {
    background-color: #dbdbdb;
    color: #8d8d8d;
}

.right {
    float: right;
}

.left {
    float: left;
}

/* Modal */


/* Progress */

.title {
    margin: 25px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    color: var(--brand-primary);
    font-family: var(--brand-font);
}

/* Message-box */
.message-container {
    display: flex;
    justify-content: center;
}

.messages {
    display: flex;
    flex-direction: column;
    width: 700px
}

.message {
    margin-bottom: 30px;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 1px #ddd;
}

.message-title{
    padding: 10px;
    color: var(--brand-primary);
    font-size: 1em;
    font-weight: bold;
    text-align: left;
}

.message-content {
    padding: 10px;
    padding-left: 32px;
    text-align: left;
}

hr {
    border-top: 2px solid var(--brand-primary);
    margin-top: 10px;
}

.overlay{
    position: fixed; 
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10;
    background-color: #ffffff;
}


#loading-container > img {
    width: 100px;
}

#loading-modal {
    display: block;
}

.modal {
    width: 400px;
    position: fixed;
    top: 20%; 
    left: 50%;
    margin-left: -200px;

    border-radius: 40px;
    text-align: center;
    z-index: 11; 
}

.modal .logo {
    max-width: 200px;
}

.modal .modal-message {
    margin-top: 20px;
    font-size: 18px;
    color: #b9b9b9;
}

#summary-raw-data {
    border: 1px solid #ccc;
    color: #777;
    margin-bottom: 25px;
    margin-top: 10px;
}

#summary-container {
    margin-top: 20px;
}

.provisioned-link {
    color: var(--brand-primary);
    text-decoration: none;
}

.txt-finish-install {
    font-weight: bold;
}

.txt-finish-install-2 {
    font-weight: bold;
}

.field-error-message {
    font-size: 12px;
    color: #C52626;
    margin-top: 3px;
    display: none;
}

/* Already Installed Page */
.already-installed-status {
    color: #C52626;
    margin: 6px;
    text-align: center;
}

.already-installed-status .enlarge {
    color: #C52626;
}

/* Org already registered in CX Value Hub: positive state (green + check) */
.already-installed-status.is-registered,
.already-installed-status.is-registered .enlarge {
    color: var(--brand-success);
}

.already-installed-status.is-registered .already-installed-title-text {
    color: #047857; /* darker green for text contrast on white */
    font-weight: bold;
}

.txt-already-installed-title {
    color: #C52626;
    font-size: 1em;
    font-weight: bold;
}

.already-installed-message {
    color: #4C4C4C;
    font-size: 1em;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}

#already-installed-objects {
    margin-top: 25px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#already-installed-objects .installed-category {
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 1px #ddd;
}

#already-installed-objects .installed-category h4 {
    color: var(--brand-primary);
    font-size: 1em;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 5px;
}

#already-installed-objects .installed-category ul {
    list-style: none;
    padding-left: 10px;
}

#already-installed-objects .installed-category ul li {
    padding: 3px 0;
    color: #555;
    font-size: 0.9em;
}

#already-installed-objects .installed-category ul li::before {
    content: '✓ ';
    color: var(--brand-primary);
    font-weight: bold;
}


/* =================== Error Modal (Generic) =================== */
#error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.err-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.err-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: errModalFadeIn 0.3s ease;
}

@keyframes errModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.err-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.err-modal-icon {
    font-size: 24px;
}

.err-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.err-modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.err-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.err-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.err-modal-item-info {
    flex: 1;
}

.err-modal-item-name {
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #444;
    word-break: break-all;
}

.err-modal-switch {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    position: relative;
    cursor: default;
    flex-shrink: 0;
    margin-left: 12px;
    transition: background 0.2s;
}

.err-modal-switch.off {
    background: #ccc;
}

.err-modal-switch.on {
    background: #4CAF50;
}

.err-modal-switch-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: left 0.2s;
}

.err-modal-switch.on .err-modal-switch-knob {
    left: 20px;
}

.err-modal-detail {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    max-height: 150px;
    overflow-y: auto;
}

.err-modal-detail code {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #555;
    white-space: pre-wrap;
    word-break: break-all;
}

.err-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.err-modal-btn-copy {
    padding: 10px 20px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.err-modal-btn-copy:hover {
    background: #1557b0;
}

.err-modal-btn-close {
    padding: 10px 20px;
    background: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.err-modal-btn-close:hover {
    background: #ddd;
}

.err-modal-feedback {
    display: none;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
}
