﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --primary-color: #B0E0E6; /* Cor primária */
    --secondary-color: #004161; /* Cor secundária */
    --loading-color: #1b6ec2; /* Cor de progresso */
    --background-color: #f5f5f5; /* Cor de fundo */
    --text-color: #333; /* Cor do texto */
}

.logo-start {
    position: relative;
    display: block;
    height: 10vh;
    width: auto;
    top: 0vh;
    margin: 10vh auto auto;
    animation: fade-in 1s ease-in-out;
}

.d-flex {
    display: flex;
    gap: 5px !important;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-progress {
    position: relative;
    display: block;
    width: 10rem;
    height: 10rem;
    margin: 2rem auto;
    animation: rotate 2s linear infinite;
}

    .loading-progress circle {
        fill: none;
        stroke-width: 0.6rem;
        stroke-linecap: round;
        transform-origin: 50% 50%;
        animation: progress-animation 2.5s ease-in-out infinite;
    }

        .loading-progress circle:first-child {
            stroke: #e0e0e0;
        }

        .loading-progress circle:last-child {
            stroke: var(--loading-color);
            stroke-dasharray: 0 100%;
            stroke-dashoffset: 0;
            animation: progress-animation 2s linear infinite;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(25vh + 3.25rem) 0 auto 0.2rem;
    color: var(--loading-color);
    animation: fade-in 1.5s ease-in-out;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Carregando...");
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes progress-animation {
    0% {
        stroke-dasharray: 0 100%;
    }

    50% {
        stroke-dasharray: 60% 100%;
    }

    100% {
        stroke-dasharray: 0 100%;
    }
}

/* Texto centralizado para porcentagem */
.loading-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--loading-color);
}

.button {
    align-items: center;
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

a, .btn-link {
    color: var(--secondary-color);
}

.btn-primary {
    background: var(--secondary-color) !important;
    color: white !important;
    border-radius: 5px !important;
    border-color: transparent !important;
}

.dropdown, .dropdown-toggle {
    width: 100% !important;
}

.content {
    padding-top: 1.1rem;
}

input:focus {
    outline: none;
}

input.valid {
    outline: 1px solid #26b050;
}

input.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;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    position: relative;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.syntelp-input-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.syntelp-input {
    height: 40px;
    border-color: var(--primary-color);
    box-shadow: 1px 1px 1px 1px rgb(0, 0, 0, 0.1);
    padding: 5px 10px;
    color: black;
    border-radius: 5px;
    width: 100%;
    outline: none;
}

.secondary {
    background: var(--secondary-color);
    border-radius: 5px;
    color: white;
    border-color: transparent;
}