/* Sistema de Notificações */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(400px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
    pointer-events: auto;
    transition: transform 0.3s, opacity 0.3s;
}

.notification.success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f5fff5 0%, #e8f5e9 100%);
}

.notification.error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
}

.notification.warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #fffaf0 0%, #fff3e0 100%);
}

.notification.info {
    border-left-color: #2196F3;
    background: linear-gradient(135deg, #f5fbff 0%, #e3f2fd 100%);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.notification.success .notification-icon {
    color: #4CAF50;
}

.notification.error .notification-icon {
    color: #f44336;
}

.notification.warning .notification-icon {
    color: #ff9800;
}

.notification.info .notification-icon {
    color: #2196F3;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOut 0.3s forwards;
}

/* Modal de confirmação */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    pointer-events: auto;
}

.confirmation-modal.hiding {
    animation: fadeOut 0.3s forwards;
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    animation: slideUp 0.3s forwards;
    position: relative;
}

.confirmation-modal.hiding .confirmation-content {
    animation: slideDown 0.3s forwards;
}

.confirmation-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.confirmation-message {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 14px;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-confirm {
    padding: 10px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 14px;
    min-width: 80px;
}

.btn-confirm:hover {
    background: #333;
}

.btn-confirm:active {
    transform: translateY(1px);
}

.btn-cancel {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 14px;
    min-width: 80px;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-cancel:active {
    transform: translateY(1px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    to {
        transform: translateY(-20px);
    }
}

/* Estilos específicos para prompts */
.confirmation-modal input[type="text"],
.confirmation-modal input[type="password"],
.confirmation-modal input[type="email"],
.confirmation-modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    margin-top: 10px;
}

.confirmation-modal input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 12px 15px;
        margin-bottom: 8px;
    }
    
    .notification-icon {
        font-size: 20px;
        width: 24px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .confirmation-content {
        padding: 20px;
        width: 95%;
    }
    
    .confirmation-title {
        font-size: 18px;
    }
    
    .confirmation-message {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .btn-confirm,
    .btn-cancel {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .notifications-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .notification {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .confirmation-content {
        padding: 15px;
    }
}