﻿:root {
    --color-green-back: hsl(145, 92%, 87%);
    --color-green-text: #2a9f47;
    --color-error-back: hsl(325, 92%, 87%);
    --color-error-text: #9f2a65;
    --color-info-back: hsl(210, 92%, 87%);
    --color-info-text: #2a6f9f;
    --color-warning-back: hsl(45, 92%, 87%);
    --color-warning-text: #9f802a;
    --color-8quali: #1C5477;
}

html {
    scroll-behavior: smooth;
}

#infoModalBody {
    padding: 20px;
}

#info-modal {
    overflow-y: auto; 
    padding: 20px;

}

#infoModalTitle{
    font-size: 20px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: #fff;
    border-radius: 8px;
    width: 700px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
    padding: 6px
}

.modal-header, .modal-footer {
    padding: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-body {
    padding: 16px;
    line-height: 1.5;
}

    .modal-body p {
        margin: 0 0 12px;
    }

.modal-footer {
    text-align: right;
    border-top: 1px solid #eee;
}

.btn-close {
    cursor: pointer;
    border: none;
    background: var(--color-8quali);
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    color: inherit;
    border: none;
}

.close-btn[aria-label]::after {
    content: none;
}


#toast-container {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}
    #toast-container .toast {
        pointer-events: auto !important;
    }

.toast {
    min-width: 300px;
    max-width: 350px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: sans-serif;
    animation: slideIn 0.3s ease-out;
    padding: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-header .toast-title {
    font-weight: bold;
    font-size: 1.1rem;
}


.toast-header .toast-close-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.toast-body {
    font-size: 1rem;
}

.toast-icon {
    margin-right: 8px;
    flex-shrink: 0;
    color: inherit; 
}

.toast.success {
    color: var(--color-green-text);
    background: var(--color-green-back);
}

.toast.error {
    color: var(--color-error-text);
    background: var(--color-error-back);
}

.toast.info {
    color: var(--color-info-text);
    background: var(--color-info-back);
}

.toast.warning {
    color: var(--color-warning-text);
    background: var(--color-warning-back);
}
