@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Titillium Web", sans-serif;
}

:root {
    --primary-color: #06c;
    --primary-color-light: #f2f6fc;
    --primary-color-dark: #00368F;
    --title-text-color: #002460;
    --text-color: #454d56;;

    --success-color: #8dec8d;
    --warning-color: #faeeba;
    --error-color: #ffdcdc;
}

body {
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--title-text-color);
}

p {
    margin-top: 10px;
}

.intro {    
    position: relative;
    text-align: center;
}

.text-center {
    text-align: center;
}

.content-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    height: 100svh;
    display: flex;
    flex-direction: column;
}

.container-title {
    animation: 1s fadeIn;
}

#app-title {
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.secondary-title {
    font-style: italic;
    position: absolute;
    left: 50%;
    top: 0px;
    transform: translateX(-50%);
    width: 100%;
    color: #efd255;
    letter-spacing: 1px;
}

/* -------
BUTTON
------------------------------- */
.btn {
    border-radius: 16px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: .3s;
    border: none;
}

.btn:hover {
    background: var(--primary-color-dark);
}

.btn.btn-secondary {
    background: var(--primary-color-light);
    border: 2px solid #d6e6fd;
    color: var(--primary-color);
}

.btn.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.link {
    background: transparent !important;
    text-decoration: underline !important;
    color: var(--primary-color) !important;
    font-size: 16px;
}

/* -------
AUTH SECTION
------------------------------- */
.main-container.auth-container {
    background: var(--primary-color-light);
}

.auth-container_identity {
    height: 225px;
    background: linear-gradient(180deg, #fff, var(--primary-color-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container_operative {
    background: #fff;
    flex-grow: 1;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    padding: 40px;
}

.auth-container_identity img {
    height: 125px;
}

.spid-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px 0;
}

.btn.authservice-button {
    /*text-transform: uppercase;*/
    width: 200px;
    padding: 15px 20px;
    font-size: 18px;
}

.authservice-button img{
    height: 25px;
}

.spid-provider-container{
    display: none; 
    position: absolute;
    border: 1px solid rgba(0,0,0,.1);
    max-width: 90%;
    overflow-y: auto;
    z-index: 9;
    background: #fff;
    border-radius: 8px;
    width: 200px;
    top: 60px;
    z-index: 3;
}

.provinder {
    cursor: pointer;
    width: 100%;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
}

.provinder img {
    height: 20px;
}

.info-spid-provider{
    color: #4E4E4E;
}

.info-spid-provider:not(:last-child){
    border-bottom: 1px solid rgba(0,0,0,.1);    
}

/* -------
HOME
------------------------------- */
.topbar {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.topbar img {
    width: 40px;
}

#btnLogout{
    position: fixed;
    top: 7px;
    right: 10px;
    z-index: 99;
}

#welcome-title {
    color: var(--text-color);
    font-size: 14px;    
    font-weight: 500;
}

#welcome-user {
    font-size: 18px;
}

.welcome-container {
    padding: 30px;
}

.welcome-container .grid {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#welcome-title, #welcome-user { text-transform: capitalize; }
#welcome-user { line-height: 1; }

.welcome-container p {
    margin-top: 20px;
}

.agent-container {
    flex-grow: 1;
    /*padding: 20px 40px;*/
}

.agent-container img {
    width: 100%;
    max-width: 500px;
}

chat-messenger {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 600px) {
    chat-messenger::slotted(.chat-wrapper) {
        top: calc(50% + 50px) !important;
    }
}

chat-messenger{    
    height: 100svh;

    --chat-messenger-color--primary: var(--primary-color);
    --chat-messenger-shape--corner-value-extra-large: 0;
}


/* -------
NOTIFICATION
------------------------------- */
.notification-container {
    position: fixed;
    right: 30px;
    top: 30px;
    z-index: 10;
}

.notification {
    position: relative;
    width: 200px;
    padding: 20px 30px;
    border-radius: 20px;
}

.notification.success { background: var(--success-color); }
.notification.warning { background: var(--warning-color); }
.notification.error { background: var(--error-color); }

.notification .btn-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}