/* ========================================
   MODAL MEUS TÍTULOS - MUI Dialog Style
   ======================================== */
.modal-meus-titulos {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 32px;
}

.modal-meus-titulos.active {
    display: flex;
}

.modal-meus-titulos::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    opacity: 0;
    animation: meustitulos-backdropFadeIn 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Block scroll when modal is open */
body.modal-meus-titulos-open {
    overflow: hidden;
}

@keyframes meustitulos-backdropFadeIn {
    to {
        opacity: 1;
    }
}

.modal-meus-titulos-paper {
    width: 100%;
    max-width: 600px;
    max-height: calc(100% - 64px);
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.24) -40px 40px 80px -8px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: meustitulos-modalSlideIn 225ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes meustitulos-modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-meus-titulos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.modal-meus-titulos-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-meus-titulos-header-left svg {
    width: 28px;
    height: 28px;
}

.modal-meus-titulos-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    font-family: Montserrat, 'Public Sans', sans-serif;
}

.modal-meus-titulos-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-meus-titulos-close:hover {
    background-color: rgba(145, 158, 171, 0.08);
}

.modal-meus-titulos-close svg {
    width: 20px;
    height: 20px;
}

.modal-meus-titulos-divider {
    margin: 0;
    border: none;
    border-top: 1px solid;
}

.modal-meus-titulos-content {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-meus-titulos-list {
    display: flex;
    flex-direction: column;
}

.modal-meus-titulos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
}

.modal-meus-titulos-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(145, 158, 171, 0.2);
    border-top-color: var(--color-website);
    border-radius: 50%;
    animation: meustitulos-spin 0.8s linear infinite;
}

@keyframes meustitulos-spin {
    to { transform: rotate(360deg); }
}

/* Card de Título - MUI Style */
.titulo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    padding-right: 16px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 2px 0px, rgba(0, 0, 0, 0.12) 0px 12px 24px -4px;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.titulo-card:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 2px 0px, rgba(0, 0, 0, 0.2) 0px 16px 32px -4px;
}

.titulo-card-image {
    width: 100px;
    min-height: 100px;
    border-radius: 16px 12px 12px 16px;
    object-fit: cover;
    flex-shrink: 0;
    align-self: stretch;
}

.titulo-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 2px;
    padding: 12px 0;
}

.titulo-card-date {
    margin: 0;
    font-family: Montserrat, 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
}

.titulo-card-name {
    margin: 0;
    font-family: Montserrat, 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.57143;
}

.titulo-card-status {
    margin: 0;
    font-family: Montserrat, 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.5;
}

.titulo-card-status.active {
    color: rgb(84, 214, 44);
}

.titulo-card-status.expired {
    color: rgb(255, 72, 66);
}

.titulo-card-status.pending {
    color: rgb(255, 193, 7);
}

.titulo-card-qty,
.titulo-card-total {
    margin: 0;
    font-family: Montserrat, 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
}

.titulo-card-arrow {
    flex-shrink: 0;
    color: #C4CDD5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titulo-card-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Botão Ver Todos */
.btn-ver-todos {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-top: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: Montserrat, 'Public Sans', sans-serif;
    transition: opacity 0.2s ease;
}

.btn-ver-todos:hover {
    opacity: 0.9;
}

/* Estado vazio */
.modal-meus-titulos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    text-align: center;
}

.modal-meus-titulos-empty svg {
    width: 64px;
    height: 64px;
    color: #919EAB;
}

.modal-meus-titulos-empty span {
    font-size: 0.875rem;
    color: #919EAB;
    font-family: Montserrat, 'Public Sans', sans-serif;
}

/* Modal Meus Títulos Mobile */
@media only screen and (max-width: 789px) {
    .modal-meus-titulos {
        padding: 16px;
        align-items: center;
    }

    .modal-meus-titulos-paper {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 16px;
    }

    .modal-meus-titulos-content {
        padding: 16px 20px;
    }

    .modal-meus-titulos-header-left svg {
        width: 24px;
        height: 24px;
    }

    .modal-meus-titulos-title {
        font-size: 1rem;
    }

    .titulo-card {
        padding: 0;
        padding-right: 12px;
        gap: 12px;
    }

    .titulo-card-image {
        width: 80px;
    }

    .titulo-card-name {
        font-size: 0.8125rem;
    }
}
