:root {
    --rz-primary: #6f42c1; /* Roxo principal (comercial, elegante) */
    --rz-secondary: #5a32a3; /* Roxo escuro para contraste */
    --rz-success: #7d5bbe; /* Roxo suave para sucesso */
    --rz-info: #8e6cd1; /* Roxo claro para info */
    --rz-warning: #a88ae0; /* Roxo pastel para alerta */
    --rz-danger: #4b2c91; /* Roxo profundo para erro */
    --rz-light: #f3f0fa; /* Fundo claro com tom lilás */
    --rz-dark: #2e1f4d; /* Fundo escuro roxo profundo */
    --rz-text-color: #2e1f4d; /* Texto em roxo escuro */
    --rz-border-radius: 6px; /* Arredondamento suave */
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===================================== */
/* ======== LOADING SCREEN FINAL ======= */
/* ===================================== */

.loading-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15rem;
    height: 15rem;
    margin: 18vh auto 2rem auto;
}

.loading-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loading-progress circle {
    fill: none;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
}

.loading-progress circle:first-child {
    stroke: #e0e0e0;
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-linecap: round;
    stroke-dasharray: calc(2.513 * var(--blazor-load-percentage, 0%)), 500;
    transition: stroke-dasharray 0.1s ease-in-out;
}

.loading-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    text-align: center;
    color: #1b6ec2;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    pointer-events: none;
}

.loading-center .title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.loading-center .subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* ===================================== */
/* ============ Dots STYLE ============= */
/* ===================================== */
.loading-center .dots::after {
    content: "";
    display: inline-block;
    width: 1ch;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
}

.loading-center .percent {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.loading-center .percent::after {
    content: var(--blazor-load-percentage-text, "0%");
}

/* ===================================== */
/* =========== TIPPY STYLE ============= */
/* ===================================== */

.tippy-box {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tippy-box[data-placement^='top'] > .tippy-arrow::before {
    color: #333;
}

/* ===================================== */
/* =========== Typing STYLE ============ */
/* ===================================== */

.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    vertical-align: middle;
    animation: typing 1.5s steps(3, end) infinite, blink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 3ch
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

.chat {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
    white-space: pre-wrap;
}

    /* Títulos com menos margem */
    .chat h1, .chat h2, .chat h3 {
        margin-top: 0;
        margin-bottom: 0;
        font-weight: 600;
        font-size: 1.4em;
        line-height: 1.2;
    }

    /* Parágrafos mais compactos */
    .chat p {
        margin: 0;
    }

    /* Listas mais enxutas */
    .chat ul, .chat ol {
        margin: 0.3em 0 0.3em 1.2em;
        padding: 0;
    }

    /* Negrito e itálico */
    .chat strong {
        font-weight: bold;
    }

    .chat em {
        font-style: italic;
    }

    /* Links */
    .chat a {
        color: #4a00e0;
        text-decoration: underline;
    }
