/* ============================================================================
   THE WIN CAPITAL S.A. - modals.css
   Sobreescrituras de Bootstrap modals + toast notifications
   ============================================================================ */

/* Bootstrap modal overrides */
.modal-content {
    border: none;
    border-radius: var(--twc-radius-2xl);
    box-shadow: var(--twc-shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--twc-gray-100);
    padding: var(--twc-space-5) var(--twc-space-6);
}

.modal-title {
    font-family: var(--twc-font-primary);
    font-weight: var(--twc-font-bold);
    font-size: var(--twc-text-lg);
    color: var(--twc-gray-900);
}

.modal-body {
    padding: var(--twc-space-6);
}

.modal-footer {
    border-top: 1px solid var(--twc-gray-100);
    padding: var(--twc-space-4) var(--twc-space-6);
}

.btn-close:focus {
    box-shadow: 0 0 0 3px rgba(var(--twc-primary-rgb), 0.15);
}

.modal-backdrop.show {
    opacity: 0.5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* =======================================================================
   TOAST NOTIFICATIONS
   ======================================================================= */

.twc-toast {
    position: fixed;
    top: calc(var(--twc-header-total) + var(--twc-space-4));
    right: var(--twc-space-4);
    z-index: var(--twc-z-toast);
    min-width: 320px;
    max-width: 420px;
    padding: var(--twc-space-4) var(--twc-space-5);
    border-radius: var(--twc-radius-lg);
    box-shadow: var(--twc-shadow-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--twc-space-3);
    transform: translateX(120%);
    opacity: 0;
    transition: transform var(--twc-transition-spring),
                opacity var(--twc-transition-base);
}

.twc-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.twc-toast--success {
    background: var(--twc-green-50);
    border: 1px solid var(--twc-green-200);
    color: var(--twc-green-800);
}

.twc-toast--error {
    background: var(--twc-red-50);
    border: 1px solid var(--twc-red-200);
    color: var(--twc-red-800);
}

.twc-toast--info {
    background: var(--twc-blue-50);
    border: 1px solid var(--twc-blue-200);
    color: var(--twc-blue-800);
}

.twc-toast--warning {
    background: var(--twc-amber-50);
    border: 1px solid rgba(var(--twc-amber-400), 0.3);
    color: var(--twc-gray-800);
}

.twc-toast__icon {
    font-size: var(--twc-text-lg);
    flex-shrink: 0;
    margin-top: 1px;
}

.twc-toast__content {
    flex: 1;
}

.twc-toast__title {
    font-size: var(--twc-text-sm);
    font-weight: var(--twc-font-semibold);
    margin-bottom: 2px;
}

.twc-toast__message {
    font-size: var(--twc-text-xs);
    opacity: 0.8;
}

.twc-toast__close {
    font-size: var(--twc-text-base);
    opacity: 0.5;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    transition: opacity var(--twc-transition-fast);
}

.twc-toast__close:hover {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .twc-toast {
        right: var(--twc-space-3);
        left: var(--twc-space-3);
        min-width: 0;
    }
}