﻿/* Overlay */
.invite-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    animation: overlay-enter 0.3s ease-out forwards;
}

/* Card Principal */
.invite-modal-card {
    position: relative;
    width: 100%;
    max-width: 28rem; /* max-w-md */
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modal-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header Gradiente Decorativo */
.modal-gradient-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(135deg, #E40E18, #990910);
    opacity: 0.9;
}

/* Botão Fechar (X) */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

/* Conteúdo Wrapper */
.modal-content-wrapper {
    position: relative;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    padding-top: 2rem;
}

/* Área do Ícone de Topo */
.icon-header-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E40E18;
    transform: translateY(-0.5rem);
}

    .icon-box.error {
        background-color: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }


    .icon-box.expired {
        background-color: rgba(245, 158, 11, 0.1); 
        color: #d97706;
    }

.warning-alert {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #FFEB3B;
    border: 1px solid rgb(252 211 77);
    color: #000000;
    font-size: 1.2rem;
    text-align: center;
}

/* Títulos e Textos */
.title-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .title-section h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 0.75rem 0;
        line-height: 1.2;
    }

    .title-section p {
        color: #434343;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5;
        margin: 0;
    }

.highlight-name {
    font-weight: 600;
    color: #1a1a1a;
}

/* Card de Detalhes da Reserva */
.details-card {
    background-color: rgba(244, 244, 245, 0.5); /* bg-muted/50 */
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 229, 229, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ivt-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: rgba(228, 14, 24, 0.1); /* primary/10 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E40E18;
    flex-shrink: 0;
}

.detail-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .detail-text .label {
        font-size: 0.75rem;
        color: #737373;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        font-weight: 500;
    }

    .detail-text .value {
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Botões */
.action-buttons {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .action-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    flex: 1;
}

    .btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-primary {
    background-color: #E40E18;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background-color: #c40c14;
        box-shadow: 0 4px 12px rgba(228, 14, 24, 0.25);
    }

.btn-secondary {
    background-color: transparent;
    border-color: #969696c2;
    color: #1a1a1a;
    width: 50%;
}

    .btn-secondary:hover:not(:disabled) {
        background-color: #f4f4f5;
    }

.ivt-container-button{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.full-width {
    width: 100%;
}


/* Estados de Erro e Loading */
.error-alert {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1rem;
}

.loader-container {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: rgba(228, 14, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E40E18;
}

/* Animações */
.animate-shake {
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin 1.5s linear infinite;
}

@keyframes modal-enter {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes overlay-enter {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-2px);
    }

    20%, 80% {
        transform: translateX(4px);
    }

    30%, 50%, 70% {
        transform: translateX(-6px);
    }

    40%, 60% {
        transform: translateX(6px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

