/* Estilos para os toasts de notificação */
#toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    border-left: 5px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.toast.success { border-left-color: #27ae60; }
.toast.error { border-left-color: #e74c3c; }
.toast.warning { border-left-color: #f39c12; }
.toast.info { border-left-color: #3498db; }

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.toast.success .toast-icon { background: #d4edda; color: #27ae60; }
.toast.error .toast-icon { background: #f8d7da; color: #e74c3c; }
.toast.warning .toast-icon { background: #fff3cd; color: #f39c12; }
.toast.info .toast-icon { background: #d1ecf1; color: #3498db; }

.toast-content { flex: 1; }

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover { background: #f0f0f0; color: #333; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4a261);
    animation: progressBar 5s linear forwards;
}

.toast.success .toast-progress { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.toast.error .toast-progress { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.toast.warning .toast-progress { background: linear-gradient(90deg, #f39c12, #e67e22); }

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.closing { animation: slideOutRight 0.3s ease-out forwards; }

@media (max-width: 768px) {
    #toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .toast { min-width: auto; }
}

/* Estilos para o modal de confirmação */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.confirm-modal.active { display: flex; }

.confirm-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: scaleIn 0.3s ease-out;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.confirm-icon.warning { background: #fff3cd; color: #f39c12; }
.confirm-icon.danger { background: #f8d7da; color: #e74c3c; }

.confirm-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.confirm-message {
    text-align: center;
    color: #666;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn-cancel { background: #f0f0f0; color: #666; }
.confirm-btn-cancel:hover { background: #e0e0e0; }

.confirm-btn-confirm { background: #d4af37; color: #1a1a2e; }
.confirm-btn-confirm:hover {
    background: #c9a12e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.confirm-btn-danger { background: #e74c3c; color: white; }
.confirm-btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}